UGC Reactions
Make images and videos with one tool per task, named like the endpoints: text_to_image, reference_to_image, image_edit, clone_image, text_to_video, image_to_video, reference_to_video, motion_to_video and audio_to_video. Source preparation and reusable assets are composable tools.
text_to_image
WRITEREST: POST /api/v2/generate/image/text_to_image
Make one image from the prompt alone. text_to_image takes no references. prompt is required; the server never writes it for you. settings: quality, resolution, aspectRatio; each model lists its own values in list_image_models, and a setting left out takes the model’s default. No preset: this task adds no server text, and systemPrompt is refused; put all your text in prompt. model is required (there is no default): one whose list_image_models entry lists text_to_image; use the one marked recommended unless the user asks for another. Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_image_results; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link. Pass each generationId with status generating; the view waits for it. Without App tools, wait with get_generation and waitMs.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"quality": {
"description": "Only on models with a quality setting; left out, medium.",
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"standard",
"1080p"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_image_aa11bb22",
"kind": "reaction_frame",
"state": "queued",
"input": {
"task": "text_to_image",
"model": "nano_banana_pro",
"prompt": "flat lay of skincare bottles on marble",
"settings": {
"resolution": "standard",
"aspectRatio": "9:16"
},
"references": []
},
"outputs": [],
"creditsSpent": 1,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "text_to_image"
},
"prompt": {
"inspectWith": "get_generation_prompt"
},
"nextSteps": "Wait with get_generation using generation.id and waitMs: 25000. On success, generation.outputs[0].id is the image ID for editing or video generation."
}
}reference_to_image
WRITEREST: POST /api/v2/generate/image/reference_to_image
Make one image that looks at its references. reference_to_image takes images to look at, in the order sent; image N in your prompt is reference N. Each model lists its limits in list_image_models. prompt is required; the server never writes it for you. settings: quality, resolution, aspectRatio; each model lists its own values in list_image_models, and a setting left out takes the model’s default. No preset: this task adds no server text, and systemPrompt is refused; put all your text in prompt. model is required (there is no default): one whose list_image_models entry lists reference_to_image; use the one marked recommended unless the user asks for another. Each reference is { type, id }; an id is never a URL (upload the file first) or a generation id. image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images). Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_image_results; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link. Pass each generationId with status generating; the view waits for it. Without App tools, wait with get_generation and waitMs.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"quality": {
"description": "Only on models with a quality setting; left out, medium.",
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"standard",
"1080p"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_image_aa11bb22",
"kind": "reaction_frame",
"state": "queued",
"input": {
"task": "reference_to_image",
"model": "gpt_image_2_5_flare",
"prompt": "she sips the drink on a sunny balcony",
"settings": {
"quality": "high",
"resolution": "standard",
"aspectRatio": "9:16"
},
"references": [
{
"type": "avatar",
"id": "avatar_456"
},
{
"type": "product",
"id": "product_image_789"
}
]
},
"outputs": [],
"creditsSpent": 1,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "reference_to_image"
},
"prompt": {
"inspectWith": "get_generation_prompt"
},
"nextSteps": "Wait with get_generation using generation.id and waitMs: 25000. On success, generation.outputs[0].id is the image ID for editing or video generation."
}
}image_edit
WRITEREST: POST /api/v2/generate/image/image_edit
Change one existing image into a new one; the original is kept. image_edit takes the image to change first (IMAGE 1, an image or an image upload; it stays the base), then optional people, products or looks to bring into it; the prompt says what to take from each. Each model lists its limits in list_image_models. prompt is required; the server never writes it for you. settings: quality, resolution, aspectRatio; each model lists its own values in list_image_models, and a setting left out takes the model’s default. Preset image_edit on the models whose list_image_models entry names it (preset: null there means none, and systemPrompt is refused): leave systemPrompt out to use it, send text to replace it, or null for no preset. Read its text with get_preset. The preset only keeps what you do not ask to change, so prompt is required and is the edit itself. View the image first with analyze_image, then write just the change against what is in it, for example "replace her grey tank top with a red hoodie"; do not describe the rest of the image. If the change is something the preset rules out, send an edited copy of the preset (get_preset) as systemPrompt. model is required (there is no default): one whose list_image_models entry lists image_edit; use the one marked recommended unless the user asks for another. Each reference is { type, id }; an id is never a URL (upload the file first) or a generation id. image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images). Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_image_results; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link. Pass each generationId with status generating; the view waits for it. Without App tools, wait with get_generation and waitMs.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"quality": {
"description": "Only on models with a quality setting; left out, medium.",
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"standard",
"1080p"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_image_aa11bb22",
"kind": "reaction_frame",
"state": "queued",
"input": {
"task": "image_edit",
"model": "nano_banana_pro",
"prompt": "make the shirt red",
"settings": {
"resolution": "standard"
},
"references": [
{
"type": "image",
"id": "frame_123"
}
]
},
"outputs": [],
"creditsSpent": 1,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "image_edit"
},
"prompt": {
"inspectWith": "get_generation_prompt",
"presetId": "image_edit",
"overrideWith": "systemPrompt"
},
"nextSteps": "Wait with get_generation using generation.id and waitMs: 25000. On success, generation.outputs[0].id is the image ID for editing or video generation."
}
}clone_image
WRITEREST: POST /api/v2/generate/image/clone_image
Recreate a Template’s or image’s composition with an avatar. For a moment of an uploaded video, get its frame with get_video_frame and send that image. clone_image takes the Template (optionally with at) or image to copy first, then exactly 1 avatar, then an optional product third, then others. Each model lists its limits in list_image_models. prompt is your own text; a model whose list_image_models entry says promptRequired: true for clone_image needs one. The server never writes it for you. settings: quality, resolution, aspectRatio; each model lists its own values in list_image_models, and a setting left out takes the model’s default. Preset clone_image / clone_image_with_product on the models whose list_image_models entry names it (preset: null there means none, and systemPrompt is refused): leave systemPrompt out to use it, send text to replace it, or null for no preset. Read its text with get_preset. The preset already copies the source's pose, expression, framing, scene and lighting with the avatar's identity. For a plain copy, send no prompt, and never describe what is already in the image. Only when the user asks for a change (clothes, background, a product), first view the exact frame being copied (get_video_frame at the moment being copied, or the Template's first frame when there is no at, then analyze_image), then write just that change against what is in the frame, for example "replace her grey tank top with a red hoodie". If the change is something the preset rules out, send an edited copy of the preset (get_preset) as systemPrompt. model is required (there is no default): one whose list_image_models entry lists clone_image; use the one marked recommended unless the user asks for another. Each reference is { type, id }; an id is never a URL (upload the file first) or a generation id. image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation). Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_image_results; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link. Pass each generationId with status generating; the view waits for it. Without App tools, wait with get_generation and waitMs.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"quality": {
"description": "Only on models with a quality setting; left out, medium.",
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"standard",
"1080p"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_image_aa11bb22",
"kind": "reaction_frame",
"state": "queued",
"input": {
"task": "clone_image",
"model": "nano_banana_pro",
"settings": {
"resolution": "standard"
},
"references": [
{
"type": "template",
"id": "template_123",
"at": 3.2
},
{
"type": "avatar",
"id": "avatar_456"
},
{
"type": "product",
"id": "product_image_789"
}
]
},
"outputs": [],
"creditsSpent": 1,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "clone_image"
},
"prompt": {
"inspectWith": "get_generation_prompt",
"presetId": "clone_image_with_product",
"overrideWith": "systemPrompt"
},
"nextSteps": "Wait with get_generation using generation.id and waitMs: 25000. On success, generation.outputs[0].id is the image ID for editing or video generation."
}
}text_to_video
WRITEREST: POST /api/v2/generate/video/text_to_video
Make one video from the prompt alone. text_to_video takes no references. prompt is required; the server never writes it for you. settings: resolution, duration, audio, mode, aspectRatio; each model lists its own values in list_video_models, and a setting left out takes the model’s default. No preset: this task adds no server text, and systemPrompt is refused; put all your text in prompt. model is required (there is no default): one whose list_video_models entry lists text_to_video; use the one marked recommended unless the user asks for another. Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_video_result; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"480p",
"720p",
"768p",
"1080p",
"2k"
]
},
"duration": {
"description": "Length in whole seconds. Each model lists the lengths it offers; left out, its default.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"audio": {
"description": "Sound on or off. Only on models that make sound; left out, the model default.",
"type": "boolean"
},
"mode": {
"description": "cost (slower, cheapest), speed (fast) or quality (best, dearest). Only on models with a mode setting; each model and task lists the modes it offers; left out, its default.",
"type": "string",
"enum": [
"cost",
"speed",
"quality"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_video_123",
"kind": "reaction_video",
"state": "queued",
"input": {
"task": "text_to_video",
"model": "seedance_2_0",
"prompt": "a woman unboxing headphones in her kitchen",
"settings": {
"resolution": "720p",
"duration": 8,
"audio": true
},
"references": []
},
"outputs": [],
"creditsSpent": 8,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "text_to_video"
},
"prompt": {
"inspectWith": "get_generation_prompt"
},
"nextSteps": "In an MCP Apps host, show it now with render_video_result (generation.id as generationId, status generating). Without App tools, wait with get_generation using generation.id and waitMs: 25000."
}
}image_to_video
WRITEREST: POST /api/v2/generate/video/image_to_video
Make one video that starts on one image, its first frame, and on some models ends on a second image, its last frame. image_to_video takes 1 image to start on (image, avatar, product or an image upload). On a model whose list_video_models entry says endFrame: true for image_to_video, a second image is the video's last frame, so the clip ends exactly on that picture. prompt is your own text; a model whose list_video_models entry says promptRequired: true for image_to_video needs one. The server never writes it for you. To describe a source, read get_video_template or analyze_video and write it yourself. settings: resolution, duration, audio, mode, aspectRatio; each model lists its own values in list_video_models, and a setting left out takes the model’s default. No preset: this task adds no server text, and systemPrompt is refused; put all your text in prompt. model is required (there is no default): one whose list_video_models entry lists image_to_video; use the one marked recommended unless the user asks for another. Each reference is { type, id }; an id is never a URL (upload the file first) or a generation id. image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images). Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_video_result; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"480p",
"720p",
"768p",
"1080p",
"2k"
]
},
"duration": {
"description": "Length in whole seconds. Each model lists the lengths it offers; left out, its default.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"audio": {
"description": "Sound on or off. Only on models that make sound; left out, the model default.",
"type": "boolean"
},
"mode": {
"description": "cost (slower, cheapest), speed (fast) or quality (best, dearest). Only on models with a mode setting; each model and task lists the modes it offers; left out, its default.",
"type": "string",
"enum": [
"cost",
"speed",
"quality"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_video_123",
"kind": "reaction_video",
"state": "queued",
"input": {
"task": "image_to_video",
"model": "kling_2_5_turbo",
"prompt": "she smiles and waves",
"settings": {
"resolution": "720p",
"duration": 5
},
"references": [
{
"type": "image",
"id": "frame_123"
}
]
},
"outputs": [],
"creditsSpent": 8,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "image_to_video"
},
"prompt": {
"inspectWith": "get_generation_prompt"
},
"nextSteps": "In an MCP Apps host, show it now with render_video_result (generation.id as generationId, status generating). Without App tools, wait with get_generation using generation.id and waitMs: 25000."
}
}reference_to_video
WRITEREST: POST /api/v2/generate/video/reference_to_video
Make one video from its references. The prompt says how to use each one: who appears, what to copy, or which image opens the video. How to say it depends on the model. reference_to_video takes its references in the order sent. On a model whose list_video_models entry says frames: true for reference_to_video, frame: "first" on one image opens the video exactly on it and frame: "last" on one image ends it there, while the other references still guide the video. A frame is not counted when the prompt numbers the images; at least one image or video must have no frame (for frames alone, call image_to_video). Each model lists its limits in list_video_models. prompt is your own text; a model whose list_video_models entry says promptRequired: true for reference_to_video needs one. The server never writes it for you. To describe a source, read get_video_template or analyze_video and write it yourself. settings: resolution, duration, audio, mode, aspectRatio; each model lists its own values in list_video_models, and a setting left out takes the model’s default. No preset: this task adds no server text, and systemPrompt is refused; put all your text in prompt. model is required (there is no default): one whose list_video_models entry lists reference_to_video; use the one marked recommended unless the user asks for another. Each reference is { type, id }; an id is never a URL (upload the file first) or a generation id. image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation). Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_video_result; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"480p",
"720p",
"768p",
"1080p",
"2k"
]
},
"duration": {
"description": "Length in whole seconds. Each model lists the lengths it offers; left out, its default.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"audio": {
"description": "Sound on or off. Only on models that make sound; left out, the model default.",
"type": "boolean"
},
"mode": {
"description": "cost (slower, cheapest), speed (fast) or quality (best, dearest). Only on models with a mode setting; each model and task lists the modes it offers; left out, its default.",
"type": "string",
"enum": [
"cost",
"speed",
"quality"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_video_123",
"kind": "reaction_video",
"state": "queued",
"input": {
"task": "reference_to_video",
"model": "seedance_2_0",
"prompt": "she holds the bottle up to the camera",
"settings": {
"resolution": "720p",
"duration": 8,
"audio": true
},
"references": [
{
"type": "image",
"id": "frame_123"
},
{
"type": "avatar",
"id": "avatar_456"
},
{
"type": "product",
"id": "product_image_789"
}
]
},
"outputs": [],
"creditsSpent": 8,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "reference_to_video"
},
"prompt": {
"inspectWith": "get_generation_prompt"
},
"nextSteps": "In an MCP Apps host, show it now with render_video_result (generation.id as generationId, status generating). Without App tools, wait with get_generation using generation.id and waitMs: 25000."
}
}motion_to_video
WRITEREST: POST /api/v2/generate/video/motion_to_video
Make one video where the image moves exactly like the video. motion_to_video takes 1 image (image, avatar, product or an image upload) and 1 video to copy the motion from (video, template or a video upload), in any order. prompt is your own text; a model whose list_video_models entry says promptRequired: true for motion_to_video needs one. The server never writes it for you. settings: resolution, aspectRatio; each model lists its own values in list_video_models, and a setting left out takes the model’s default. The length and sound come from the source, so there is no duration or audio setting. Preset wan_3_motion on the models whose list_video_models entry names it (preset: null there means none, and systemPrompt is refused): leave systemPrompt out to use it, send text to replace it, or null for no preset. Read its text with get_preset. The image decides who appears, what they wear and the scene; the source video gives only the motion. For a plain copy, send no prompt. To change the look (clothes, background, a product), change the image first (image_edit) and send that image; use prompt only for a change to the action, in one short phrase. If the change is something the preset rules out, send an edited copy of the preset (get_preset) as systemPrompt. model is required (there is no default): one whose list_video_models entry lists motion_to_video; use the one marked recommended unless the user asks for another. Each reference is { type, id }; an id is never a URL (upload the file first) or a generation id. image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation). Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_video_result; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"480p",
"720p",
"768p",
"1080p",
"2k"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_video_123",
"kind": "reaction_video",
"state": "queued",
"input": {
"task": "motion_to_video",
"model": "wan_3",
"settings": {
"resolution": "720p"
},
"references": [
{
"type": "image",
"id": "frame_123"
},
{
"type": "template",
"id": "template_123"
}
]
},
"outputs": [],
"creditsSpent": 8,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "motion_to_video"
},
"prompt": {
"inspectWith": "get_generation_prompt",
"presetId": "wan_3_motion",
"overrideWith": "systemPrompt"
},
"nextSteps": "In an MCP Apps host, show it now with render_video_result (generation.id as generationId, status generating). Without App tools, wait with get_generation using generation.id and waitMs: 25000."
}
}audio_to_video
WRITEREST: POST /api/v2/generate/video/audio_to_video
Make one video where the image moves and lip-syncs to the voice. audio_to_video takes 1 image (image, avatar, product or an image upload) and 1 voice: audio or an audio upload, or a video, template or video upload whose sound is used, in any order. prompt is your own text; a model whose list_video_models entry says promptRequired: true for audio_to_video needs one. The server never writes it for you. settings: resolution, aspectRatio; each model lists its own values in list_video_models, and a setting left out takes the model’s default. The length and sound come from the source, so there is no duration or audio setting. Preset wan_3_audio on the models whose list_video_models entry names it (preset: null there means none, and systemPrompt is refused): leave systemPrompt out to use it, send text to replace it, or null for no preset. Read its text with get_preset. The image decides who appears, what they wear and the scene; the audio gives only the voice and timing. For a plain copy, send no prompt. To change the look, change the image first (image_edit) and send that image; use prompt only for a change to the performance, in one short phrase. If the change is something the preset rules out, send an edited copy of the preset (get_preset) as systemPrompt. model is required (there is no default): one whose list_video_models entry lists audio_to_video; use the one marked recommended unless the user asks for another. Each reference is { type, id }; an id is never a URL (upload the file first) or a generation id. image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation). Anything not listed, and any old field, is refused with the field to send instead. Reuse idempotencyKey to retry the same call without paying twice. Pass a short title to name its card. To SHOW these results in an MCP Apps host, ALWAYS call render_video_result; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Required. The model id; it must offer this task. There is no default model."
},
"prompt": {
"description": "Your own text: what to make or change (on text_to_music, the style). The server never writes prompt text for you. Required on text tasks, image_edit and models that need one; text_to_speech takes none.",
"type": "string",
"maxLength": 30000
},
"systemPrompt": {
"description": "The task's preset. Leave it out to use the preset (get_preset shows its text), send text to replace it, or null to send none. Refused where the task and model have no preset: put your text in prompt.",
"anyOf": [
{
"type": "string",
"maxLength": 30000
},
{
"type": "null"
}
]
},
"references": {
"default": [],
"description": "In the order the model should see them; each task says which types go where. Leave it out when the task takes none.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"video",
"upload",
"avatar",
"product",
"template",
"audio"
],
"description": "What the id points at."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^\\s/:]+$",
"description": "The id for its type: image: a frame id (frameId from list_images, or outputs[].id of a reaction_frame generation; not an avatar_image output); video: a video id (videoId from list_videos, or outputs[].id of a reaction_video generation); upload: an upload mediaId (from complete_media_upload); avatar: an avatar id (avatarId from list_avatars); product: a product image id (id from list_product_images); template: a Template id (id from list_video_templates, or outputs[].id of a reaction_import, reaction_crop or reaction_smart_crop generation); audio: a song version or voiceover take id (outputs[].id of a music or voiceover generation)."
},
"at": {
"description": "Seconds into the Template. Only on clone_image's first reference, when it is a template.",
"type": "number",
"minimum": 0
},
"frame": {
"description": "Only on reference_to_video, on an image, where the model's list_video_models entry says frames: true: \"first\" opens the video exactly on this image, \"last\" ends it on this image. The other references still guide the video.",
"type": "string",
"enum": [
"first",
"last"
]
}
},
"required": [
"type",
"id"
],
"additionalProperties": false
}
},
"title": {
"description": "Short name for the card; get_generation returns it as title. Required on audio tasks (80 characters at most), where it is also the song's title.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"idempotencyKey": {
"description": "Resending the same call with this key returns the same job and never charges twice.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"settings": {
"description": "Only the settings this task and model have; anything else is refused. Leave one out for its default.",
"type": "object",
"properties": {
"resolution": {
"description": "Output resolution. Each model lists the ones it offers; left out, its default.",
"type": "string",
"enum": [
"480p",
"720p",
"768p",
"1080p",
"2k"
]
},
"aspectRatio": {
"description": "\"original\" keeps the first image's shape. Each model and task lists the ratios it takes. Left out: original when an image is sent and the task keeps its shape, otherwise 9:16.",
"type": "string",
"enum": [
"original",
"9:16",
"16:9",
"1:1"
]
}
},
"additionalProperties": false
},
"workspace": {
"type": "string",
"minLength": 1,
"description": "The workspace slug, name or id to make it in. MCP only."
}
},
"required": [
"model",
"workspace"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_video_123",
"kind": "reaction_video",
"state": "queued",
"input": {
"task": "audio_to_video",
"model": "wan_3",
"settings": {
"resolution": "720p"
},
"references": [
{
"type": "image",
"id": "frame_123"
},
{
"type": "upload",
"id": "audio_upload_123"
}
]
},
"outputs": [],
"creditsSpent": 8,
"createdAt": "2026-11-01T12:00:00.000Z",
"updatedAt": "2026-11-01T12:00:00.000Z",
"task": "audio_to_video"
},
"prompt": {
"inspectWith": "get_generation_prompt",
"presetId": "wan_3_audio",
"overrideWith": "systemPrompt"
},
"nextSteps": "In an MCP Apps host, show it now with render_video_result (generation.id as generationId, status generating). Without App tools, wait with get_generation using generation.id and waitMs: 25000."
}
}request_media_upload
WRITEREST: POST /api/v2/media/uploads
Request an original image/video/audio upload URL. PUT bytes, then call complete_media_upload before using the media. No generation starts. Without a shell, open render_upload instead: the user picks the file and you get its mediaId and stored url.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"uploadId": {
"description": "Optional stable request ID. Repeat it with identical metadata when retrying.",
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,64}$"
},
"contentType": {
"type": "string",
"enum": [
"image/jpeg",
"image/png",
"image/webp",
"video/mp4",
"video/webm",
"video/quicktime",
"audio/mpeg",
"audio/mp4",
"audio/x-m4a",
"audio/wav",
"audio/x-wav",
"audio/ogg",
"audio/webm",
"audio/aac"
]
},
"byteLength": {
"type": "integer",
"minimum": 1,
"maximum": 209715200
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"required": [
"workspace",
"contentType",
"byteLength",
"filename"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"uploadId": "upload-example",
"uploadUrl": "https://upload.example.com/signed",
"completed": false,
"contentType": "image/png",
"expiresInSeconds": 900,
"maxBytes": 10485760
}
}complete_media_upload
WRITEREST: POST /api/v2/media/uploads/complete
Validate and save original media; return mediaId for generation references. Retrying the same upload is safe.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"uploadId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,64}$"
}
},
"required": [
"workspace",
"uploadId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"media": {
"mediaId": "upload-example",
"uploadId": "upload-example",
"mediaKind": "image",
"url": "https://media.example.com/original.png"
}
}
}get_video_frame
WRITEREST: POST /api/v2/media/source-frame
Extract and save a frame at a timestamp from an accessible source template, uploaded video or generated video. Use it to inspect sections or choose the exact image to recreate, or take a generated clip's last frame (lastFrame: true) to start the next clip exactly where it ended. Send the returned frameId as { type: "image", id } to clone_image, image_edit or a video task. For a Template, clone_image can also take the moment directly: { type: "template", id, at: seconds }.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"source": {
"anyOf": [
{
"type": "object",
"properties": {
"templateId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"templateId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mediaId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"mediaId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"videoId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"videoId"
],
"additionalProperties": false
}
],
"description": "Exactly one ready accessible templateId, completed uploaded video mediaId, or finished generated videoId (from list_videos or a video generation). Audio and image uploads cannot supply a video frame."
},
"timestampSeconds": {
"description": "Source timestamp in seconds, to millisecond precision; must be before the end. Required unless lastFrame is true.",
"type": "number",
"minimum": 0,
"maximum": 3600,
"multipleOf": 0.001
},
"lastFrame": {
"description": "true takes the video's very last frame instead of a timestamp, so the next clip can start exactly where this one ended. Send it without timestampSeconds.",
"type": "boolean",
"const": true
}
},
"required": [
"workspace",
"source"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"frameId": "source-example",
"imageUrl": "https://media.example.com/frame.png",
"templateId": "template-example",
"timestampSeconds": 1,
"sourceKind": "template"
}
}list_video_templates
READREST: GET /api/v2/reaction-templates
Browse source templates when the request needs an existing composition or motion reference: platform stock plus workspace imports/uploads. Custom image and prompt-directed video creation do not require a template search. Analyzed clips carry firstFrameScene and videoUnderstanding; older clips may expose opensOn and motion summaries. Send a template as { type: "template", id } to clone_image (to recreate its composition, optionally at a moment), motion_to_video (its motion) or audio_to_video (its voice). The server never writes the action from a source: read videoUnderstanding, or analyze_video, and write the prompt yourself.
{
"type": "object",
"properties": {
"workspace": {
"description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
"type": "string"
},
"mine": {
"type": "boolean"
},
"includeUnusable": {
"description": "Include templates that cannot be generated from yet: ones still importing, ones that failed. Off by default, because generating from them is refused anyway.",
"type": "boolean"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"limit": {
"description": "Per page (max 25; lower than other tools because these rows carry long descriptions). Each tool documents its own default.",
"type": "integer",
"minimum": 1,
"maximum": 25
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"templates": [
{
"id": "user-1a2b3c4d-1737100000000",
"name": "Excited point",
"category": "Reactions",
"durationSeconds": 4.2,
"thumbnailUrl": "https://cdn.ghostfeed.ai/reactions/user-1a2b3c4d/thumbnail.jpg",
"kind": "owned",
"status": "completed",
"mention": "@template:Excited point (user-1a2b3c4d-1737100000000)",
"opensOn": "Medium shot of a woman at a desk, looking just off camera, hands raised mid-gesture.",
"motion": "She points at the camera, leans in, and breaks into a grin."
}
],
"total": 1,
"page": 1,
"pages": 1,
"nextSteps": "Use a template with clone_image, analyze_video, or either video generation intent when a source is needed. Custom generation does not require a source search."
}
}get_video_template
READREST: GET /api/v2/reaction-templates/:id
Read one source template by its templateId (or a generated video’s sourceTemplateId). Right after an import, pass waitMs 25000: it returns as soon as the import is finished; call again if it is still importing. Returns source media, import metadata, full opening-composition and legacy motion analysis when available, plus the canonical saved videoUnderstanding result. New uploads and social imports finish understanding before becoming ready; saved inspiration imports reuse its analysis. New crops are exact assets with their own understanding. Completed v8 understanding includes a provider-authored generationPrompt for generation as well as factual source evidence. Reading does not start a new analysis. Use analyze_video understanding only when the saved result is missing or failed and the user wants a retry. In an MCP Apps host, show a ready video template with render_video_result and template.templateId; it plays the clip with its saved sections.
{
"type": "object",
"properties": {
"workspace": {
"description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
"type": "string"
},
"templateId": {
"type": "string",
"minLength": 1,
"description": "The template id from list_video_templates or sourceTemplateId from a video."
},
"waitMs": {
"description": "Wait server-side up to this many milliseconds (max 25000) and return as soon as the import is finished. Omit to read the current state immediately.",
"type": "integer",
"minimum": 0,
"maximum": 25000
}
},
"required": [
"templateId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"template": {
"templateId": "reaction-7ab2",
"name": "Excited point source",
"category": "reaction",
"kind": "owned",
"status": "completed",
"opensOn": "Waist-up, phone held at arm’s length in a bright kitchen. She looks straight down the lens, both hands empty, warm window light from the left.",
"source": {
"videoUrl": "https://cdn.ghostfeed.ai/reactions/excited-point.mp4",
"thumbnailUrl": "https://cdn.ghostfeed.ai/reactions/excited-point-first-frame.jpg",
"durationSeconds": 7,
"aspectRatio": "9:16",
"importSource": "tiktok",
"originalUrl": "https://www.tiktok.com/@creator/video/123"
},
"videoUnderstanding": {
"analysisId": "source-understanding-example",
"status": "complete",
"schemaVersion": 1,
"analysisVersion": "7",
"source": {
"videoUrl": "https://cdn.ghostfeed.ai/reactions/excited-point.mp4",
"durationSeconds": 7
},
"sectionTiming": "approximate",
"model": "gemini-3.8-flash",
"promptHash": "sha256-of-reviewed-understanding-prompt",
"creditsSpent": 0,
"understanding": {
"description": "A person points with a surprised expression, then smiles at the camera.",
"demoType": "none",
"visualFormat": "live_action",
"contentStructure": "short_reaction_only",
"editingComplexity": {
"level": "light",
"explanation": "A continuous shot with captions."
},
"sections": [
{
"startSeconds": 0,
"endSeconds": 7,
"description": "The person points, reacts with surprise, then smiles."
}
],
"transcript": []
},
"warnings": [],
"generatedAt": "2026-09-16T12:00:00.000Z"
},
"motionAnalysis": {
"status": "complete",
"prompt": "Timed section\\n0-7s: She points, then smiles.\\n\\nWhole-video description\\nAn upbeat point and smile.",
"timeline": "0-7s: She points, then smiles.",
"model": "gemini-3.1-flash-lite",
"generatedAt": "2026-07-20T02:00:00.000Z"
}
},
"nextSteps": "Ready. Send templateId as { type: \"template\", id } to clone_image, motion_to_video or audio_to_video, or read it with analyze_video."
}
}list_images
READREST: GET /api/v2/reaction-frames
List reusable image frames on the workspace board, newest first, including dashboard results. Filter by avatar or template when relevant. Each row carries its image, lineage, generation metadata, preferenceStatus, videoStage, and animationStatus. A completed frame remains reusable. Send a frame as { type: "image", id: frameId } in references: to image_to_video as the first frame, to reference_to_video, motion_to_video or audio_to_video, to image_edit to change it, or to clone_image to copy it. Follow the user’s review preferences when choosing an existing take. To SHOW these results in an MCP Apps host, ALWAYS call render_generation_gallery; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"workspace": {
"description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
"type": "string"
},
"avatar": {
"type": "string",
"minLength": 1
},
"templateId": {
"type": "string",
"minLength": 1
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"limit": {
"description": "Per page (max 100). Each tool documents its own default.",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"frames": [
{
"frameId": "4b706a83-c035-427d-9f68-1091101c6dec",
"imageUrl": "https://cdn.ghostfeed.ai/frames/frame-1737100000000-1.png",
"avatarId": "d7d06ea3-a574-4fe0-9a39-d189a0b68698",
"avatarName": "Ashley Gram",
"templateId": "user-1a2b3c4d-1737100000000",
"videoId": "1cc27551-5ad9-42bd-9a9c-899f83dcfec6",
"imageModel": "nano_banana_2",
"imageOutputResolution": "standard",
"videoStage": "selecting-frame",
"preferenceStatus": "neutral",
"animationStatus": "never",
"isAnimated": false,
"createdAt": "2026-07-20T02:22:50.374Z",
"mention": "@frame:Ashley Gram (4b706a83-c035-427d-9f68-1091101c6dec)",
"dashboardUrl": "https://app.ghostfeed.ai/w/client-a/ugc-reactions?frame=4b706a83-c035-427d-9f68-1091101c6dec"
}
],
"total": 1,
"page": 1,
"pages": 1,
"nextSteps": "Reuse {kind: \"frame\", frameId} as the image for generate_video_from_prompt or generate_video_from_reference, or use edit_image to modify it."
}
}list_videos
READREST: GET /api/v2/reaction-videos
List the reaction VIDEOS in this workspace, newest first, agent-made or not. Each has a videoId, name, stage, a playable videoUrl once stage is "complete", a dashboardUrl, and sourceTemplateId when it came from a template. videoUrl is the canonical clip: the post-edit version once one exists, otherwise the raw render. generation is a compact model/mode/duration summary. Rows carry avatarId but not the avatar name; resolve names with list_avatars when you need them. When sourceTemplateId is present, get_video_template reads source media and stored analysis. get_video reads one render record; when generationId is known, get_generation_prompt and get_generation_setup provide exact saved instructions and reusable settings. Managing and deleting videos stays in the dashboard. To SHOW these results in an MCP Apps host, ALWAYS call render_generation_gallery; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"workspace": {
"description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
"type": "string"
},
"avatar": {
"type": "string",
"minLength": 1
},
"stage": {
"type": "string",
"minLength": 1
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"limit": {
"description": "Per page (max 100). Each tool documents its own default.",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"videos": [
{
"videoId": "b9b2a07c-2119-455f-aebf-e7d0b2f32182",
"name": "Excited point - Ashley Gram",
"stage": "complete",
"videoUrl": "https://cdn.ghostfeed.ai/generated-videos/b9b2a07c/final.mp4",
"sourceTemplateId": "reaction-7ab2",
"generation": {
"firstFrame": {
"mode": "template",
"imageModel": "nano_banana_2"
},
"video": {
"mode": "grok_imagine",
"durationSeconds": 7
}
},
"avatarId": "d7d06ea3-a574-4fe0-9a39-d189a0b68698",
"createdAt": "2026-07-20T02:09:51.871Z",
"dashboardUrl": "https://app.ghostfeed.ai/w/client-a/ugc-reactions?video=b9b2a07c-2119-455f-aebf-e7d0b2f32182"
}
],
"total": 1,
"page": 1,
"pages": 1,
"nextSteps": "Use videoUrl to inspect generated clips. Call get_video_template with sourceTemplateId for the original source, or get_video for exact prompts and settings. Rows carry avatarId but not the avatar name; resolve names with list_avatars."
}
}get_video
READREST: GET /api/v2/reaction-videos/:id
Read one reaction video’s full render record after finding it with list_videos. Returns the canonical generated video URL, sourceTemplateId, exact first-frame and video prompts, selected frame, models, duration, and post-edit URL. When sourceTemplateId is present, get_video_template reads source media and stored analysis. When generationId is known, prefer get_generation_prompt and get_generation_setup for exact saved instructions and reusable settings. Use this only for videos you need to recreate or inspect in detail; the list stays compact enough to inventory up to 100 videos. To SHOW these results in an MCP Apps host, ALWAYS call render_video_result; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link. Pass its videoId.
{
"type": "object",
"properties": {
"workspace": {
"description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
"type": "string"
},
"videoId": {
"type": "string",
"minLength": 1,
"description": "The videoId from list_videos whose complete render metadata to read."
}
},
"required": [
"videoId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"video": {
"videoId": "b9b2a07c-2119-455f-aebf-e7d0b2f32182",
"name": "Excited point - Ashley Gram",
"stage": "complete",
"videoUrl": "https://cdn.ghostfeed.ai/generated-videos/b9b2a07c/final.mp4",
"sourceTemplateId": "reaction-7ab2",
"generation": {
"firstFrame": {
"mode": "template",
"imageModel": "nano_banana_2",
"prompt": "Render Mila in the source opening pose.",
"stylingPrompt": "Keep the white blouse and bright kitchen.",
"referenceImageUrl": "https://cdn.ghostfeed.ai/references/mila.jpg",
"sourceFrameId": "frame-1737099999999-1",
"aspectRatio": "9:16",
"selectedFrameUrl": "https://cdn.ghostfeed.ai/frames/frame-1737100000000-1.png"
},
"video": {
"mode": "grok_imagine",
"prompt": "She points excitedly at the camera, then smiles.",
"durationSeconds": 7,
"finalVideoUrl": "https://cdn.ghostfeed.ai/generated-videos/b9b2a07c/final.mp4"
}
},
"avatarId": "d7d06ea3-a574-4fe0-9a39-d189a0b68698",
"avatarName": "Ashley Gram",
"createdAt": "2026-07-20T02:09:51.871Z",
"dashboardUrl": "https://app.ghostfeed.ai/w/client-a/ugc-reactions?video=b9b2a07c-2119-455f-aebf-e7d0b2f32182"
},
"nextSteps": "When sourceTemplateId is present, get_video_template reads the original source. When generationId is known, prefer get_generation_prompt and get_generation_setup for exact saved instructions and reusable settings. Follow the user’s review preferences."
}
}analyze_video
WRITEIDEMPOTENTREST: POST /api/v2/videos/analyze
Read or prepare video analysis for an accessible template or uploaded VIDEO, so you can write the prompt yourself: the server never writes prompts for the task tools. Use understanding for saved structure, sections, and the provider-authored generationPrompt. For a template, the standard/audio_guided/video_guided profiles reuse its saved generationPrompt without another provider request; older templates and direct media use durable action analysis. The audio_guided and video_guided profiles return reference guidance and action text in separate fields; read them as context. A plain copy with motion_to_video or audio_to_video sends no prompt; put action text in prompt only when the user wants the action changed, and for image_to_video or reference_to_video write the prompt yourself from it. Audio-only media has no visual action; send it straight to audio_to_video as an upload reference.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"source": {
"anyOf": [
{
"type": "object",
"properties": {
"videoId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"videoId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"templateId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"templateId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mediaId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"mediaId"
],
"additionalProperties": false
}
],
"description": "Exactly one accessible templateId or completed uploaded video mediaId. Audio-only media has no visual action to analyze."
},
"profile": {
"default": "standard",
"description": "understanding: free, asynchronous factual source description, contentStructure, demoType, sections, and optional visual/editing/transcript fields; standard: action for prompt-directed models; audio_guided: visible action and speech of the source; video_guided: normal action plus separate video-guided system guidance.",
"type": "string",
"enum": [
"understanding",
"standard",
"audio_guided",
"video_guided"
]
},
"retryFailed": {
"description": "Understanding only: explicitly retry a failed attempt. Ordinary reads never retry failed provider work.",
"type": "boolean"
},
"outputDurationSeconds": {
"description": "Required for audio_guided analysis; changing this prepares a duration-specific result.",
"type": "integer",
"minimum": 4,
"maximum": 15
}
},
"required": [
"workspace",
"source"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"analysisId": "939fa80f338e7ae11396f6f0d362043391a84c4f9fb75f3d729b3699990c0755",
"sourceId": "user-1a2b3c4d-1737100000000",
"sourceDurationSeconds": 7,
"profile": "standard",
"actionPrompt": "Timed section\n0-7s: Lean forward, point once, then smile.\n\nWhole-video description\nAn expressive presentation ending in a warm smile.",
"systemPrompt": null,
"timeline": "0-7s: Lean forward, point once, then smile.",
"model": "gemini-3.1-flash-lite",
"cached": true,
"analysisVersion": 3,
"nextSteps": "Action and system guidance are separate. Use these for inspection or explicit overrides; video generation can prepare source analysis automatically."
}
}search_inspiration_videos
READREST: GET /api/v2/inspiration-videos
Search the Inspiration video library with the same words, filters and sorts as the Inspiration panel. Free. query matches clip names, descriptions, labels, tags and links (3+ letters). videoType is how a clip is built, a content structure such as talking_head_demo or short_reaction_only; reaction is the creator's reaction, such as shocked; gender is who is on camera. list_inspiration_filters gives the values clips have now. sort: recommended (curated picks first, the default), most_liked or most_viewed. favoritesOnly keeps the person's favorite clips. Each item carries its id, labels, opensOn, motion and saved videoUnderstanding; to use one, pass its id to import_template_from_inspiration. To SHOW these results in an MCP Apps host, ALWAYS call render_inspiration_browser; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"query": {
"type": "string",
"minLength": 3,
"maxLength": 100
},
"videoType": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"reaction": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"gender": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"sort": {
"default": "recommended",
"type": "string",
"enum": [
"recommended",
"most_liked",
"most_viewed"
]
},
"favoritesOnly": {
"default": false,
"type": "boolean"
},
"page": {
"default": 1,
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"limit": {
"default": 12,
"type": "integer",
"minimum": 1,
"maximum": 24
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}{
"success": true,
"data": {
"items": [
{
"id": "insp_9f8e7d6c",
"name": "Grandma tastes pickle",
"category": "Food",
"durationSeconds": 6.1,
"videoUrl": "https://cdn.ghostfeed.ai/inspiration/insp_9f8e7d6c/video.mp4",
"thumbnailUrl": "https://cdn.ghostfeed.ai/inspiration/insp_9f8e7d6c/thumb.jpg",
"mention": "@inspiration:Grandma tastes pickle (insp_9f8e7d6c)",
"videoType": "short_reaction_only",
"reaction": "shocked",
"gender": "female"
}
],
"total": 1,
"page": 1,
"pages": 1
}
}list_inspiration_filters
READREST: GET /api/v2/inspiration-filters
List the filter values the Inspiration libraries have now. Free. videos: the videoType, reaction and gender values for search_inspiration_videos. slideshows: the categories and slideCount buckets for search_inspiration_slideshows.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}{
"success": true,
"data": {
"videos": {
"videoTypes": [
"short_reaction_only",
"talking_head_demo"
],
"reactions": [
"amused",
"shocked"
],
"genders": [
"female",
"male"
]
},
"slideshows": {
"categories": [
"Lifestyle",
"Food"
],
"slideCounts": [
{
"id": "short",
"label": "1-5 slides"
},
{
"id": "medium",
"label": "6-9 slides"
},
{
"id": "long",
"label": "10+ slides"
}
]
}
}
}list_video_models
READREST: GET /api/v2/reaction-video-modes
List the video models: each id with tasks (the video task tools it offers: text_to_video, image_to_video, reference_to_video, motion_to_video, audio_to_video) and each task’s preset id or null (one model per task is marked recommended: true), plus costs, resolutions, durations, prompt limits and sound. Every video task tool needs one of these ids as model; there is no default, so send the recommended one unless the user asks for another. Read it before choosing a model or settings.
No input. Call with no arguments.
{
"success": true,
"data": {
"models": [
{
"id": "kling_2_6_motion",
"label": "Kling 2.6 Motion Control",
"creditsPerSecond": 1,
"creditsPerSecondByResolution": {
"720p": 1,
"1080p": 2
},
"supportedResolutions": [
"720p",
"1080p"
],
"defaultResolution": "720p",
"supportsAudio": false,
"audioEnabledByDefault": false,
"maxCreditsPerClip": 60,
"tasks": [
{
"task": "motion_to_video",
"aspectRatios": [
"original"
],
"promptRequired": false,
"references": {
"image": {
"min": 1,
"max": 1
},
"video": {
"min": 1,
"max": 1
},
"audio": {
"min": 0,
"max": 0
},
"total": {
"min": 2,
"max": 2
}
},
"sourceSeconds": {
"min": 0.1,
"max": 30
},
"preset": null,
"promptLimits": [
{
"max": 65536,
"unit": "bytes",
"countsPreset": false
}
]
}
]
},
{
"id": "seedance_2_0_fast",
"label": "Seedance 2.0 Fast",
"creditsPerSecond": 1.5,
"creditsPerSecondByResolution": {
"720p": 1.5
},
"supportedResolutions": [
"720p"
],
"defaultResolution": "720p",
"supportsAudio": true,
"audioEnabledByDefault": true,
"durationOptions": [
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"maxCreditsPerClip": 60,
"tasks": [
{
"task": "text_to_video",
"aspectRatios": [
"9:16",
"16:9",
"1:1"
],
"promptRequired": true,
"references": {
"image": {
"min": 0,
"max": 0
},
"video": {
"min": 0,
"max": 0
},
"audio": {
"min": 0,
"max": 0
},
"total": {
"min": 0,
"max": 0
}
},
"durations": [
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"defaultDuration": 5,
"preset": null,
"promptLimits": [
{
"max": 65536,
"unit": "bytes",
"countsPreset": false
}
]
},
{
"task": "image_to_video",
"aspectRatios": [
"original",
"9:16",
"16:9",
"1:1"
],
"promptRequired": false,
"references": {
"image": {
"min": 1,
"max": 2
},
"video": {
"min": 0,
"max": 0
},
"audio": {
"min": 0,
"max": 0
},
"total": {
"min": 1,
"max": 2
}
},
"durations": [
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"defaultDuration": 5,
"endFrame": true,
"preset": null,
"promptLimits": [
{
"max": 65536,
"unit": "bytes",
"countsPreset": false
}
]
},
{
"task": "reference_to_video",
"aspectRatios": [
"original",
"9:16",
"16:9",
"1:1"
],
"promptRequired": false,
"references": {
"image": {
"min": 1,
"max": 9
},
"video": {
"min": 0,
"max": 0
},
"audio": {
"min": 0,
"max": 3
},
"total": {
"min": 1,
"max": 12
}
},
"durations": [
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"defaultDuration": 5,
"preset": null,
"promptLimits": [
{
"max": 65536,
"unit": "bytes",
"countsPreset": false
}
]
}
]
},
{
"id": "wan_3",
"label": "Wan 3",
"creditsPerSecond": 1,
"creditsPerSecondByResolution": {
"480p": 0.5,
"720p": 1,
"1080p": 2
},
"referenceVideoCreditsPerSecondByResolution": {
"480p": 0.5,
"720p": 1,
"1080p": 2
},
"supportedResolutions": [
"480p",
"720p",
"1080p"
],
"defaultResolution": "720p",
"supportsAudio": true,
"audioEnabledByDefault": true,
"durationOptions": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
],
"maxCreditsPerClip": 60,
"tasks": [
{
"task": "text_to_video",
"aspectRatios": [
"9:16",
"16:9",
"1:1"
],
"promptRequired": true,
"references": {
"image": {
"min": 0,
"max": 0
},
"video": {
"min": 0,
"max": 0
},
"audio": {
"min": 0,
"max": 0
},
"total": {
"min": 0,
"max": 0
}
},
"durations": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
],
"defaultDuration": 5,
"preset": null,
"promptLimits": [
{
"max": 20000,
"unit": "characters",
"countsPreset": false
}
]
},
{
"task": "image_to_video",
"aspectRatios": [
"original",
"9:16",
"16:9",
"1:1"
],
"promptRequired": true,
"references": {
"image": {
"min": 1,
"max": 2
},
"video": {
"min": 0,
"max": 0
},
"audio": {
"min": 0,
"max": 0
},
"total": {
"min": 1,
"max": 2
}
},
"durations": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
],
"defaultDuration": 5,
"endFrame": true,
"preset": null,
"promptLimits": [
{
"max": 20000,
"unit": "characters",
"countsPreset": false
}
]
},
{
"task": "reference_to_video",
"aspectRatios": [
"original",
"9:16",
"16:9",
"1:1"
],
"promptRequired": true,
"references": {
"image": {
"min": 0,
"max": 10
},
"video": {
"min": 0,
"max": 5
},
"audio": {
"min": 0,
"max": 5
},
"total": {
"min": 1,
"max": 20
},
"visualMin": 1,
"seconds": {
"video": {
"perClip": {
"min": 0.01,
"max": 15
},
"total": 15
},
"audio": {
"perClip": {
"min": 0.01,
"max": 15
},
"total": 15
}
}
},
"durations": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
],
"defaultDuration": 5,
"preset": null,
"promptLimits": [
{
"max": 20000,
"unit": "characters",
"countsPreset": false
}
]
},
{
"task": "motion_to_video",
"aspectRatios": [
"original",
"9:16",
"16:9",
"1:1"
],
"promptRequired": false,
"references": {
"image": {
"min": 1,
"max": 1
},
"video": {
"min": 1,
"max": 1
},
"audio": {
"min": 0,
"max": 0
},
"total": {
"min": 2,
"max": 2
}
},
"sourceSeconds": {
"min": 0.01,
"max": 15
},
"preset": "wan_3_motion",
"recommended": true,
"promptLimits": [
{
"max": 20000,
"unit": "characters",
"countsPreset": true
}
]
},
{
"task": "audio_to_video",
"aspectRatios": [
"original",
"9:16",
"16:9",
"1:1"
],
"promptRequired": false,
"references": {
"image": {
"min": 1,
"max": 1
},
"video": {
"min": 0,
"max": 1
},
"audio": {
"min": 0,
"max": 1
},
"total": {
"min": 2,
"max": 2
}
},
"sourceSeconds": {
"min": 0.01,
"max": 15
},
"preset": "wan_3_audio",
"recommended": true,
"promptLimits": [
{
"max": 20000,
"unit": "characters",
"countsPreset": true
}
]
}
]
}
],
"maxCreditsPerClip": 60,
"nextSteps": "tasks lists the task tools each model offers (call the tool named after the task, with this id as model; there is no default model), each with this model’s facts for that task: aspectRatios, promptRequired, references (counts per media and clip seconds), sourceSeconds where the length comes from a source, durations with defaultDuration, modes with defaultMode where the model has a mode setting (settings.mode), endFrame: true where image_to_video also takes a second image as the video’s last frame, frames: true where reference_to_video takes frame: \"first\" or \"last\" on an image reference, its preset id (null when it has none), and promptLimits: how long the prompt may be (max in bytes or characters; countsPreset says the preset or a systemPrompt counts too), refused with prompt_too_long when longer. One model per task is marked recommended: true; use it unless the user asks for another. Read a preset’s text with get_preset; leave systemPrompt out to use it, send text to replace it, or null to remove it. systemPrompt is refused where preset is null."
}
}crop_video_template
WRITEIDEMPOTENTREST: POST /api/v2/reaction-templates/crop
Make one new template from a time range of a template in this workspace (kind owned). Free. Crop only when a video should copy the motion of part of the source (motion_to_video or audio_to_video); a prompt-written video needs no crop, and a source within the model's sourceSeconds (list_video_models) goes in whole. Crop one continuous piece that holds the whole part. Start it at a clean start and end it at the end of a spoken sentence, from the transcript times; look at frames around each cut (get_video_frame) and never cut in the middle of a word or a move. Section and transcript times are close, not exact: trust the footage. When the user gave no times, propose a range from the template's sections and ask once; when their answer about which part already gave the range, crop right away. A source longer than the model's sourceSeconds becomes several videos: say so and confirm the whole plan in one question first, cut at natural moments (the end of a sentence, a change of move or scene) close to whole seconds, avoid a very short last piece, crop every piece from the original, and make one starting image and one video per piece, in order. Wait with get_generation and waitMs 25000; on success outputs[0].id is the new template. The crop gets its own understanding: read it with get_video_template before you use its description. The source template stays as it was.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"templateId": {
"type": "string",
"minLength": 1
},
"startSeconds": {
"type": "number",
"minimum": 0
},
"endSeconds": {
"type": "number",
"exclusiveMinimum": 0
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 180
},
"category": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"idempotencyKey": {
"description": "A stable key to reuse if you retry this exact request; a repeat with the same key is NOT charged again.",
"type": "string",
"maxLength": 200
}
},
"required": [
"workspace",
"templateId",
"startSeconds",
"endSeconds"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"generation": {
"id": "gen_crop_aa11bb22",
"kind": "reaction_crop",
"state": "running",
"phase": "cropping",
"input": {
"templateId": "user-1a2b3c4d-1737100000000",
"startSeconds": 2,
"endSeconds": 9
},
"outputs": [],
"dashboardUrl": "https://ghostfeed.ai/w/client-a/ugc-reactions?template=user-1a2b3c4d-1737100000000&ref=agent",
"createdAt": "2026-07-28T12:00:00.000Z",
"updatedAt": "2026-07-28T12:00:00.000Z"
},
"nextSteps": "Poll get_generation; outputs[0].id of its result is the new cropped template id."
}
}import_template_from_social_post
WRITEREST: POST /api/v2/template-imports/social-post
Import one public TikTok, Instagram or X post from its link as a template. The post decides the kind. A video becomes a video template (kind video): then read it with get_video_template (template.templateId, waitMs 25000); a completed template is ready for clone_image, motion_to_video, audio_to_video or analyze_video. Videos over 120 seconds are rejected. A photo post becomes a slideshow template (kind slideshow): then read it with get_slideshow_template (template.templateId, waitMs 25000) until status is ready; it is the source to copy: look at its slides, then create_blank_slideshow and copy it the way the ghostfeed-slideshow-clone skill says. Costs no credits; up to 50 link imports per hour. In an MCP Apps host, show a ready video template with render_video_result and template.templateId; it plays the clip with its saved sections. Show a ready slideshow template with render_slideshow_result and template: { templateId }.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "One public TikTok, Instagram or X post link, as the user pasted it."
},
"name": {
"description": "Template name. Omit to use the post's caption (slideshow) or '<Platform> video' (video).",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"idempotencyKey": {
"description": "A stable key to reuse if you retry this exact request; a repeat with the same key is NOT charged again.",
"type": "string",
"maxLength": 200
}
},
"required": [
"workspace",
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"kind": "video",
"template": {
"templateId": "tiktok-1a2b3c4d-1792238400000-9f8e7d",
"name": "TikTok video",
"mention": "@template:TikTok video (tiktok-1a2b3c4d-1792238400000-9f8e7d)",
"generation": {
"id": "gen_8e2f4a6c-1b3d-4f5a-9c7e-2d4f6a8b0c1e",
"kind": "reaction_import",
"state": "queued",
"title": "TikTok video",
"input": {
"name": "TikTok video",
"sourceUrl": "https://www.tiktok.com/@deskdaily/video/7301234567890123456",
"source": "link",
"templateId": "tiktok-1a2b3c4d-1792238400000-9f8e7d",
"workspaceSlug": "client-a"
},
"outputs": [],
"dashboardUrl": "https://ghostfeed.ai/w/client-a/ugc-reactions?template=tiktok-1a2b3c4d-1792238400000-9f8e7d&ref=agent",
"creditsSpent": 0,
"createdAt": "2026-10-17T12:00:00.000Z",
"updatedAt": "2026-10-17T12:00:00.000Z"
}
},
"nextSteps": "Still importing. Read it with get_video_template (templateId \"tiktok-1a2b3c4d-1792238400000-9f8e7d\", workspace \"client-a\", waitMs 25000); call again while it is still importing, and never import the same source again."
}
}import_template_from_inspiration
WRITEREST: POST /api/v2/template-imports/inspiration
Import one video from the inspiration library (an id from search_inspiration_videos) as a video template. Then read it with get_video_template (template.templateId, waitMs 25000); a completed template is ready for clone_image, motion_to_video, audio_to_video or analyze_video. Costs no credits. In an MCP Apps host, show a ready video template with render_video_result and template.templateId; it plays the clip with its saved sections.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"inspirationId": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "An inspiration id from search_inspiration_videos."
},
"name": {
"description": "Template name. Omit to use the inspiration video's name.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"category": {
"description": "Template category. Omit to keep the inspiration video's category.",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"idempotencyKey": {
"description": "A stable key to reuse if you retry this exact request; a repeat with the same key is NOT charged again.",
"type": "string",
"maxLength": 200
}
},
"required": [
"workspace",
"inspirationId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"kind": "video",
"template": {
"templateId": "inspiration-7d1e9b2c-4a6f-4c3e-9b8d-2f5a7c1e3b9d",
"name": "Grandma tastes pickle",
"mention": "@template:Grandma tastes pickle (inspiration-7d1e9b2c-4a6f-4c3e-9b8d-2f5a7c1e3b9d)",
"generation": {
"id": "gen_2c4e6a8b-3d5f-4a1c-8e2b-6f9d1a3c5e7b",
"kind": "reaction_import",
"state": "queued",
"title": "Grandma tastes pickle",
"input": {
"name": "Grandma tastes pickle",
"inspirationId": "insp_9f8e7d6c",
"source": "inspiration",
"templateId": "inspiration-7d1e9b2c-4a6f-4c3e-9b8d-2f5a7c1e3b9d",
"workspaceSlug": "client-a"
},
"outputs": [],
"dashboardUrl": "https://ghostfeed.ai/w/client-a/ugc-reactions?template=inspiration-7d1e9b2c-4a6f-4c3e-9b8d-2f5a7c1e3b9d&ref=agent",
"creditsSpent": 0,
"createdAt": "2026-10-17T12:00:00.000Z",
"updatedAt": "2026-10-17T12:00:00.000Z"
}
},
"nextSteps": "Still importing. Read it with get_video_template (templateId \"inspiration-7d1e9b2c-4a6f-4c3e-9b8d-2f5a7c1e3b9d\", workspace \"client-a\", waitMs 25000); call again while it is still importing, and never import the same source again."
}
}import_template_from_upload
WRITEREST: POST /api/v2/template-imports/upload
Import a video file the user owns as a video template. Pass the stored url of a completed video upload (complete_media_upload) as fileUrl. Then read it with get_video_template (template.templateId, waitMs 25000); a completed template is ready for clone_image, motion_to_video, audio_to_video or analyze_video. Videos over 120 seconds or 100 MB are rejected. Costs no credits. In an MCP Apps host, show a ready video template with render_video_result and template.templateId; it plays the clip with its saved sections.
{
"type": "object",
"properties": {
"workspace": {
"type": "string",
"minLength": 1,
"description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
},
"fileUrl": {
"type": "string",
"maxLength": 2000,
"format": "uri",
"description": "The stored url of a completed video upload (complete_media_upload)."
},
"name": {
"description": "Template name. Omit to name it 'Uploaded video'.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"category": {
"description": "Template category.",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"idempotencyKey": {
"description": "A stable key to reuse if you retry this exact request; a repeat with the same key is NOT charged again.",
"type": "string",
"maxLength": 200
}
},
"required": [
"workspace",
"fileUrl"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}{
"success": true,
"data": {
"workspace": {
"id": "6a18c36ee586c7e44e4ece67",
"name": "Client A",
"slug": "client-a"
},
"kind": "video",
"template": {
"templateId": "upload-4b8d2f6a-9c1e-4d3b-8a5f-7e2c4a6b8d1f",
"name": "Uploaded video",
"mention": "@template:Uploaded video (upload-4b8d2f6a-9c1e-4d3b-8a5f-7e2c4a6b8d1f)",
"generation": {
"id": "gen_5a7c9e1b-6d8f-4b2a-9c4e-1f3a5c7e9b2d",
"kind": "reaction_import",
"state": "queued",
"title": "Uploaded video",
"input": {
"name": "Uploaded video",
"uploadedFileUrl": "https://cdn.ghostfeed.ai/users/1a2b3c4d/media/6a18c36ee586c7e44e4ece67/upload-4b8d2f6a/uuid.mp4",
"source": "upload",
"templateId": "upload-4b8d2f6a-9c1e-4d3b-8a5f-7e2c4a6b8d1f",
"workspaceSlug": "client-a"
},
"outputs": [],
"dashboardUrl": "https://ghostfeed.ai/w/client-a/ugc-reactions?template=upload-4b8d2f6a-9c1e-4d3b-8a5f-7e2c4a6b8d1f&ref=agent",
"creditsSpent": 0,
"createdAt": "2026-10-17T12:00:00.000Z",
"updatedAt": "2026-10-17T12:00:00.000Z"
}
},
"nextSteps": "Still importing. Read it with get_video_template (templateId \"upload-4b8d2f6a-9c1e-4d3b-8a5f-7e2c4a6b8d1f\", workspace \"client-a\", waitMs 25000); call again while it is still importing, and never import the same source again."
}
}