Create from your AI assistant.
Sign in with OAuth 2.1 or connect with an API key. Discover models, create with reference media, assemble multi-layer edits, and bring finished video, images and audio into your conversation.
https://v4v.ai/api/mcp{
"type": "http",
"url": "https://v4v.ai/api/mcp"
}Connect your assistant
For guided setup, choose your assistant on the MCP connection page.
V4V MCP lets an AI assistant discover generation models, work with reference media, create images, video, audio and chat responses, and retrieve results. It uses the same account, credits and generation history as the V4V API.
Server URL: https://v4v.ai/api/mcp
Transport: Streamable HTTP
Authentication: OAuth 2.1 sign-in on enabled deployments, or an API key in clients that support custom request headers. Both use your existing V4V account and credits.
Use your deployment's domain in place of v4v.ai when testing another environment. The server is already hosted; you do not need to run a local process.
Sign in with OAuth
Choose this option in ChatGPT, Claude, or a supported editor or CLI. You do not need to create an API key. Add the remote server URL, select OAuth / Sign in, and complete the V4V permission screen. See OAuth authorization and the client-specific steps below.
Connect with an API key
- Open your V4V profile and create a key under API Keys.
- Save the API secret in your MCP client's secure settings.
- Add the server with
x-api-key: YOUR_V4V_API_KEYorAuthorization: Bearer YOUR_V4V_API_KEY. - Connect and start with
get_balanceorlist_models.
Send one authentication header. If both are sent, they must contain the same key; conflicting or malformed credentials return HTTP 401. The x-api-key value is the key itself, without a Bearer prefix. Both API-key header formats use the same permissions, credits, rate limits and key revocation.
API-key clients continue to use the same headers and permissions. OAuth clients sign in to their existing V4V account through the browser. Never paste a key or token into an assistant conversation or commit it to a repository.
ChatGPT (OAuth)
OAuth must first be enabled on the V4V deployment. Account and workspace permissions in ChatGPT determine whether a custom MCP connection is available.
- Open ChatGPT Plugins → Personal, choose Add (or +), then Add custom MCP server (the label may differ by account).
- Enter
V4Vand server URLhttps://v4v.ai/api/mcp. - Choose OAuth and dynamic client registration (DCR). Leave Client ID and Client Secret empty; V4V registers a public PKCE client automatically. This version supports DCR, not CIMD.
- Connect and sign in using your existing V4V login.
- On V4V's permission screen, review the account and callback host. All three permissions are required: reading the account, editing/uploading and generating with credits. The three checkboxes are selected and locked. Choose Accept all permissions to connect, or Cancel to decline; partial consent is not supported.
- Return to ChatGPT and install the plugin if asked. In Personal plugins, open V4V's three-dot menu and choose Manage.
- Open the Permission row. For approval-free tool calls, choose Allow all tools. Generations still use your V4V credits, so ask for an estimate before starting.
- Start a new conversation, choose + → Plugins → V4V (or mention it with @), and ask Check my V4V balance.
The ChatGPT screenshot guide walks through all eight screens. Its connection-details step has copy buttons for the plugin name, description and current deployment's server URL, plus an optional V4V icon download.
Example:
Create three vertical 9:16 product video concepts from this product link. Show the concepts and estimated credits first. Wait for my approval before starting generation.
The assistant uses the existing discovery, estimate_generation, and generate_studio_variants tools. Estimates do not render or reserve credits, but may import media for validation and therefore require the editing permission. Paid tools enforce the generation permission on the server. The permission is account access, not approval of an individual creative brief: still review the requested concepts and budget before authorizing a render. Batch max_credits and idempotency controls remain in effect.
Access tokens last at most one hour. Refresh tokens rotate on use, and the connection expires after 30 days. Reconnect when it expires or when additional permissions are needed. In V4V profile → Assistant connections, review usage, disconnect the assistant, or reveal its webhook signing secret for your receiver. Do not paste the signing secret into chat.
Disconnecting blocks new tool requests, token refresh and unused upload links. Already submitted jobs continue under the existing queue and credit rules; disconnecting does not cancel or refund them. Previously issued signed media links retain their normal expiry.
File uploads from ChatGPT's execution environment depend on that environment's network and attachment access. The scoped browser upload link remains available as a fallback. MCP connectivity alone does not guarantee automatic attachment transfer.
Custom connection testing and public plugin publication are separate steps. See OpenAI's MCP connection guide, OAuth requirements, and public review requirements.
Claude Web
OAuth connection
Open Add to Claude. The form opens with the V4V name and production server URL prefilled. For dev or another deployment, use the connection page, which fills that deployment's URL. If signing in to Claude clears the form, reopen the link after signing in.
Follow the six-step screenshot guide alongside Claude:
- Review the prefilled name and URL, then choose Continue.
- Claude checks the server automatically. Keep the detected Sign in now and Register automatically settings and choose Add; no other settings need changing. Leave Client ID and Client Secret empty, with no API key or request headers.
- On the connector page, choose Connect and sign in to V4V.
- Review your account and all three required permissions, then choose Accept all permissions. Connecting does not spend credits.
- Under Tool permissions → Read-only tools, open Custom next to the group name and choose Always allow.
- Scroll to Write/delete tools and choose Custom → Always allow for that group too. Enable V4V in a conversation and ask Check my V4V balance. Generations use your V4V credits; ask for an estimate first.
Claude's tool permissions are separate from the V4V account authorization. The group menus let you allow the tools without changing each one individually. You can revise these choices in Claude's connector settings.
Claude's
hosted callbacks on claude.ai and claude.com are supported without extra
environment configuration. Use Register automatically; Claude's published
client identity (CIMD) is not implemented in this release. Existing API-key
connections continue to work as described below.
If transport settings are shown, use Streamable HTTP. Adding a connector and authorizing its account access are separate steps when Claude presents them that way.
API-key alternative: create your V4V API key
Open your V4V profile, go to API Keys, and create a key. Keep it ready for the connector header below.
2. Add the connector
- Open Add to Claude, or open Customize → Connectors → Add → Custom web connector.
- Set Name to
V4V. - Set MCP server URL to
https://v4v.ai/api/mcp. - Under Authentication, select No sign-in.
- Click Add header and enter:
| Header setting | Value |
|---|---|
| Name | x-api-key |
| Value | Your V4V API key, exactly as copied |
- Click Add / Connect and wait for the connection to complete.
Use the key alone in x-api-key, without a Bearer prefix. No sign-in skips OAuth; the header still authenticates every request to V4V. Leave OAuth Client ID and Client Secret empty.
3. Allow the tools
- Open Claude's Connectors manager.
- Select the new V4V connector.
- Open Tool permissions and allow all V4V tools.
- Confirm that
create_upload_link,get_upload,get_modelandgenerate_labare available and enabled.
After V4V adds or updates tools, refresh the connector's tools or reconnect it before starting a new conversation.
4. Allow automatic file uploads
- Open Settings → Capabilities.
- Enable Code execution and file creation and Allow network egress if they are off.
- In Domain allowlist, add these entries:
v4v.ai
*.v4v.ai
*.v4vcdn.spaceKeep both the root domain and the wildcard entry so the app domain and its subdomains are covered. Enter domain names only, without https:// or /api/mcp, and save the changes. If your workspace manages this setting centrally, ask its administrator to update the allowlist.
This allows Claude's execution environment to send the original attachment directly to V4V using the short-lived upload permission issued by MCP. Without this setting, the connector may work while file uploads fail with host_not_allowed.
Testing on dev: use https://h4000.kitpes.com/api/mcp as the connector URL and add h4000.kitpes.com separately to the Domain allowlist. The V4V domain entries do not cover the dev hostname.
5. Start a new conversation
Enable the V4V connector in a new chat, attach your image, and ask:
Upscale this image 4× with V4V. Upload the original file automatically, then use its file ID with the Topaz model.
Claude should obtain an upload permission through MCP, transfer the file from its execution environment without copying base64 into chat, and submit the generation. You do not need to upload the file again in a separate browser page when network access is allowed.
For Claude's general connector and network controls, see connector management and code execution and network access.
VS Code
OAuth sign-in
Use Install in VS Code on the connection page, or add this to .vscode/mcp.json:
{
"servers": {
"v4v": {
"type": "http",
"url": "https://v4v.ai/api/mcp"
}
}
}Start the server, review the trust prompt and complete V4V sign-in when VS Code opens your browser. Enable the tools you want to use in agent chat.
API-key alternative
For editor chat, add the following to .vscode/mcp.json. VS Code prompts for the key and masks the input. Keep the placeholder in the file.
{
"inputs": [
{
"id": "v4v-api-key",
"type": "promptString",
"description": "V4V API key",
"password": true
}
],
"servers": {
"v4v": {
"type": "http",
"url": "https://v4v.ai/api/mcp",
"headers": {
"Authorization": "Bearer ${input:v4v-api-key}"
}
}
}
}Start the server from the MCP configuration and enable its tools in your chat session. Review the generation tool call before allowing it to spend credits.
For other VS Code agent environments, follow the current MCP configuration reference for the configuration location supported by that environment.
Claude Code
OAuth sign-in
Register the remote server without an authentication header:
claude mcp add --transport http v4v https://v4v.ai/api/mcpStart Claude Code, run /mcp, choose V4V and authenticate. Complete the V4V permission screen in your browser, then return to the CLI.
API-key alternative
Set V4V_API_KEY securely in your shell environment, then register the remote server:
claude mcp add --transport http \
--header "x-api-key: $V4V_API_KEY" \
v4v https://v4v.ai/api/mcpUse /mcp inside Claude Code to inspect the connection. The registration stores the configured header in your local client configuration; protect that file and keep it out of source control. See Claude Code's MCP guide for configuration scope and key management.
Cursor
On the connection page, choose V4V sign-in or API key and
click Install in Cursor. Review the installation in Cursor before accepting.
OAuth opens a browser sign-in; API-key setup installs a placeholder that you
replace locally in .cursor/mcp.json. No real key is embedded in the install URL.
Current desktop versions use an HTTP loopback callback; cloud clients use the
exact approved https://www.cursor.com/agents/mcp/oauth/callback URI.
Codex CLI
For OAuth, add the server and sign in:
codex mcp add v4v --url https://v4v.ai/api/mcp
codex mcp login v4vFor an API key, securely set V4V_API_KEY in your environment, then run:
codex mcp add v4v --url https://v4v.ai/api/mcp --bearer-token-env-var V4V_API_KEYGemini CLI
Add the remote server with gemini mcp add --transport http v4v https://v4v.ai/api/mcp.
Run /mcp auth v4v inside Gemini CLI for OAuth. For API-key setup, set
V4V_API_KEY securely and add the server with
gemini mcp add --transport http --header "x-api-key: $V4V_API_KEY" v4v https://v4v.ai/api/mcp.
The CLI saves the configured header; keep its settings private.
OpenCode
Add a remote server under mcp.v4v in opencode.json with type: "remote",
url: "https://v4v.ai/api/mcp" and enabled: true. Run
opencode mcp auth v4v for OAuth. The connection page
provides the full JSON and an environment-variable API-key alternative.
Other MCP clients
Choose a remote / Streamable HTTP server and supply:
| Setting | Value |
|---|---|
| Name | v4v |
| URL | https://v4v.ai/api/mcp |
| Authentication (choose one) | x-api-key: YOUR_V4V_API_KEY or Authorization: Bearer YOUR_V4V_API_KEY |
Configuration formats vary by client. Configure the header in the client's secret settings, not in a chat message. Legacy SSE-only clients are not supported. Supported native OAuth clients use HTTP callbacks on localhost or 127.0.0.1 with an explicit local port. Registration and authorization bind the complete callback URL exactly. Hosted callbacks for Claude, ChatGPT, Cursor and VS Code are approved; other hosted clients need exact URLs in MCP_OAUTH_REDIRECT_URIS.
Start with a brief
For a complete film or a creative re-edit of a recording, resolve consequential missing choices before assembly or paid work: goal, audience, source material, format, target length, visual treatment, subtitles, speech, music and output languages. get_started accepts request_kind (production, creative_edit, targeted_edit) and confirmed creative_brief choices; it returns videoBrief.productionQuestions and readyForProduction. Reuse supplied answers and explicit delegations. A precise trim or correction needs only details relevant to that change. Auto-approval of spending does not supply creative answers. These rules are shared by V4V MCP and Open Video Kit 0.3.6.
You can start with a request like:
Find a model for an eight-second vertical video of my ceramic mug. Use this product image: https://example.com/mug.jpg. Show me a concept and the required inputs before generating.
If no model is named, the assistant must use Google/Gemini Omni Flash v1.2 by default (video.gemini_omni_flash-1-2), inspect its current schema and availability with get_model, check the balance, and prepare the inputs. Once you request the generation, it submits a task and checks for the finished result. This rule is first in the MCP initialization instructions and is repeated in list_models, get_model, and generate_lab descriptions. Video model discovery returns default_video_model; the selected model advertises default_for_unspecified_video: true. Explicit model or Studio/bulk workflow choices take priority.
For ordinary video requests without an explicit model, prefer generate_lab with video.gemini_omni_flash-1-2. The assistant should not ask the user to choose a model merely because it was omitted. Explicit model choices and explicitly requested Studio/bulk workflows take priority. get_model remains required before selecting inputs and parameters; if the preferred model is disabled, unavailable or unsuitable, explain the limitation and ask about an alternative instead of silently spending credits elsewhere. Provider routing is configured by V4V, not a generation parameter. Use generate_studio for an explicitly requested Studio workflow; image, audio, translation and chat discovery are unchanged.
The video_brief prompt helps turn a goal, audience and format into a shot plan. The v4v://guide resource explains the generation workflow to your assistant.
Available tools
| Tool | Purpose | Creates a generation? |
|---|---|---|
list_models | Discover enabled models; optionally filter by image, video, audio or chat | No |
get_model | Read a model's inputs, options and limits; model: "studio" also works | No |
describe_studio | Discover current Studio styles, durations, formats, quality, voices and media limits | No |
list_products | Find owned products; reuse their IDs as Studio input.product_id | No |
list_avatars | Find owned and active public avatars; reuse IDs as Studio input.avatar_id | No |
estimate_generation | Validate and quote a LAB/Studio request without rendering or reserving credits | No |
get_balance | Check available account credits | No |
get_usage | Find recent generation tasks | No |
get_file | Inspect an owned reference file | No |
import_media | Save a public media URL to your library | No |
create_upload_link | Issue a scoped HTTP upload request; browser link available as fallback | No |
get_upload | Retrieve upload status and file ID | No |
upload_media | Programmatic inline byte upload; avoid large base64 in model text | No |
generate_lab | Create with a specific model | Yes — spends credits |
generate_studio | Create a video from a product or creative brief | Yes — spends credits |
get_task | Check status, project ID, stable media IDs and renewable signed links | No |
refresh_task_results | Renew signed result URLs without rendering | No |
list_projects | Find owned Studio, workflow, LAB and queued API projects by title, source or folder | No |
rename_project | Rename an owned project or a queued task's future project | No |
list_project_folders | List the same folders shown in the Projects workspace | No |
create_project_folder | Create a workspace folder | No |
rename_project_folder | Rename a folder while keeping its projects | No |
move_project | Assign an owned folder, or use folder_id: null to unfile | No |
generate_studio_variants | Queue 2–3 creative variants using the existing bulk budget and controls | Yes — as variants start |
promote_to_example | Examples administrators only: copy/update an owned project's example with explicit visibility | No |
Studio discovery reads the selected workflow and active styles from this deployment; it does not hardcode seven style names or assume every workflow has a ten-second limit. get_model with model: "studio" is an alias for describe_studio. Essential instructions are also in tool descriptions for clients that cannot read v4v://guide.
Model schemas come from the same catalogue used by V4V LAB. Ask for get_model before choosing parameters; required references, durations and formats vary by model.
Reuse library content and preview cost
Call list_products or list_avatars (optional offset and limit, maximum 100). Avatars default to source: "all"; owned and public filters are available. The returned next_offset is null on the last page. Public avatar IDs include public:; keep this prefix. Each record includes photo_count; Studio uses the avatar's primary photo. Only your own private library records are returned.
Use input.product_id and input.avatar_id in generate_studio or estimate_generation. parameters.avatar also accepts the returned avatar ID and continues to support a file ID or public image URL. Choose either input.avatar_id or parameters.avatar. Library photos are resolved directly without downloading and uploading them again. Explicit product name, description or image inputs override the saved product's defaults. Active style IDs/names use their saved creative instructions; unknown or inactive style IDs/names return INVALID_PARAMETER with allowed_values. Put free-form creative directions in input.prompt and choose an active preset (or omit style for the discovered default).
{
"source": "studio",
"input": {
"product_id": "0123456789abcdef01234567",
"avatar_id": "public:0123456789abcdef01234568",
"prompt": "A short product review"
},
"parameters": {
"duration": 10,
"style": "Product Review"
}
}Send that to estimate_generation. It returns credits_estimated, reserves zero credits and creates no task or render. Studio quotes skip provider character registration, including when an avatar is selected. Public media URLs may be imported for validation. Quotes can change with inputs/pricing; chat quotes describe an initial reservation, not final token costs or a spending cap. To render, remove source and submit the same inputs to generate_studio with a new idempotency_key.
Variants, project names and examples
generate_studio_variants accepts name, shared input/parameters, a required max_credits, idempotency_key, and variants containing two or three objects with optional input/parameter overrides. For example: variants: [{parameters: {style: "UGC"}}, {parameters: {style: "Product Review"}}]. Each variant is a separate paid attempt. This is a wrapper over the existing Studio batch queue: it returns batch_id, uses get_studio_batch for results and the same pause/budget/rework controls. It never bypasses capacity limits.
Use rename_project with the project_id returned by list_projects, generation or get_task, and project_name (trimmed, 1–200 characters). Renaming also updates the task title and LAB history, including when a project is still waiting to be created. It does not change the original idempotency request hash.
Only examples administrators discover promote_to_example. It takes an owned project_id with a saved result, required active, and surfaces: ["dashboard", "studio", "landing"] (choose any subset). studio maps to the existing ProVid/Studio visibility flag. active: false hides the example everywhere regardless of surface selection. The result includes visible_on so the effective visibility is clear. Publishing requires a user request; this tool does not spend generation credits.
Organize existing projects
Use list_projects to find existing projects without generating. It includes Studio, workflows, LAB history and queued API projects. Optional filters: source: "all" | "studio" | "workflow" | "lab", q for literal title search, and folder_id for an owned folder or "unfiled". Omit the folder filter to see all projects. Both list_projects and list_project_folders accept offset (default 0) and limit (1–100, default 50); follow next_offset until it is null.
For example, to organize approved campaign results:
- Call
list_projectswith{"q":"approved"}and select the intended projects. - Call
list_project_folders; reuse the intended folder or callcreate_project_folderwith{"name":"Summer campaign"}. - Call
move_projectfor each selectedproject_idwith the returnedfolder_id. - Call
list_projectswith thatfolder_idto verify the folder's contents.
Use move_project with folder_id: null to remove a project from its folder. rename_project_folder accepts folder_id and name. Folder names must contain 1–80 characters after trimming and be unique in your account; a duplicate returns FOLDER_NAME_CONFLICT. After an uncertain create response, list folders before retrying. Moves and renames are safe to repeat and do not spend credits, generate media, or change results. Queued projects retain their names and folders when the worker creates them. These operations cannot access another account's projects or folders.
Media and generation
Reference media can be a public URL or an owned V4V file ID. A field named image_url accepts a file ID too; use the model schema to choose the exact input field.
Automatic uploads from attached and local files
The assistant can upload the original file itself when its execution environment can reach this V4V deployment. You do not need to copy an API key into chat or select the same file again.
- Call
create_upload_link. Despite its name, the tool also returnsupload_request: a POST URL, a scopedx-upload-tokenheader and the multipart field namefile. - From the assistant's execution tool, send the actual local file bytes to that URL using multipart/form-data. Let the HTTP client set the boundary and disable redirects. Do not convert the image or print base64 into the conversation.
- Read the response's
file_idand confirm withget_uploadusingupload_id. - Discover the model's input schema, pass that ID into its media field (such as Topaz
image_url), and submit the requested generation. - For multiple references, repeat with a separate upload slot for each required file.
The upload token expires after 15 minutes, accepts one file up to 20 MiB subject to the server limit, and cannot read your library or spend generation credits. The actual bytes travel over HTTP; MCP supplies the scoped authorization and controls the generation.
For an execution environment with the tool result available as slot, the binary transfer is:
import requests
upload = slot["upload_request"]
with open(local_file_path, "rb") as source:
response = requests.post(
upload["url"],
headers=upload["headers"],
files={upload["file_field"]: (filename, source, content_type)},
allow_redirects=False,
timeout=120,
)
if response.status_code != 200:
raise RuntimeError(f"Upload failed: HTTP {response.status_code}")
file_id = response.json()["file_id"]Allowing the upload hostname in Claude
MCP connectivity and sandbox network access are separate. host_not_allowed means the sandbox cannot send the binary upload even though MCP calls work.
Follow Claude Web → Allow automatic file uploads above: open Settings → Capabilities → Domain allowlist, add v4v.ai, *.v4v.ai, and *.v4vcdn.space, and enable network egress. For dev, add h4000.kitpes.com separately. Workspace-managed restrictions may require an administrator to make the change.
The assistant must stop after the first denied request and explain the required setting, not retry for minutes or convert the file into model text. Start a fresh conversation after updating permissions and refresh the connector's tools after a server update.
Optional browser fallback
If you choose manual upload, open upload_url, select the original file, and tell the assistant when it is ready. It retrieves the file ID with get_upload. This is a fallback, not a required step when automatic HTTP upload works.
upload_media remains for programmatic byte forwarding or tiny payloads up to 8 KiB encoded. Its 5 MiB decoded server limit is not a practical language-model text budget. Do not resize/recompress a source merely to transfer it, print large base64 strings, or loop over encoded chunks.
REST upload for larger files
If the assistant's execution environment has outbound network access and a securely configured API key, it can upload through POST /api/v1/files using the multipart field file. The MCP connector's key is not automatically available to shell tools.
# V4V_BASE_URL is this deployment's origin, e.g. https://h4000.kitpes.com
curl "$V4V_BASE_URL/api/v1/files" \
-H "Authorization: Bearer $V4V_API_KEY" \
-F "file=@/path/to/photo.png"The response's id is the file ID to use in generation inputs. Let curl set the multipart boundary. Keep credentials in secure client configuration, not in the conversation.
Public URLs
Use import_media to save an accessible media URL for reuse, or supply the URL directly to the model. Do not pass a local path or a sandbox URL as a public URL.
Example arguments for generate_lab (replace the sample ID with the ID returned by your upload):
{
"model": "image-upscale-topaz",
"project_name": "Product detail — enlarged",
"input": {
"image_url": "0123456789abcdef01234567"
},
"parameters": {
"upscale_factor": "2"
},
"idempotency_key": "product-detail-upscale-001"
}Example arguments for generate_studio:
{
"project_name": "Ceramic mug — launch video",
"input": {
"product_name": "Ceramic mug",
"product_description": "A handmade mug with a matte glaze",
"product_images": [
"https://example.com/mug.jpg"
],
"prompt": "A calm product reveal in soft morning light"
},
"parameters": {
"duration": 8,
"aspect_ratio": "9:16"
},
"idempotency_key": "mug-launch-video-001"
}Use a new idempotency_key for each intentional generation. Reuse the same key and arguments when retrying a request after a network interruption. Reusing a key with changed inputs returns a conflict.
Retrieve the result
Generation tools return task_id and project_id immediately. If the account concurrency limit is full, the same task waits with credits_reserved: 0, credits_estimated, and queue details containing the configured limit, a five-second check interval, and estimated_start_at: null. Completion times cannot be predicted. Do not submit another generation to bypass waiting. The worker reserves credits when a slot opens; if the balance is insufficient then, the task fails at the admission stage and sends its configured webhook. They do not hold the conversation open until rendering finishes.
{
"task_id": "task_6aa962444bd1dd7ab65bc6b6"
}Pass that ID to get_task. Wait at least five seconds between checks. A task can be queued, processing, completed, failed, or cancelled.
When the status is completed, results contains inline text for chat or signed download URLs for media. The assistant can share these URLs with you without requiring browser cookies. Use get_task or refresh_task_results if a link expires. Media results include stable asset_id/file_id; pass file_id directly into future generation media fields instead of copying an expiring URL. The next-day reuse contract is the stable ID plus a renewable link while the file exists and access remains allowed; the URL itself can expire. Links stay signed; never remove the signature or derive an unsigned CDN path. Stop polling on any terminal status. Checking a task never starts a second generation. Failed tasks report error.stage, brief_completed, retryable, and suggested retry_after_seconds where known, alongside the actual credits_used. A completed brief can retain its charge even when video generation fails. retryable: true describes a potentially transient error; it does not authorize another paid attempt. If the task returns GENERATION_SERVICE_ERROR, the model service reported an internal failure. Do not assume the source resolution or scale factor caused it, or automatically switch models or create new paid attempts. Explain the failure and wait for a requested retry.
LAB generations also appear in LAB → Old runs and Projects. Your API-key usage appears in your profile.
Completion webhooks
generate_lab and generate_studio accept callback_url using the existing REST webhook delivery and signature verification. V4V posts task.completed or task.failed with stable event_id, task data, credits and results. Verify X-V4V-Timestamp and X-V4V-Signature using the webhook signing secret shown when the API key was created, and deduplicate by event_id. Do not paste secrets into chat. Delivery retries do not create new generations. Callback URLs use the same external-network validation as REST. Bulk and variant submissions also accept callback_url for signed batch events; see the monitoring workflow below. See REST webhook verification.
Credits and access
Generation uses your normal V4V credits. For ordinary LAB/Studio tasks, estimated cost is reserved when capacity is available; excess tasks wait without a reservation. Unused credit follows the same release rules as the REST API. Looking up models, balances, tasks and existing files does not spend generation credits.
Each tool is scoped to the owner of the configured key. Another account's files and tasks cannot be accessed. Revoke a key in your profile to disable its MCP connection. Tool annotations identify calls that create work and spend credits, so your client can offer its normal tool-approval controls.
Troubleshooting
| Symptom | What to check |
|---|---|
create_upload_link or upload_media is missing | Refresh or reconnect the MCP connector so the client discovers the updated tool list |
| HTTP 401 | Use a valid, unrevoked key in x-api-key, or Authorization with the Bearer prefix; remove conflicting headers |
| HTTP 403 | For a browser-based client, its Origin must be allowed by the deployment |
| HTTP 405 in a browser | The endpoint accepts MCP POST requests; use an MCP client |
| HTTP 406 | The client must accept both application/json and text/event-stream |
HTTP 429 / RATE_LIMIT_EXCEEDED | Read error.retryable and retry_after_seconds in JSON; request-window limits also include scope and limit. Wait the delay and reuse the same request/idempotency key for a rejected request. An already failed task stays terminal. Account and key limits are shared with REST. |
Tool result has isError: true | Read the structured error, correct the inputs, and avoid blind generation retries |
| Model input rejected | Refresh get_model and use its current schema |
| Task stays queued or processing | Continue checking with a delay; do not submit a replacement generation automatically |
The service uses the official MCP TypeScript SDK and a stateless JSON response mode over Streamable HTTP. Bounded wait tools keep the individual request open until an update or timeout; they do not establish a permanent notification channel. The client negotiates the protocol version when it connects.
GPT Image 2.5 image variants
Model discovery includes Flare and Sunburst text/image variants with Sunburst defaults for image.text_to_image and ai.image_edit. They support background, 1K/2K/4K pricing (6/10/16 credits), prompts up to 20,000 characters, and up to 16 edit images. See GPT Image 2.5 settings and API examples for variant IDs and aspect-ratio restrictions.
Kling 4.0 video models
Four separate nodes share the same generation and result handling in Lab, Workflows, API and MCP:
| Catalog ID | Model | Duration | Resolution |
|---|---|---|---|
video.kling_v40_ref | Kling 4.0 Reference | 3–30 seconds | 720p / 1080p |
video.kling_v40_key | Kling 4.0 Keyframe | 3–30 seconds | 720p / 1080p |
video.kling_v40_flash_ref | Kling 4.0 Flash Reference | 3–20 seconds | 720p |
video.kling_v40_flash_key | Kling 4.0 Flash Keyframe | 3–20 seconds | 720p |
All accept a required prompt (up to 8000 characters), integer duration, resolution and aspectRatio (auto, 16:9, 9:16, 1:1, 21:9; Flash Keyframe excludes auto). All can generate from text alone. Reference inputs are optional.
Reference models accept referenceImageUrls (up to 10), referenceVideoUrls (up to 5), elements (up to 7, at most 3 with video) and keepOriginalSound. A named element has name, either imageUrls (2–4 images) or videoUrl (one 3–8s character clip), optional tag, description (100 characters), and character voiceUrl. Flash also accepts element type (image or video). Standard Reference additionally accepts voices: up to 3 objects with name and audioUrl. Flash binds voices to character elements instead.
There are at most 15 combined images, video references, elements and standalone voices; reference videos plus video elements cannot exceed 5. Each reference video must be 2–30s (2–20s for Flash), and their combined duration including video elements is at most 30s (20s for Flash). Names must be unique ignoring case, 1–20 Chinese characters, letters, digits or underscores; built-in reference names are reserved. Mention supplied references as @image_1, @video_1 or their declared @name. Undeclared mentions are rejected.
Keyframe models use firstFrameUrl. Standard Keyframe also accepts ordered keyframeUrls (up to 8 middle frames) and lastFrameUrl; those require a first frame. Total frames cannot exceed min(duration + 1, 10). Flash Keyframe supports the first frame only. Mention frames as @first_frame, @keyframe_1, @last_frame. Frame-based output follows the first image's aspect ratio.
All media fields, including nested elements and voices, accept URLs or owned V4V file IDs in API/MCP. Workflow image/video ports use reference_image_urls / reference_video_urls, or first_frame_url / keyframe_urls / last_frame_url; prompts use script-in. Standard Reference also accepts audio on voice_audio_urls, declared as @voice_1, @voice_2, etc. Both workflow outputs are standard video / clips, suitable for the existing renderer and editor. API/MCP return the usual asynchronous task and downloadable result files; poll the task or use completion webhooks.
Approved base rates in V4V credits per second, before administrator overrides or existing workflow adjustments. These rates are used directly, without USD conversion or retail markup:
| Model | 720p, no video | 720p, with video | 1080p, no video | 1080p, with video |
|---|---|---|---|---|
| Standard Reference | 28.5 | 17 | 42.5 | 25.5 |
| Standard Keyframe | 28.5 | unavailable | 42.5 | unavailable |
| Flash Reference | 17 | 11.3 | unavailable | unavailable |
| Flash Keyframe | 17 | unavailable | unavailable | unavailable |
Examples for a 5-second output:
| Model | 5s without source video | 5s with up to 5s source video |
|---|---|---|
| Standard Reference, 720p | 142.5 credits | 170 credits |
| Standard Reference, 1080p | 212.5 credits | 255 credits |
| Standard Keyframe, 720p / 1080p | 142.5 / 212.5 credits | unavailable |
| Flash Reference, 720p | 85 credits | 113 credits |
| Flash Keyframe, 720p | 85 credits | unavailable |
Without video input, billable seconds equal output seconds. With reference video or a video element, billable seconds equal max(total input video seconds, output seconds) + output seconds, at the corresponding video-input rate. For example, a 10s 1080p Standard Reference output with 15s of input is 25 billed seconds, 637.5 credits before adjustments. Fractional credits are retained; the complete charge is rounded once to two decimals. Unknown input duration uses the model's maximum permitted input duration for a conservative estimate; the server verifies actual source durations before charging. Request a current quote using the same inputs as generation. Administration exposes separate resolution/video-input rates for each node. Older Kling nodes keep their existing prices and settings.
{
"model": "video.kling_v40_key",
"input": {
"prompt": "Move from @first_frame to @keyframe_1 and finish at @last_frame",
"firstFrameUrl": "https://example.com/start.png",
"keyframeUrls": [
"https://example.com/middle.png"
],
"lastFrameUrl": "https://example.com/end.png"
},
"parameters": {
"duration": 5,
"resolution": "1080p",
"aspectRatio": "16:9"
}
}Use this body with generate_lab in MCP or POST /api/v1/lab in HTTP. For a quote, add "source": "lab" and use estimate_generation in MCP or POST /api/v1/generation/quote in HTTP. Always discover the selected model with get_model or GET /api/v1/models/{id} first. Standard generation authorization, balance checks, idempotency keys, callbacks and failure refunds apply.
GPT-6 Astra chat
Use list_models with {"type":"chat"}, then get_model with {"model":"chat.gpt_6_astra"} to inspect current inputs, token rates and rounding. Submit using generate_lab:
{
"model": "chat.gpt_6_astra",
"input": {
"prompt": "Explain this idea in three sentences."
},
"parameters": {
"reasoningEffort": "low",
"webSearch": false,
"stream": false
},
"idempotency_key": "astra-question-001"
}Optional input.imageUrls accepts up to 12 public URLs or owned file IDs. Text-only requests use string input upstream; images use the model’s multimodal message array. Optional input.functionTools accepts a JSON string of function definitions; web search must be off when functions are present. Function selection is automatic, and completed task results include function_calls for the caller to handle. The model node does not execute functions. Poll get_task using the returned task ID. Completed results entries have type: "text", text, usage, credits and incomplete instead of a download URL.
Chat initially reserves 1 credit. Final cost uses actual input, cache and output tokens, rounded up to a whole credit with a minimum of 1. Any amount above the reservation is deducted after the response; the initial reservation is not a spending cap. Token rates are published by get_model. Reuse the same idempotency key and arguments for network retries; do not submit another paid generation automatically after a failure.
For usage-priced chat and image generation, estimate_generation also returns credits_range.min and credits_range.max in V4V credits, with markup and current price adjustments included. Present this as an approximate range. Its assumptions describe illustrative usage scenarios; actual cost can fall outside the range, and is_spending_cap is false. credits_estimated and initial_reservation_estimated remain the separate initial reservation estimate. This preview reserves no credits and starts no generation.
Current image and chat models
Omni Flash 1.2 is the default for an unspecified video request; 1.1 remains available by explicit selection. Use get_model for image.text_to_image or ai.image_edit to discover GPT Image 2.6 Flare, Sunburst and Economy variants. Pass parameters.outputFormat and respect allowed_by_variant: Flare/Sunburst text-to-image support PNG/JPEG/WebP/GIF/SVG; their image-to-image variants support PNG/JPEG/WebP; Economy text supports PNG/GIF and Economy image supports PNG. Output downloads preserve GIF frames and SVG vector bytes. SVG conversion usage is included in final billing.
Nano Banana 2.1 (parameters.variant: "nano-banana-v2.1") supports 1K/2K/4K and up to 10 references. Read pricing_by_variant for its current billing mode. Google/Vertex generation settles actual input, cached input, image output, text output and thinking tokens, including markup; other routing uses the configured image tariff. Gemini 4 Argon (chat.gemini_4_argon) includes thinking tokens in usage billing. Use estimate_generation to show approximate credit ranges; the initial reservation and range are separate from final usage and are not spending caps. Never invent routing parameters or silently change administration settings.
Bulk Studio product videos
Use generate_studio_bulk when you want videos for a list of products. It accepts 1–300 items and returns a batch_id immediately. It shares the account's normal credit balance and the shared V4V generation queue with REST and the web application.
{
"name": "Autumn product videos",
"input": {
"prompt": "Show three benefits in a calm product reveal"
},
"parameters": {
"duration": 8,
"aspect_ratio": "9:16"
},
"max_credits": 600,
"test_count": 5,
"items": [
{
"sku": "MUG-01",
"product_id": "0123456789abcdef01234567"
},
{
"sku": "BAG-02",
"product_url": "https://shop.example/products/bag?variant=blue"
},
{
"sku": "LAMP-03",
"input": {
"product_name": "Desk lamp",
"product_images": [
"https://shop.example/lamp.jpg"
]
},
"parameters": {
"style": "TV Spot"
}
}
],
"idempotency_key": "autumn-products-001"
}Item input and parameters override the shared settings; Studio defaults fill the rest. Supply owned product IDs, public product page URLs, or prepared product details and media. Use the settings supported by the deployment's current Studio model. Omit test_count to process the whole list. With test_count: 5, the first five items (or all items if fewer than five) run before the batch pauses for review.
| Tool | Purpose | Spends generation credits? |
|---|---|---|
generate_studio_bulk | Create a product video batch with a required credit budget | Yes, as each item starts |
list_studio_batches | List the account's latest batches | No |
get_studio_batch | Read paginated progress, item task IDs, results and a stable state_token | No |
wait_studio_batch | Wait for a change, completion, pause or cancellation; default 25 seconds | No |
control_studio_batch | pause, resume, cancel, retry_failed, rework, or restart; optional max_credits increases the cumulative budget | Resume and new attempts can spend credits |
DIRECTOR_REQUEST_FAILED identifies rejection of the AI Director text request; REFERENCE_MEDIA_UNAVAILABLE identifies a problem reading its reference files. Explain the failed stage and report the task ID; never assume these mean a video-generation request failed or automatically create another paid attempt.
Public eBay item URLs support a protected browser import fallback. If a store still rejects an import, send an owned product_id or prepared product details/images. IMPORT_FAILED occurs before paid admission and includes the known import reason; PREPARATION_FAILED identifies a later preparation failure. A failed attempt stays terminal. When the user requests a retry, call control_studio_batch with action: "retry_failed" and a new idempotency_key; optionally provide zero-based item_indexes. For corrected inputs or a deliberate remake, use action: "rework" with items: [{task_id: "task_…", input: {prompt: "New direction"}}] (or use index: 1 instead of task_id). Use action: "restart" only when the user requests all items again, including successes. These three actions require a new key for each intentional operation; replay the same key and arguments on network errors. resume does not retry failed attempts.
To remake only the results you dislike, select their current items[].task_id and call control_studio_batch with action: "rework", those IDs in items, and a new idempotency_key. Omit input changes to rerun the same brief. Selected current results clear immediately and the same batch resumes processing; other completed items stay unchanged. items[].results always describes the latest intended version, while attempts preserves the older output. A stale replaced task ID returns BATCH_ITEM_VERSION_CHANGED; read the batch again before a new intentional rework.
Monitor a batch in Claude's browser connector
A webhook sends an HTTP request to a real receiver. It does not give this MCP connection a way to restart an idle Claude browser conversation. Never invent a callback URL or promise a future chat message after the conversation has ended.
During the user's requested batch workflow, Claude should monitor automatically:
- Keep the
batch_idandstate_tokenfromgenerate_studio_bulk,generate_studio_variants, orget_studio_batch. - Call
wait_studio_batchwithbatch_id,after_stateset to that token, andwait_seconds: 25for browser connectors. Optional pagination usesoffsetandlimit(default 50, maximum 100). - The server returns on a meaningful batch change, completion, pause, cancellation, or the bounded timeout. Worker heartbeats and expiring result signatures do not change the token. The response contains the updated batch page,
changed,timed_out,stop_reason, andnext_action. - While
statusisrunning, continue waiting with the returned token without asking the user to say “check again”. Report useful milestones, not every unchanged timeout. A timeout does not fail or cancel generation. Do not submit a replacement batch. - On
completed, report results and failures. Onpaused, explainwaiting_reasonand wait for the user's decision. Never automatically resume, increase a budget, or retry paid attempts.cancelledalso ends this monitoring loop.
This uses server-side long polling inside an active tool workflow. If Claude ends its turn, the user closes the conversation, or the client enforces a runtime limit, the batch still runs but this connection cannot guarantee a new chat message. Cancelling/disconnecting a wait only stops observation, not the batch. Checking or waiting spends no generation credits.
wait_seconds accepts 1–240 seconds. Claude Code supports automatically backgrounding long MCP calls in recent versions; for a 240-second wait, configure that server's timeout to at least 300000 milliseconds and allow the request through proxy timeouts. Browser connectors should use the 25-second default. See Claude Code long tool calls. This behavior is client-specific and is not a browser wakeup guarantee.
Batch webhooks for external receivers
Pass callback_url when creating a bulk batch or variants. The existing API-key webhook signing secret and X-V4V-Timestamp / X-V4V-Signature verification apply. The callback destination is fixed by the idempotent creation request; replay the same URL and arguments after network errors.
The worker records meaningful snapshots and delivers batch.updated, batch.completed, batch.paused, and batch.cancelled. Events include stable event_id, batch_id, batch_revision, observed_at, state_token, status, counts and credit totals. result_lookup points to get_studio_batch for paginated files and task details; webhook payloads do not embed expiring result URLs. Intermediate transitions can be coalesced between worker ticks.
Delivery uses a durable outbox with leases and bounded retries. Repeated delivery has the same event ID and payload; signatures are refreshed per attempt. Receivers must deduplicate and tolerate out-of-order delivery, then fetch current batch state when needed. Permanent HTTP errors abandon delivery; transient failures back off. A slow webhook receiver does not block the generation/admission worker. Pauses, cancellations with active work, and later requested restarts/reworks continue to produce updates. Delivery never starts another paid attempt.
For occasional manual status reads, call get_studio_batch at least five seconds apart; for active agent monitoring prefer wait_studio_batch. Individual attempts use the ordinary get_task tool for signed download links. These tools continue processing on the server without the conversation or a browser tab remaining open.
Bulk queues reserve only the next admitted item's estimate. max_credits bounds spent credits plus active reservations. Insufficient balance or budget pauses new starts; after the user requests it, call control_studio_batch with action: "resume", optionally increasing max_credits. Pause/cancel lets active attempts finish. Cancelled batches cannot resume, but can explicitly restart or rework terminal items after admitted work finishes. Selected items must be terminal (BATCH_ITEMS_ACTIVE); active or uncertain provider requests block retries (GENERATION_UNRESOLVED). NO_FAILED_ITEMS means no latest failures remain. History, results and cumulative spending survive all operations; counts and item status use only the latest intended versions. New versions share the same queues and Credit Log attribution. Optional operation-wide input/parameters changes merge over the previous request, and per-item rework overrides win. A preserved sample gate still requires explicit resume; restart removes it. See the REST contract for request/history limits and full examples. Reuse the same idempotency_key and arguments after a network error; never create another batch to bypass queue waiting.
Generation requests share at most 10 active slots across accounts and application processes. Ordinary generation has priority; bulk uses spare capacity under administrator-defined global and per-user limits. A lost provider response keeps its slot occupied for reconciliation and never triggers an automatic duplicate paid request. API and MCP credit events are labelled separately in the administrator's Credit Logs.
This release provides generation and individual downloads through API/MCP. The broader plan's Studio bulk screens, CSV upload, result approval and ZIP export remain future work. Refresh your MCP connector's tool list after deployment to discover the new batch tools. See the REST bulk contract for fields, budget semantics and errors.
Video Editor
The editor at /video-editor lets you and your assistant work on the same saved, multi-layer timeline. It supports video, images/logos, source audio, independent music/voice layers, text, timed captions, trimming, splitting, speed, volume, fades and take-review notes. The browser provides interactive preview and local MP4/WebM export. Open Video Editor to edit interactively; the tools and limits are described below.
Start with get_editor_guide (also available as resource v4v://video-editor). Refresh the connector's tool list after deployment.
For a complete content factory, read get_factory_guide / v4v://factory. create_factory_run, list_factory_runs, get_factory_run and submit_factory_stage persist the nine roles with exact operation retries and distinct run/project revisions. prepare_factory_review returns real captured images, get_factory_frame reads them again, and preview_factory_audio returns a measured WAV excerpt. Inspect every captured frame and review motion/speech before submitting judgement. repair_factory_run allows at most two corrections; release_factory_run queues and then verifies a complete private Library export, editable ZIP, cover and REVIEW.md. These tools require project ownership; writes need OAuth read + write, without generation permission or credit charges. Paid scene generation remains a separate budgeted operation. See the Ukrainian factory contract for HTTP routes, recovery and measured versus reviewer-reported evidence.
| Tool | Purpose |
|---|---|
get_editor_guide | Timeline contract, editing workflow and an empty timeline example |
get_motion_guide | Versioned motion API, actual schemas, native/HTML examples, time/geometry units and lifecycle; also v4v://motion-api |
get_editor_troubleshooting | Versioned recovery guidance for actual errors; also v4v://troubleshooting; reading never performs a repair or retry |
get_project_transfer_guide | Local/V4V ZIP interoperability, binary requests, permissions and recovery; also v4v://project-transfer |
export_editor_bundle | Prepare a scoped binary download request for a project at the current revision; execute it to obtain the actual ZIP |
import_editor_bundle | Prepare a binary ZIP upload with {}, then recover its new project with transfer_id; no base64 through model text |
get_editor_capabilities | Actual formats, runtimes, local/shared operations and optional services |
get_creative_library / search_creative_library | Discover the installed shared creative registry |
get_creative_item | One item's exact schema, original example, preview paths, license and limits |
get_style_format_guide | Data-only community pack format; same content as v4v://style-format |
create_style_example | Import a new editable style example and original media into the account; no model credits |
apply_style | Preview with dry_run=true, then commit at the same revision; locks and manual overrides remain |
check_editor_project | Structural/media P0/P1 review; inspect actual frames and audio separately |
list_editor_projects | Find owned/shared editor projects, filter scope, and read access levels |
create_editor_project | Create an empty project or a validated timeline |
get_editor_project | Read timeline, revision and renewable media URLs |
update_editor_project | Save a complete timeline at an expected revision |
edit_editor_project | Apply atomic clip/layer/caption operations at an expected revision |
propose_editor_silence_cuts | Measure actual source audio and propose padded quiet intervals without editing; explicitly apply reviewed remove_time_ranges at the same revision to ripple all tracks |
propose_editor_audio_ducking | Measure actual voice/music stems and proposed automation; inspect before/after RMS, then explicitly apply returned set_audio_envelope at the same revision |
get_safe_area_guide | Versioned editorial destination profiles and custom schema; also v4v://safe-areas |
inspect_editor_text | Measure saved native/motion/HTML text with bundled fonts and report sampled overflow, overlap and readability findings |
propose_editor_text_fit | Propose static-text font sizing without changing words, timing or the saved project |
propose_editor_scene_layout | Propose explicit motion/HTML content bounds and font floor from the saved safe-area profile; review and apply returned set_scene_layout |
list_editor_media | Search owned Library media by type and name |
get_editor_media | Inspect owned source duration, dimensions and playback URL |
preview_editor_project | Return up to six actual composited JPEG frames for visual inspection |
get_editor_text_styles | Discover text/caption presets, outlines, motion and sound reaction |
quote_editor_captions | Quote source speech transcription without generating |
transcribe_editor_media | Start speech transcription; spends normal account credits |
get_editor_captions | Read transcription progress and source-time cues |
append_editor_audio | Append ordered audio asset IDs to an unlocked layer, with optional pauses |
export_editor_project | Queue/recover MP4, WebM, MP3, or static-cover MP4; return export_id immediately |
get_editor_export | Poll status/stage and retrieve the completed Library asset with renewed links |
get_editor_project_sharing | Owner: list collaborators and return the private project link |
share_editor_project_with_user | Owner: invite by email or change read/write access, optionally notify by email |
remove_editor_project_access | Owner: revoke a collaborator by user ID |
transfer_editor_project_ownership | Owner: explicitly transfer to another V4V account by email |
share_editor_project | Publish a public link for the current exported video, when explicitly requested |
Motion API and recovery
Starting with Kit 0.1.31, get_motion_guide and get_editor_troubleshooting take {} and match their JSON resources exactly. Both contain version and engineVersion; discover the current server's tools after deployment. Their V4V OAuth scope is v4v:read. Reading these resources does not edit, render, retry or reserve credits.
The motion guide contains actual registered schemas, native and HTML add_clip examples, deterministic prepare / renderAt / dispose lifecycle, local scene time and fractional geometry rules. In a new empty project, apply its example operations at the saved revision and preview seconds 1 and 5. In existing projects, adapt track/clip IDs and placement deliberately. Only registered JSON scenes are accepted; the timeline does not install arbitrary HTML or scripts. Inspect actual frames and the exported motion before acceptance.
Use troubleshooting with the actual error code and saved state. A CONFLICT means reload and preserve concurrent edits; missing media requires an authorized real source; missing fonts need explicit restoration. Inspect the existing export/shot attempt after an unknown response. Reading a recovery recipe never authorizes a new purchase, a permission bypass or restarting a cancelled operation.
Measured layout and audio proposals
Safe-area profiles are versioned editorial guides, not official platform guarantees. set_safe_area_profile persists the guide without changing rendered pixels. propose_editor_scene_layout uses it to propose explicit motion.layout; review applicable and the report, then apply its returned operations through edit_editor_project at the same revision. layout:null reverses the setting. Changing the guide later does not refit content. inspect_editor_text samples real glyphs/DOM boxes; baked-in media text, rotated clipping, contrast over footage, full motion and listening remain review tasks.
For music under voice, call propose_editor_audio_ducking with actual project_id, revision, disjoint voice_clip_ids and music_clip_ids, and optional options. Defaults target a 12 dB voice/music RMS margin, detect activity at −40 dBFS and limit attenuation to 30 dB. The service mixes selected sources with their actual trims, speed, volume and fades; it also remixes and measures the proposed music. Inspect baseline comparison, measured after, targetMet, warnings and phrase intervals, listen, then explicitly apply returned operations through edit_editor_project at the same revision.
Selected music automation is replaced rather than compounded; base gain/fades remain. Curves are portable in ZIP and follow their music clip. Recalculate after changing voice timing/level, sources or music placement. Up to 500 voice and 20 music clips, 100 MiB per V4V source, 512 MiB total and 64 intersecting clips per analysis window; resource/rate limits also apply. Read access permits proposals, while applying them requires write access. Neither measurement nor local editing spends credits. RMS and detected amplitude do not prove intelligibility; quiet-cut suggestions likewise need listening before all-track ripple edits.
Portable ZIP through V4V MCP
Read get_project_transfer_guide / v4v://project-transfer. Both hosts use the same .v4v.zip content: a versioned bundle.json and original assets/<sha256> bytes. Only local Kit accepts the directory argument; V4V explicitly rejects local filesystem paths.
Export: call export_editor_bundle with project_id and current revision, then execute its download_request using the exact scoped header and save the actual binary response. The tool has prepared a request, not yet created a file. The download rechecks account/key/OAuth, project/media access and revision. Its response contains X-Content-SHA256; compare the downloaded bytes. If the project changed, read its revision again and deliberately request another export.
Import: call import_editor_bundle with {}, POST the original ZIP bytes using the returned upload_request (application/zip, not multipart), then call import_editor_bundle with its transfer_id. This creates a new project, verifies/probes sources and remaps nested asset IDs. After a lost acknowledgement, recover the same transfer: a completed import returns the existing project. An interrupted import can reclaim its expired lease using the original bytes; a different file requires a new transfer. Never invent file data or print large base64 into model context. Clients without binary file access can use Studio Open project ZIP.
Transfer credentials expire after 15 minutes; receipts remain recoverable for seven days. Tokens belong in the returned request header, not URLs, timelines or public messages. Import requires OAuth read + write; export requires read and current project access. ZIP and expanded contents are limited to 100 MiB; two transfers per process, bounded request bodies, leases and per-user/request rate limits apply. Import/export performs no generation, public sharing or notifications. Account sharing permissions and model credentials do not travel in the ZIP. Reopen the returned project and inspect actual media/frames before delivery.
Private project sharing through MCP
The assistant can complete private sharing without asking the user to operate the browser. If the recipient's V4V email or read/write access level is missing, ask for it, then call:
{
"name": "share_editor_project_with_user",
"arguments": {
"project_id": "169000000000000000000002",
"email": "collaborator@example.com",
"access": "write",
"notify_by_email": true
}
}Use notify_by_email: true only when the user requested an email notification; it defaults to false. Return project_link for the user to send, and report emailNotification accurately: failed means access was granted but the email was not sent. The project link requires the invited account; logged-out recipients sign in and return to the same project. No video export, generation, or generation credits are needed.
get_editor_project_sharing lists collaborators and their userId, email and access. Change permissions with share_editor_project_with_user; revoke a listed user with remove_editor_project_access and its user_id. Transfer only when the user explicitly requested ownership transfer and supplied the new owner's email. The old owner loses access; other collaborators and source references remain. All management calls enforce project ownership; OAuth mutations additionally require v4v:write.
share_editor_project remains a different action: it publishes the finished exported video to a public share page. Do not use it for private collaborator invitations. Refresh/reconnect the MCP connector after deployment to discover the new tools and instructions.
Editor project IDs are separate from Studio/LAB generation project IDs. Use list_editor_projects, not list_projects, to discover them. Generation remains available through the existing model discovery, estimate and generate_lab tools. Completed media's file_id can be used directly as timeline assetId. Speech-to-text is also discoverable as type: "subtitle"; prefer ai.gemini_3_5_transcribe (Gemini 3.5 Transcribe). Its completed API task results contain text, SRT, VTT, and timed cues/words in source seconds. The dedicated editor transcription tools simplify using an existing Library source.
A typical agent request:
Build a 20-second vertical film from my Library clips. Review representative frames and replace the distorted take with a new generation after showing its cost. Trim the shots, add my logo, quiet background music, a voiceover and timed captions. Save the finished video to Library and give me a download link.
The assistant should:
- Read the guide, find the project and source media, and inspect durations and playback.
- Create or edit the timeline using its current revision. Add a logo as an image on an upper visual layer and voice/music on audio layers. Original media is unchanged.
- Use
preview_editor_projectto inspect selected frame times. Set clipreview: "keep"or"replace"and record the reason innote. Frames do not establish motion or sound quality; inspect source playback too. - Discover/estimate requested models, generate replacements with unique idempotency keys, and wait for their completed file IDs. Replace the selected clip's source and clamp its trim/duration to the new source.
- Quote/transcribe the original voice source, poll at least five seconds apart, then add cues with
sourceClipIdto account for trimming and speed. Review transcription text. Supplying existing timed cues costs no credits. - Submit the current revision with
export_editor_project; pollget_editor_exportat least five seconds apart while queued/rendering. A disconnected MCP request does not cancel the job. Onlycompletedwith an asset ID and download URL means success; inspect failures before explicitly retrying withretry_failed: true. Create a share link only if requested.
Example targeted edit after get_editor_project:
{
"project_id": "PROJECT_ID_FROM_CREATE",
"revision": 3,
"operations": [
{
"type": "update_clip",
"clipId": "shot-1",
"changes": {
"trimStart": 1.5,
"duration": 3,
"volume": 0.25,
"review": "keep"
}
},
{
"type": "split_clip",
"clipId": "shot-2",
"time": 7,
"newClipId": "shot-2b"
},
{
"type": "add_captions",
"sourceClipId": "voice-1",
"cues": [
{
"start": 0.2,
"end": 2.1,
"text": "A new perspective."
}
]
}
]
}start/duration use timeline seconds, trimStart uses source seconds, and the split time is an absolute timeline time. Read actual media duration before trimming. add_clip accepts a clip with unique id, trackId, kind, assetId, start, and duration; other fields have defaults. Text uses kind: "text" and text instead of an asset. Track kinds are visual, audio, or text. add_track, update_track, remove_track and reorder_tracks manage layers. Tracks render in array order, last on top. Overlap visual layers and use fades for dissolves.
The server rejects inaccessible media, mismatched media types, invalid trims and stale revisions. On a revision conflict, read the new version and reapply intended changes. Do not overwrite the other editor's work. Open clean browser editors pick up agent changes automatically; locally modified drafts retain their changes and show conflicts.
Agent frame inspection and visual-timeline WebM export require Playwright Chromium on the deployment. These visual-timeline exports support up to two minutes and 300 MB source media, and return a saved WebM; a repeated same-revision export reuses its existing asset. Browser export supports ten-minute timelines and offers MP4 when the device has H.264/AAC encoders. If rendering fails, report the error and editor link; do not claim a successful export. Timeline editing/rendering spends no model credits; generation/transcription does. Sharing creates a link visible to anyone with the link.
Gemini text-to-voice
Use list_models with type="audio", then get_model for
ai.gemini_3_8_flash_tts or ai.gemini_3_8_flash_lite_tts.
Both generate single-speaker WAV audio from up to 10,000 spoken characters:
{
"model": "ai.gemini_3_8_flash_tts",
"input": {
"text": "Welcome! <short pause> Let’s get started."
},
"parameters": {
"voice": "Kore",
"style": "Warm and friendly"
},
"idempotency_key": "unique-intentional-generation-id"
}Read get_model.voices for each preset’s exact id, gender, description
and free preview_url. Send the selected ID as parameters.voice; omit
metadata and preview URLs from generation arguments. Check the balance and call
estimate_generation with source="lab" first, then call generate_lab. Read get_task for
owned audio file IDs and signed download links. Delivery instructions belong in
style; they are not spoken. Flash focuses on expressive narration, Flash-Lite
on efficient generation. Provider selection is managed in admin settings, not
through an MCP parameter. ElevenLabs text-to-voice is temporarily disabled.
Styled text, captions and Google transcription
get_editor_text_styles returns 14 caption presets, 6 title presets, and a fontCatalog with 12 bundled fonts plus 4 legacy system aliases. Every caption preset reacts to genuine word timestamps. Use preset category and use to choose a treatment: word-pop (Creator punch), caption-marker (Lime marker), caption-underline, editorial (Podcast panel), caption-soft, caption-outline, or neon-pulse (Neon glow), plus other word motion styles. Titles have their own presets: title-clean, title-condensed, title-magazine, title-tech, title-sticker, and cinema-gold. New captions default to 100 px uppercase Montserrat with three words per phrase. Keep one coherent caption style and a complementary title style, strong contrast and safe margins. Existing saved timelines keep their settings until restyled. See the full typography catalogue.
Prefer bundled fontFamily IDs: inter, montserrat, manrope, oswald, rubik, roboto-condensed, unbounded, nunito, playfair-display, roboto-slab, jetbrains-mono, comfortaa. They support Latin and Ukrainian Cyrillic and load from V4V before rendering in preview and both export paths. fontCatalog.weights gives each family's supported range. Legacy sans, impact, serif, and mono depend on system fonts. Never ignore a font-loading error and claim the export succeeded.
Text clips accept strokeWidth (0–24 output pixels), strokeColor, color, fontFamily (catalogue ID), fontWeight (400/500/600/700/800/900, clamped to the font’s supported range), textBackground, backgroundColor, backgroundOpacity, accentColor, textAnimation, activeWordEffect (none, color, pop, shake, swing, spin, box, underline, glow), activeWordColor (marker foreground), letterSpacing (-0.06–0.2 em), lineHeight (0.9–1.8), textShadow, shadowColor, shadowBlur, shadowOffsetY, backgroundFit (box or text), backgroundRadius, textTransform (none, uppercase), fontSize, animationIntensity (0–1), audioReactive and optional audioSourceClipId. Animations are none, fade, slide, pop, float, shake, pulse, color-cycle, and karaoke. audioReactive: true uses actual audio volume, including trim, speed, fades, volume and muted/hidden tracks. It follows all audible sources unless a source clip ID is provided; it does not detect musical beats. Preview, seeking, local export and server export share this renderer.
Use edit_editor_project with { "type": "apply_text_style", "clipIds": ["caption-1", "caption-2"], "stylePreset": "creator-pop" } to style multiple captions. Fine-tune with update_clip. add_captions accepts stylePreset, maxWordsPerCaption (1–8, default 3), and cue words such as { "text": "Hello", "start": 1.2, "end": 1.6 }. Cue words use source seconds and sourceClipId aligns them to the source trim, speed and timeline position. On an individual text clip, wordTimings uses seconds relative to that clip. Spoken-word effects highlight and animate only the word spoken at that time; preserve genuine timestamps. Uppercase changes rendering without rewriting original text or timings. SRT provides cue timing only, so never invent word timing from it.
For transcription, call list_models with type: "subtitle", then get_model with model: "ai.gemini_3_5_transcribe". Quote with estimate_generation and submit the same request through generate_lab:
{
"model": "ai.gemini_3_5_transcribe",
"input": {
"audioUrl": {
"file_id": "OWNED_AUDIO_ID"
}
},
"parameters": {
"language_code": "auto",
"diarize": false
},
"idempotency_key": "transcribe-unique-request"
}Alternatively provide videoUrl with an owned video reference. Choose exactly one source, up to 15 minutes. The connected Google service account handles authentication. Do not supply provider credentials or routing parameters. Poll get_task for results with type: "subtitle"; retain its cues and word timings for editor captions. Google currently marks word timestamps experimental, so review transcript accuracy. The editor's quote/transcribe tools now use this model by default. Legacy ai.speech_to_text remains separate; administrators can hide it independently. Failed paid requests refund through the normal job lifecycle and must not be retried automatically as a new purchase.
Complete the editor caption workflow
Transcribing a file does not insert captions into an editor project. For an existing movie:
- Read
get_editor_projectand identify the source clip and itsassetId. - If you already have a successful
generate_lab/get_tasksubtitle result for this source, reuse itscuesand skip directly to insertion in step 4; there is no need for a videofile_idor a second transcription. Otherwise callquote_editor_captions, thentranscribe_editor_mediawith thatasset_id,language: "auto"(or a BCP-47 code) and a uniqueidempotency_key. Reuse that key after a network timeout. - Poll
get_editor_captionsat least five seconds apart. Onfailed, reporterrorand stop. A new paid attempt requires the user's request. - On
succeeded, require nonemptycues, fetch the latest project revision, and pass those exact cues toedit_editor_projectwithtype: "add_captions", the source clip'ssourceClipId,stylePreset: "word-pop", andmaxWordsPerCaption: 3(or another requested word preset). - Verify new text clips in the saved timeline and preview at an actual caption time. Check text accuracy. A source changed during transcription or a trim with no overlapping speech must be reported; do not claim insertion succeeded. Reuse completed cues to resolve edit conflicts without generating again.
Preserve all returned word timestamps, including equal start/end offsets for short words. Rename an overlay with update_clip / changes.name; change visible words with changes.text. Rename its layer with update_track / changes.name. Preserve IDs and respect locked layers.
Gemini transcription costs at least 1 credit per request, including short clips; quote the current duration-based price before generating. Subtitle JSON includes time_unit: "seconds", a flat words array and cues[].words, with each word’s text, start, end and optional speaker_id. Use these words for karaoke and other synchronized styling. SRT has line timing only. Lab can preview timed words and copy/download JSON or SRT. Video Editor accepts the JSON directly through Captions → Import SRT or JSON; choose one of the large spoken-word presets and use Clip properties → Words & timing to correct individual words without removing their timing. MCP corrections should pass both changes.text and the complete corrected changes.wordTimings; changing text alone clears stale timing.
To shorten an existing timed caption layer without another generation, use:
{
"project_id": "EDITOR_PROJECT_ID",
"revision": 3,
"operations": [
{
"type": "reflow_captions",
"trackId": "CAPTION_TRACK_ID",
"maxWordsPerCaption": 3
}
]
}Use the actual current revision and layer ID. This preserves genuine word timing, style and the layer, and returns the updated timeline with new clip IDs. Apply a shared word preset to those IDs with apply_text_style. In the browser, use Clip properties → Words & timing → Words per caption → Split this layer into short captions, then Text & appearance → style → Apply style to layer. SRT lines cannot be accurately split into timed words without transcription.
Audiobooks: assemble voices, set tags, export MP3 or MP4 with cover
MCP 1.15.0 adds the same Audio & audiobook workflow available in Video Editor. Read get_editor_guide for audiobookTimeline, or read the current project before editing. Set timeline.mode to audiobook for a timeline up to 7,200 seconds (two hours), 1,000 clips and 24 layers. Video mode keeps its ten-minute/500-clip limit.
- Find existing recordings through
list_editor_media/get_editor_media, or upload/import them. Generate new speech only when requested, using model discovery, a credit estimate, and the existing Gemini TTS tools. The editor assembles recordings; it does not guess the speaker for each line. - Add an audio layer for each narrator, dialogue, music or effects as needed. Use
append_editor_audiowith the orderedasset_ids,track_id, currentrevision, and optionalgap_seconds(0–60). It appends complete clips to that layer without frame-rounding gaps. It never sorts filenames or truncates the last part to fit. For overlaps or custom timing use the existing clip operations. Trims, speed, volume, fades, mute and hidden layers affect the mix; changing speed changes pitch. - Save tags, bitrate and cover through
edit_editor_project, for example:
{
"project_id": "<project ID>",
"revision": 3,
"operations": [
{
"type": "set_audio_settings",
"mode": "audiobook",
"settings": {
"metadata": {
"title": "Розділ перший",
"artist": "Олена та Андрій",
"album": "Книга пригод",
"albumArtist": "Назва видавництва",
"composer": "Ім’я автора",
"year": "2026",
"track": "1/12",
"genre": "Audiobook",
"comment": "",
"copyright": ""
},
"coverAssetId": "<accessible image asset ID>",
"bitrateKbps": 128
}
}
]
}settings replaces the saved audio settings: preserve fields the user has not asked to change. All tags are strings. artist records narrators/performers, composer can record the author, album identifies the book, year is four digits, and track is a number or number/total. Do not invent credits or copyright. Empty title falls back to the project title. MP3 contains ID3v2.3 Unicode tags and, if selected, a front-cover APIC image. The image is embedded in the file, rather than referenced by URL. MP3 permits no cover; MP4 with cover requires one. Bitrates are 96, 128 (default), 192, 256 or 320 kbps.
- Submit
export_editor_projectwith the saved revision andformat: "mp3"orformat: "mp4-cover". Request both when both files are wanted. Each project/revision/format has its own persistent job, so one format never substitutes for another. Pollget_editor_exportat least five seconds apart untilcompletedorfailed. Stages include loading media, mixing audio with progress, encoding, and saving. A disconnected client does not cancel the job; repeated submission recovers it. Failed jobs require an explicitretry_failed: true. - Confirm
status: "completed",assetId, and the signed download/playback links. Check the final mix, duration, requested tags and image before reporting completion. MP3 is saved as an audio Library asset; MP4 with cover is a video asset. Frame inspection alone cannot verify audio or metadata. The public video-sharing tool is not for MP3 files; private project collaboration remains available.
The mp4-cover format displays one fitted cover over the project's background for the entire audio duration. Timeline visual clips, text and captions are excluded from this format. To render those, use the existing format: "webm" MCP export (default, up to two minutes) or browser MP4/WebM export (up to ten minutes).
Audio exports are owner-only, cost no generation credits, and require the persistent editor worker plus FFmpeg/ffprobe with libmp3lame and libx264. Chromium is unnecessary for these two formats. Limits: 1 GB of source files, 300 MB per exported file, 64 audio clip segments per 30-second mixing window. Use a lower bitrate or split a larger book into parts. Settings and cover references persist in the timeline, are revision-checked, and follow the project's media permissions after sharing or ownership transfer. This release does not add chapter markers, voice cloning, or automatic speaker assignment.
Shared style gallery and packs
/video-editor/gallery and the Design panel show the same 30 original native style packs as the local Kit. Each contains five editable scenes, a 12-second silent preview, original labelled illustration, prompt, rubric and hash manifest. This is a reusable scene-family demonstration, not a factual product campaign. Preview paths from get_creative_item are relative to /api/video-editor/creative-assets/; they contain only bundled original material, never account media.
create_style_example imports the real source image into the signed-in owner's Library and remaps the timeline's media ID. It uses v4v:write, without generation credits. apply_style(dry_run=true) also requires edit access and the current revision, reports changed/locked/unsupported clips, and makes no write. Apply with the same parameters and revision after reviewing the plan. Selected-scene scope changes the incoming transition of those scenes; clip times and audio stay fixed.
Обмежений бюджет генерацій Open Video Kit
create_generation_budget створює незмінну спільну стелю без списання; get_generation_budget читає actual spend та reservations, close_generation_budget остаточно закриває нові допуски. Для підтримуваного медіа estimate_generation повертає підписаний quote_token на п'ять хвилин. Передайте budget_id, max_credits і quote_token разом у чинний generate_lab / generate_studio; idempotency_key обов'язковий. Точний повтор прийнятого запиту не запускає другу генерацію. Паралельні резерви враховуються на сервері; token-priced chat виключено з цього шляху. Бюджет не є самостійним дозволом від користувача витрачати кошти. Детальний контракт і перевірки: Cloud Kit.
Private reference styles (Open Video Kit 0.1.24)
get_reference_guide / v4v://reference-style documents the shared workflow. analyze_reference_style accepts a stable reference_id, an owned Library asset (source: { type: "asset", assetId }) or explicit public video|image|page URL. It returns measured palettes, tentative boundaries/rhythm and actual frame times; get_reference_frame returns PNG content. Inspect all recorded frames before review_reference_style, which requires original typography/layout/motion/transition/rhythm rules, full tokens, reviewer limitations and time/SHA-256 citations. get_reference_profile returns private portable JSON. apply_reference_style defaults to dry run; committing requires the current revision of an owned project, including revision zero. Reference footage is never embedded into the montage or ZIP.
Read tools require v4v:read; analysis/review/application require v4v:read and v4v:write. They neither require v4v:generate nor spend generation credits. V4V reference/factory evidence files are encrypted with per-object keys retained only in owner-scoped database manifests, and private files are blocked from generic asset delivery. Original reference Library ownership is checked on access. See Ukrainian implementation and limits.
Geometric clip masks and layered parallax
Kit 0.1.32 adds clipMasks and layeredParallax capability flags. Search kind=effect for mask-circle, mask-ellipse, or mask-rounded-rect, then read get_creative_item for the actual schema and limits. Apply set_mask through edit_editor_project at the saved revision with write access; mask:null clears it. The mask's x/y/width/height are clip-relative fractions and its bounds must remain inside the clip box. It follows rotation/scale/keyframes, clips after effects and before transitions, and does not change audio. Locked layers and audio-only targets reject the operation.
get_motion_guide.schemas.mask and recipes.parallax are shared with local Studio. The latter provides editable two-layer motion using ordinary position keyframes. Preview actual frames; this is not automatic depth estimation. The shared GUI controls live in Design → Effects. ZIP preserves masks; text inspection returns TEXT_MASK_REVIEW because bounds checks cannot guarantee readability inside a curved mask. See the shared bilingual contract.
Creative collections and agent planning
Design → Libraries provides 28 editable native compositions, including collage, continuous camera movement, spring panels, painted characters, captions, product walkthroughs and launch sequences. Kit 0.3.7 also includes ten original styles, five raster effects and fifteen transitions. The thirteen shader transitions require WebGL and output up to 4096 pixels per side.
Use get_reviewed_library_guide (resource v4v://reviewed-libraries) for exact schemas, source licenses and limits. search_library_references and get_library_reference expose 456 reference metadata entries; these are not installed executable templates. plan_library_scene is read-only and returns operations for edit_editor_project at the current revision. Use owned Library media or registered local project media; original local bytes remain on the user's device. Inspect actual rendered frames after editing.
Plan with AI saves the project and prepares an editable Video Factory request. It does not submit a command, spend credits, upload originals or authorize generation. The agent clarifies consequential missing creative choices before editing. Native rendering needs no generation service; optional paid actions retain existing quotes and explicit approval. No upstream installer, arbitrary HTML/JavaScript, executable music or local-history reader is enabled. Source/license review and original equivalents ship in the versioned Kit documentation.
Montage quality and evidence
Read get_montage_quality_guide / v4v://montage-quality for shared taste rules and honest evidence limits. plan_montage_beats derives frame-aligned visual cuts from real word timings; plan_compact_captions groups 1–3 words without inventing timestamps. analyze_ui_regions measures owned screenshot boundaries; rectify_ui_region creates a separate perspective-corrected image from a returned fingerprint/region ID. detect_media_scenes measures visual cuts in a source window up to 600 seconds. These operations preserve the source and do not generate paid media.
compare_narration_transcript requires a completed owned transcription run_id of the exact audio_asset_id; it compares the actual transcript against script and optional confirmed names. ASR text does not establish pronunciation stress or natural delivery. Buy transcription or a retake only through the usual quoted authorization flow.
preview_editor_project accepts up to 12 actual frame times; contact_sheet: true returns one image for review. Factory browser mode performs inspection/rectification on the user's device and keeps originals local. External MCP callers using a browser-only original receive BROWSER_REQUIRED; use the open Factory agent for those browser operations. New Factory commands record separate content/finish review answers for eight explicit evidence questions. Unknown evidence is not a passing review.
Failed get_task results include error.provider_error, the sanitized model
service reason, and error.provider: "managed". Known failures include a hint
and retryable; transient rate limits/timeouts also give
retry_after_seconds: 60. Read the reason before changing the request or asking
for another paid attempt. Unknown errors preserve their sanitized reason without
assuming that a retry will work. REST task responses and signed task.failed
callbacks use the same fields; see failed generation diagnostics.