---
name: spektralab
version: 2026-10-27.1
description: Connect to Spektralab to create scripts, videos, carousels and clones, manage custom image styles, read saved defaults, figures and ready templates, inspect progress, cancel or retry runs, and publish approved content within the granted workspace and modules.
---

# Spektralab (version 2026-10-27.1)

Use this skill when the user asks you to operate their Spektralab workspace. If your copy of this file has an older version, download it again from https://spektralab-laohan-projects.vercel.app/api/agent-skill.

## Access

Permissions are explicit operations as well as modules. Existing access never gains newly introduced operations automatically. A new all-current grant is a snapshot, not a wildcard. A read-only grant cannot execute a write operation, even through MCP.

The user creates a manual agent access under https://spektralab-laohan-projects.vercel.app/studio/settings/agent-access and selects its modules. Keep the key in the secret environment variable SPEKTRALAB_API_TOKEN, never in this file, a URL, a committed config, screenshots or logs. Do not ask the user to paste it into a conversation. The access belongs to exactly one workspace. Pausing or revoking it in Spektralab takes effect immediately.

### Verify before working

An ordinary HTTP client is sufficient. First call GET https://spektralab-laohan-projects.vercel.app/api/agent/access with Authorization: Bearer followed by the value of SPEKTRALAB_API_TOKEN. No MCP setup is required for direct REST access.

```bash
curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $SPEKTRALAB_API_TOKEN" \
  "https://spektralab-laohan-projects.vercel.app/api/agent/access"
```

This call is read-only and generates no paid content. The response identifies the fixed workspace, effective modules and accessible REST endpoints. Read this response before choosing an operation. If no modules are available, stop and explain that the workspace or access has no effective module rights. Never claim connection success without a successful response. HTTP 401 means invalid/expired credentials, 403 means missing permission, and 429 requires waiting as directed by Retry-After.

Download this file with the same Authorization header to get only the sections for the modules of your access: https://spektralab-laohan-projects.vercel.app/api/agent-skill.

### Discover endpoints

Read https://spektralab-laohan-projects.vercel.app/api/openapi.json for request fields and use only endpoints returned by the access check. They still enforce input-dependent permissions and content state. The access check does not authorize every input or remove review gates. Access is checked again for every action against selected modules, current plan and workspace settings. This is not blanket access to all app screens or settings. Do not invent API access for modules absent from the specification.

### Optional MCP

MCP-capable clients can use https://spektralab-laohan-projects.vercel.app/api/mcp with OAuth consent in the browser or a manual Bearer key. Valid OAuth access tokens and manual Bearer keys use the same delegated permissions in MCP and supported REST endpoints. OAuth access tokens require a valid expiry; a client may keep its credential internal. Use the standard MCP initialization and tools/list to discover current schemas. Call zugang_pruefen before working. It returns the same effective module information as the REST access check. Its endpoint and operation lists are paginated (default limit 50, maximum 100). Collect both lists on every page and pass naechster_offset as offset together with katalog_version until naechster_offset is null. A 409 means the rights catalog changed: restart at offset 0. The first page alone is not the full catalog.

## Costs first

Paid are videos, scripts, carousels, carousel approvals after which images or texts are generated, file variants, retries of failed runs, clone voicing and image style previews. Free are the access check, reading status, library, defaults, image styles, figures and templates, cancelling a run, the help articles (docs_suchen) and the cost estimate itself.

Before every paid call, estimate it. Over MCP, kosten_schaetzen takes the tool name and the same arguments and returns usd, whether the amount is exact or a guide value, and a hint; it starts nothing. usd null means there is no reliable estimate in advance; say so instead of inventing an amount. Tell the user the amount and start only after the user asked for this paid result. Do not start a paid generation solely to test access. Do not automatically retry a timed-out creation request, because it may already have started. Read the response's costs and report provisional costs as provisional.

## Templates

Instead of composing settings yourself, read ready templates: GET /api/agent/vorlagen (MCP vorlagen_lesen), free. Each template names modus (audio_text, audio_text_figuren for fixed characters, talking_head, karussell), stufe (spar, standard, premium for videos; guenstig, standard, hochwertig for carousels), the target tool, the einstellungen object and a price range. Over MCP, pass einstellungen unchanged as einstellungen of lauf_starten (with modus from lauf_modus) or karussell_erstellen; lauf_starten puts the workspace defaults underneath. Over REST, POST /api/runs does not add the workspace defaults for a link or text source, so send rest_config of a video template as config; a carousel template's einstellungen already carry grundstil and, if saved, the handle and go as config to POST /api/karussell. Fill what ergaenzen names, for example the handle, the source type or figure ids. If the workspace defaults use the paper stage style, its templates follow that style's own ladder (spar and premium only). Start with spar unless the user asks for more.

## Videos

Scripts: POST /api/script-writer (MCP lauf_starten with modus=skript). Videos: POST /api/runs (lauf_starten with modus=talking-head or audio-text). GET /api/runs/{id} requires the library module; grant it when a REST agent must monitor video or script jobs.

Before asking the user for language, captions or other settings, read the saved defaults: GET /api/settings/video-defaults (einstellungen_lesen with bereich=standards). A custom image style goes into config.broll.eigener_bildstil_id with the id from the image style list, never into broll.style.

## Waiting instead of polling

Videos take minutes. Never poll in a tight loop. Over MCP, lauf_status returns erwartete_dauer_s (the usual duration of this kind of run in the workspace) and naechste_abfrage_in_s: wait at least that many seconds before asking again; null means the run is finished. Over REST, GET /api/runs/duration?skill=<skill> returns median_s for talking-head, audio-text-video, karussell and video-clone; ask again after half the remaining time, at least every 15 seconds and at most every 5 minutes. A carousel waiting at a review gate does not move until it is approved; check karussell_status instead of waiting.

## Cancel and retry

Cancelling is free: POST /api/runs/{id}/cancel (MCP lauf_abbrechen) stops a running job; costs already incurred remain and a cancelled run cannot be resumed. A plain script without a link cannot be cancelled. A failed run can be restarted: POST /api/runs/{id}/retry (MCP lauf_neu_versuchen) reuses finished parts and is paid; estimate it first with kosten_schaetzen and ask the user. Both need the library module and the module of the run itself. Retry only after a real failure, never automatically after a timeout: read the status first.

## Carousel

POST /api/karussell (karussell_erstellen) needs config.quellart, config.grundstil and config.handle; take the handle from the saved defaults (karussell.handle). A web page source is fetched first with POST /api/karussell/link. Carousel status has its own endpoint: GET /api/karussell/{id}. The review gates (POST /api/karussell/{id} with copy-freigeben or galerie-freigeben, MCP gate_freigeben) are paid steps and need the user's approval of the shown content. A custom image style goes into config.eigenerBildstilId.

## Cloning

Cloning is available through MCP and REST. Discover the klon_* tools and their schemas with tools/list. Read klon_quellen_lesen with bereich=optionen and, for an existing clone, klon_variante_lesen before choosing settings; upload preparation returns a signed URL that requires an HTTP PUT-capable client. POST /api/clone starts from an upload, link or Drive file. GET /api/clone/{id} shows the translated text and speakers. POST /api/clone/{id} changes or approves the translation and starts paid voicing; approve only text the user has seen. GET /api/clone/{id}/variante tells whether a finished clone can be varied; POST on the same path creates a variant with new design and the same voice.

Use the exact stable request identifier and source/version preconditions from each schema. Repeated variant requests must keep both the same payload and destination. Before creation or revoicing obtain approval for the stated reservation; it is not an enforced final provider-price ceiling. Preflight, subtitle recognition and cutout preparation have separate rights and signed job handles; they are not safe for blind retries after an uncertain response. Additional library access is needed where a tool reads saved media. Optional thumbnail creation needs clone.thumbnail.create as well as the underlying continuation right.

## Image styles

A custom image style is a style text that every image of a video or carousel carries. List the existing ones first: GET /api/settings/eigene-bildstile (einstellungen_lesen with bereich=bildstile). Discover bildstil_lesen, eigenen_bildstil_aendern, bildstil_loeschen and stilreferenz_hochladen for the explicit style contracts. Read the current expectedVersion before changes; maintain the same requestId for an uncertain result. Global shared styles remain read-only through these operations.

Recipe for a new style from a reference (video, images or a description):

1. Analyse the reference yourself, which costs nothing: material, shapes, palette, light, optics and the eyes of characters.
2. Write the style text with at most 90 words. Describe only material, shapes, composition (for example "few large elements, calm uncluttered scene filling the frame"), palette, light and optics, never objects: every visible thing you name appears in every image ("rounded glowing" produced a sun, "warm amber key light" a lamp, "night sky" moon and stars). End it with "no text, no letters, no logos, no watermark".
3. Define the eyes instead of facial expressions, for example "small round black bead eyes, no iris". Words like grin or wink bring back generic cartoon faces.
4. Iterate with the 2x2 preview: POST /api/settings/eigene-bildstile/vorschau (MCP stilvorschau_erzeugen). Read the current schema and cost estimate, obtain authorization for each paid result and supply the confirmed requestId and maxSchaetzungUsd. This limits the reservation estimate, not the final provider invoice. Compare material, palette, eyes and unwanted objects. Read gestaltungsauftrag_lesen after an uncertain result; do not replace the requestId to start again.
5. Create the style exactly once with bildstil_anlegen and the approved existing preview identifiers in vorschauIds. This contract saves metadata without starting new image generation; optional further previews use stilvorschauen_ergaenzen as a separately confirmed paid operation. Do not send the old vorschauen or vorschau_ids fields. Optional einstellungen carries farblook, clipTon and the chosen image-model key bild. A duplicate name or stale version must be resolved by reading the current state.
6. For styles with fixed characters, render with GPT Image 2.5 Sunburst (key gpt_image_2): bildmodell gpt_image_2 in the preview and config.broll.image_model "gpt_image_2" in the run.

## Figures

GET /api/figuren (einstellungen_lesen with bereich=figuren) lists the saved figures for picture stories with name, role, style and portrait address. It needs the Audio & Text module and costs nothing. Use figur_lesen for expectedVersion and figur_aendern to change the name or favorite flag. figur_anlegen imports a verified source and can incur a paid image description; follow its confirmation and reservation schema. Scene-derived figures have separate preparation, save and discard operations. Confirm the exact scope before figur_loeschen; retain private file references according to the returned contract.

## Calendar

Use kalender_lesen (GET /api/calendar) to discover the existing posts and their identifiers. kalender_termin_verschieben uses calendar.reschedule and changes only the time of a fully workspace-owned, still pending post. Send an explicit ISO-8601 timezone and allow at least five minutes. It preserves drafts and never grants publication. Read again after a conflict.

## Shorts

Discover projects with shorts_projekte_lesen and read shorts_kandidaten_lesen before editing. While analysis or rendering runs, poll only shorts_status (a few KB); never poll shorts_kandidaten_lesen. Keep candidate revision and edit_seq values; on 409 read the current state before deciding again. The registered tools cover source upload, analysis, clip selection/editing, rendering, download, chapters, title-image statements, dubbing, reaction media, cancellation and retry. Additional script or library scopes are required for cross-module imports.

Before paid work read shorts_analysekosten, shorts_renderkosten, shorts_textkosten or the dubbing cost tool. Starts require freigabe:true and kosten_max_usd at least as high as the current bound. These fields record the client's actual authorization; they are not permission to invent approval. Reuse the same run_id for analysis and request_id for render/text/retry/dubbing after an uncertain result. Never replace an uncertain ID to force another charge. Journal conflicts or exhausted journals need investigation, not an automatic fresh start. Poll project status at about ten-second intervals; download only the current completed revision. Reservierungsobergrenze and estimated_cost_usd are not final costs.

## Brand, ideas and content planning

Brand voice tools read brand rules, examples and skills. Explicit metadata operations also maintain examples and skills against the current versions. Platform-admin field changes require separately delegated operations and the actual current platform role; a read grant never permits them. Example import and audience suggestions use preparation, confirmed paid start and saved-status contracts. They do not automatically save the proposed result. Ideas tools read and rate ideas, maintain watched accounts/settings, prepare script briefs and start scans. Removing a watched account also removes associated posts, statistics and ideas; use ideenquelle_entfernen only after confirmation of that complete scope.

ideenscan_starten requires a stable requestId and kostenfreigabe with bestaetigt:true and maxUsd. Its conservative reservation is 70.004 USD; obtain actual authorization before using that amount. A repeated requestId returns the existing scan and does not dispatch again.

Content tools manage packages, history, tool links and draft generation. Writes require the original token issuer to remain an owner of the workspace. Old tokens without an issuer must be replaced through the normal access setup. Use expectedVersion and stable requestId as described by each schema. Generation requires brand_voice as an additional module and an explicit cost ceiling. Approval is a separate content_plan.approve right plus bestaetigt:true (REST X-Agent-Confirmed: true), and does not publish anything. A handoff additionally requires script and brand_voice.

## Smart Replies

Use antworten_lesen for paginated comments, existing drafts, status and workspace settings; antwort_keywords_lesen reads keyword automations. These operations require the stored token issuer to remain an active workspace member. A missing connection is connected:false. Read access never grants review, send or automation permissions.

The four write tools antwort_review_ausfuehren, antwort_reviewkanal_setzen, antwort_rahmen_setzen and antwort_keyword_aendern require the actual issuer to remain an owner, an explicit confirmation and the current expectedUpdatedAt value. Sending, moderation and budget changes require additional replies.send, replies.moderate and replies.budget.update rights as specified by each action. A signed keyword-check receipt binds the exact checked text and version. Automation changes use antwort_automatik_setzen with its own right and current version; enabling requires replies.send and an authorized daily budget. antwort_neu_formulieren and antwort_keyword_pruefen are separately confirmed paid draft operations with durable requestId and kosten_max_usd. Read their saved job after an uncertain response; neither sends a reply. These functions require the compatible connected backend; a listed tool alone does not prove that deployment is ready. Do not treat a read response or an old successful write as approval for another effect.

## Library and media editing

Use the library project, title, archive, copy, scheduling and draft tools only when offered by tools/list. Writes require the actual active owner and the current expected version. A copy needs a stable copyId and the publishing module as an additional scope, but does not publish or run AI. Resuming a publication draft requires publish.create and confirmation; clearing a schedule is allowed only while no external post exists and dispatch has not begun. An unresolved external effect is not permission to retry under a new identifier.

Video corrections expose scenes, revisions, a dedicated cost calculation, confirmed start, pending-job cancellation and upload preparation. Read the current revision first and retain the request_id and base version. A revision start needs the actual media module in addition to library access. Use each operation's own cost function and preserve the returned reservation and uncertainty information.

## Mitra

Mitra read tools expose the issuer's own chats, projects, search and saved result cards, plus workspace cost totals and permitted skill/version catalogs. Read rights do not grant model execution, approvals or restoration. The chat list is limited to 100 entries, one chat to its last 400 messages, search to 20 hits and version history to 50 entries. These are bounded views, not full historical exports. Module-specific catalogs intersect workspace and token module permissions. Private file links still require the corresponding file-access mechanism.

Explicit write contracts cover own projects, chat organization, private attachments and chat skills. Skill mutations need the actual owner, revision and stable request_id; restoring a chat skill does not authorize restoration of another prompt category. Paid Mitra execution has preparation/cost, confirmed-start and saved-status contracts. Multi-step video orders prepare individual production cards; each paid production step retains its separate authorization. Never treat a stored approval or an available tool as permission for a new effect.

## Private results

Do not pass any agent credential to browser-only private media URLs. Use the offered object-specific result tools: run artifacts produce short-lived signed addresses after checking the owning run; current finished dubbing uses shorts_dubbing_datei_lesen. Content-plan assets can be read in bounded binary chunks with the documented version and checksum. Signed addresses are confidential and expire; renew through the same authorized read operation. Browser-only preview links are not a download contract.

## Autopilot plan activation

Use autopilot_plaene_lesen to discover existing plan ids, then autopilot_plan_lesen with the selected id. Present the exact plan, recurring cost effect and publication setting before autopilot_plan_aktivieren. Pass the returned stand as erwartet, bestaetigt:true, kosten_bestaetigt:true and the exact veroeffentlichung_bestaetigt value. Activation needs the original workspace owner and autopilot, script and audio_text_video scopes; a publishing plan additionally needs veroeffentlichung. This enables scheduled recurring production; it does not run a manual tick. If the response is lost, read the plan again. Manual immediate execution is not yet exposed to agents.

## Shorts teasers

Use shorts_teaser_lesen to inspect saved teaser batches and results. shorts_teaser_starten uses the same tariff quota as the UI. Teaser creation includes editorial analysis and video processing and can incur costs. Confirm the exact settings with freigabe:true, kontingent_max_laeufe:1 and kontingent_max_video_sekunden equal to count*49; count is 1, 3, 4 or 5. Keep the same request_id and settings for retries. An uncertain response is not a new order: read the saved batches first. Resolve relative output_url against the app origin and fetch public result files without the agent Bearer header. No publication is performed. The issuer must remain a current member of the same active workspace.

## Rules

Never invent an endpoint or use a different workspace's content. Ask for the intended content, source, channels and timing if they are missing. Publishing requires an explicit user request to publish; a request for a draft does not authorize publication.
