# Derive a video from an existing image asset. The asset is passed BOTH as the# model reference AND as parent_media_id, so the dashboard links them in the# history tree (and the video inherits the image's folder).curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "grok-imagine-video", "prompt": "The subject turns slowly toward the camera.", "references": [ { "asset_id": "662f8c1d3a4b5e6f70123456" } ], "parent_media_id": "662f8c1d3a4b5e6f70123456" }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "kling-v3-pro", "prompt": "The character smiles and waves at the camera.", "references": [ { "avatar_id": "6630000000000000deadbeef" } ] }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "kling-v3-motion-pro", "prompt": "Apply the motion to the subject naturally.", "start_image": { "url": "https://example.com/subject.jpg" }, "motion_video": { "asset_id": "662f8c1d3a4b5e6f70123456" } }'
{ "error": "Validation failed", "details": [ { "code": "invalid_value", "message": "elements[0].images requires at least 2 images of the same subject (frontal view first, then other angles). Provided: 1", "field": "elements[0].images" }, { "code": "invalid_value", "message": "The prompt must reference elements[1] as @mug", "field": "elements[1].name" } ]}
{ "error": "This model requires one of the following plans: PRO, ENTREPRISE.", "details": [ { "code": "not_eligible", "message": "This model requires one of the following plans: PRO, ENTREPRISE." } ]}
Assets
Submit Asset Generation
Start generating one or more images or videos with any supported model
POST
/
api
/
public
/
v1
/
asset
/
start
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "veo-3.1-lite", "prompt": "A cinematic shot of a fox running through autumn leaves at sunrise.", "aspect_ratio": "9:16", "duration": 8, "resolution": "720p" }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "image", "model": "flux-2-pro", "prompt": "Product shot of a ceramic mug on a marble counter.", "aspect_ratio": "1:1", "folder_id": "662f8c1d3a4b5e6f70123456" }'
# Derive a video from an existing image asset. The asset is passed BOTH as the# model reference AND as parent_media_id, so the dashboard links them in the# history tree (and the video inherits the image's folder).curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "grok-imagine-video", "prompt": "The subject turns slowly toward the camera.", "references": [ { "asset_id": "662f8c1d3a4b5e6f70123456" } ], "parent_media_id": "662f8c1d3a4b5e6f70123456" }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "kling-v3-pro", "prompt": "The character smiles and waves at the camera.", "references": [ { "avatar_id": "6630000000000000deadbeef" } ] }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "kling-v3-motion-pro", "prompt": "Apply the motion to the subject naturally.", "start_image": { "url": "https://example.com/subject.jpg" }, "motion_video": { "asset_id": "662f8c1d3a4b5e6f70123456" } }'
{ "error": "Validation failed", "details": [ { "code": "invalid_value", "message": "elements[0].images requires at least 2 images of the same subject (frontal view first, then other angles). Provided: 1", "field": "elements[0].images" }, { "code": "invalid_value", "message": "The prompt must reference elements[1] as @mug", "field": "elements[1].name" } ]}
{ "error": "This model requires one of the following plans: PRO, ENTREPRISE.", "details": [ { "code": "not_eligible", "message": "This model requires one of the following plans: PRO, ENTREPRISE." } ]}
Overview
Submits an asset (image or video) generation job and returns immediately with the IDs of the temporary assets being generated. Generations run in the background — poll /asset/status/{assetId} to track progress.Credits are debited up front based on the model and the parameters you send. Failed generations are automatically refunded.
Authentication
This endpoint requires API key authentication. Include your API key in the Authorization header.
Request Body
string
required
image or video. Must match the type of the model you select.
string
required
The model identifier. See List Models for available identifiers and capabilities.
string
required
Text prompt describing the asset to generate. Some models cap the prompt length — check the model page. Promptless models such as hoox-upscale do not take one.
array
Reference media for the model. Required for image-to-video, motion control, edit, and reference-based models.Models with named input slots (e.g. kling-motion-control, kling-v3-pro) expect dedicated top-level fields instead — see Named input slots below. They still accept a references array, mapped onto their slots in order, so you never have to migrate an existing call.Each item must have exactly one of:
Show item properties
string
Direct publicly accessible URL of the reference media file. Supported formats:
Images: .jpg / .jpeg / .png / .webp
Videos: .mp4 / .mov / .webm / .m4v
string
ID of an existing asset in your Hoox space media library (as returned by /asset/start or /asset/status).
The server resolves the URL automatically — no need to re-upload.
string
ID of an avatar defined in your Hoox space. The avatar’s thumbnail image is used as the reference.
array
Named characters or objects to inject in the generation, each described by several images of the same subject and referenced in the prompt as @name. Only for models that expose an element capability (kling-v3-pro, kling-v3-standard) — see Elements below.
Show item properties
string
required
Alias used in the prompt as @name. Letters, digits and underscores only, 32 characters max.
array
required
At least 2 images of the same subject — frontal view first, then other angles. Each item takes exactly one of url, asset_id, or avatar_id, like a references item.
number
default:"1"
Number of variations to generate from the same prompt. Must be between 1 and 4. Credits are debited per generation.
string
One of the model’s supported aspect ratios. Defaults to the model’s default if omitted.
string
One of the model’s supported resolutions. Defaults to the model’s default if omitted.
integer
Video duration in seconds (e.g. 8). Use one of the model’s supported durations — see the duration enum in the model’s input_schema from Get Model. The server converts it to the model’s expected format automatically.
object
Per-model toggles such as generateAudio, camera_fixed, quality. See the model page for available keys.
string
ID of the source asset this generation is derived from — an edit, animation (image-to-video), upscale, restyle, or variation. Set it whenever the output comes from an existing asset: it links the new asset to its source in the dashboard’s history tree so the full edit chain stays visible.This is separate from the model input: keep passing the source as a reference (asset_id / named slot like source_video) so the model receives it, and set parent_media_id to the same source id to record the lineage.When set, the generated assets also inherit the parent’s folder, and folder_id is ignored.
string
ID of an existing asset folder to place the generated asset(s) into. Create one with Create Folder (type: "assets") or list existing ones with List Folders. When working on a project or generating a batch, group its outputs in a dedicated folder so they stay organized and easy to find in the dashboard.
string
For Seedance 2.0 UGC only — appearance and actions of the subject (separate from the script).
string
URL that will receive a notification when generation completes (success or failure).
string
Predefined base file name for the produced asset, without extension (e.g. summer-campaign-hero). It is slugified server-side (lowercased, non-alphanumeric characters replaced by hyphens) and the correct extension is appended automatically. When omitted, a descriptive name is generated from the prompt.
Named input slots
Some models require specific media types in a fixed order — for example, a subject image and a motion reference video. For these models, instead of a generic references[] array, you pass named top-level properties that make the intent explicit.The named properties for a given model are listed on its model page and in the input_schema field returned by GET /models/{name}.Each named slot accepts the same object shape as a references[] item: exactly one of url, asset_id, or avatar_id. Slots are ordered — when a slot is optional, you may omit it, but you cannot provide a later slot while leaving an earlier one empty (e.g. last_frame requires first_frame).Models with named slots:
Passing a references array to one of these models is still supported: the items are mapped onto the slots above in order (first item → first slot, and so on). Named fields are clearer and are what the model pages document, but existing calls keep working.
Elements
Elements let you inject named characters or objects in a generation. Each element is described by several images of the same subject, and you refer to it in the prompt with @name — so a single prompt can direct several known subjects without ambiguity.Supported by kling-v3-pro and kling-v3-standard, up to 4 elements per request.
{ "type": "video", "model": "kling-v3-pro", "prompt": "@sarah picks up @mug and takes a slow sip, then smiles at the camera.", "first_frame": { "url": "https://example.com/kitchen.jpg" }, "elements": [ { "name": "sarah", "images": [ { "url": "https://example.com/sarah-frontal.jpg" }, { "url": "https://example.com/sarah-profile.jpg" } ] }, { "name": "mug", "images": [ { "asset_id": "662f8c1d3a4b5e6f70123456" }, { "asset_id": "662f8c1d3a4b5e6f70123457" } ] } ], "duration": 5}
Rules
Each element needs at least 2 images of the same subject: the first is the frontal view, the others are additional angles (4 max).
The prompt must reference every element as @name. An unreferenced element is ignored by the model, so the request is rejected instead of burning credits.
name accepts letters, digits and underscores only (32 characters max), must be unique within the request, and cannot be refN or elementN — those are reserved for the internal rewriting of prompt references.
first_frame is required whenever you send elements.
Element images do not count toward the model’s references / named-slot limits.
Element names are yours: Hoox rewrites them into the positional placeholders the provider expects before submitting, so @sarah and @mug are what you write and what you read back in your own code.
Response
array
IDs of the created temporary assets. One ID per generation. Use these with /asset/status/{assetId}.
string
Always generating on success.
number
Number of generations launched.
number
Credits charged for one generation.
number
Total credits debited (cost_per_generation × count).
Examples
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "veo-3.1-lite", "prompt": "A cinematic shot of a fox running through autumn leaves at sunrise.", "aspect_ratio": "9:16", "duration": 8, "resolution": "720p" }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "image", "model": "flux-2-pro", "prompt": "Product shot of a ceramic mug on a marble counter.", "aspect_ratio": "1:1", "folder_id": "662f8c1d3a4b5e6f70123456" }'
# Derive a video from an existing image asset. The asset is passed BOTH as the# model reference AND as parent_media_id, so the dashboard links them in the# history tree (and the video inherits the image's folder).curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "grok-imagine-video", "prompt": "The subject turns slowly toward the camera.", "references": [ { "asset_id": "662f8c1d3a4b5e6f70123456" } ], "parent_media_id": "662f8c1d3a4b5e6f70123456" }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "kling-v3-pro", "prompt": "The character smiles and waves at the camera.", "references": [ { "avatar_id": "6630000000000000deadbeef" } ] }'
curl -X POST "https://app.hoox.video/api/public/v1/asset/start" \ -H "Authorization: Bearer your_api_key" \ -H "Content-Type: application/json" \ -d '{ "type": "video", "model": "kling-v3-motion-pro", "prompt": "Apply the motion to the subject naturally.", "start_image": { "url": "https://example.com/subject.jpg" }, "motion_video": { "asset_id": "662f8c1d3a4b5e6f70123456" } }'
{ "error": "Validation failed", "details": [ { "code": "invalid_value", "message": "elements[0].images requires at least 2 images of the same subject (frontal view first, then other angles). Provided: 1", "field": "elements[0].images" }, { "code": "invalid_value", "message": "The prompt must reference elements[1] as @mug", "field": "elements[1].name" } ]}
{ "error": "This model requires one of the following plans: PRO, ENTREPRISE.", "details": [ { "code": "not_eligible", "message": "This model requires one of the following plans: PRO, ENTREPRISE." } ]}
Notes
The endpoint returns as soon as the temp assets are created — the actual generation runs in the background and typically completes in 10–120 seconds depending on the model.
If you provide a webhook_url, it will be called when generation completes (success or failure).
Use List Models and Get Model to discover the parameters each model accepts, including named input slots and element support.
Use Get Pricing for a dry-run cost estimate before submitting.
When a generation is derived from an existing asset (edit, animation, upscale, restyle, variation), set parent_media_id to the source asset’s id so the dashboard keeps the full history chain. Pass the source as a reference for the model and as parent_media_id for the lineage.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hoox API Documentation","colors":{"primary":"#FF3270","light":"#FB5688","dark":"#FF3270"},"logo":{"light":"https://assets.hoox.video/logo-noir.png","dark":"https://assets.hoox.video/logo-blanc.png"},"favicon":"https://assets.hoox.video/favicon.png","navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.hoox.video"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/hoox-video","twitter":"https://x.com/hooxapp","instagram":"https://www.instagram.com/hoox.video"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Application","icon":"house","href":"https://app.hoox.video"},{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/jGaPsGGDpC"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hoox-55eb2ddf","hasAudioNarration":false,"actualSubdomain":"hoox-55eb2ddf","customDomains":["docs.hoox.video"],"gitSource":{"type":"github","owner":"alandla","repo":"hoox","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10ba1e9ffae5051c402560"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6acae36e83864fb69bacd146","clientVersion":"0.0.4424","searchFilterCounts":[{"language":"default","tag":"API Reference","count":68},{"language":"default","tag":"Assets","count":52},{"language":"default","tag":"Video models","count":30},{"language":"default","tag":"Image models","count":17},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Kling","count":12},{"language":"default","tag":"ByteDance","count":8},{"language":"default","tag":"Flux","count":7},{"language":"default","tag":"Avatar","count":6},{"language":"default","tag":"Get Started","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/assets/start","slug":"/api-reference/assets/start","pageMetadata":{"title":"Submit Asset Generation","api":"POST https://app.hoox.video/api/public/v1/asset/start","description":"Start generating one or more images or videos with any supported model","href":"/api-reference/assets/start"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Start generating one or more images or videos with any supported model\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`Submits an asset (image or video) generation job and returns immediately with the IDs of the temporary assets being generated. Generations run in the background — poll `,_jsx(_components.a,{href:`/api-reference/assets/status`,children:_jsx(_components.code,{children:`/asset/status/{assetId}`})}),` to track progress.`]}),`\n`,_jsx(_components.p,{children:`Credits are debited up front based on the model and the parameters you send. Failed generations are automatically refunded.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This endpoint requires API key authentication. Include your API key in the `,_jsx(_components.code,{children:`Authorization`}),` header.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`image`}),` or `,_jsx(_components.code,{children:`video`}),`. Must match the type of the model you select.`]})}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`The model identifier. See `,_jsx(_components.a,{href:`/api-reference/assets/models`,children:`List Models`}),` for available identifiers and capabilities.`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsxs(_components.p,{children:[`Text prompt describing the asset to generate. Some models cap the prompt length — check the model page. Promptless models such as `,_jsx(_components.a,{href:`/api-reference/assets/video/hoox/hoox-upscale`,children:_jsx(_components.code,{children:`hoox-upscale`})}),` do not take one.`]})}),`\n`,_jsxs(ParamField,{body:`references`,type:`array`,id:`param-references`,children:[_jsx(_components.p,{children:`Reference media for the model. Required for image-to-video, motion control, edit, and reference-based models.`}),_jsxs(_components.p,{children:[`Models with named input slots (e.g. `,_jsx(_components.code,{children:`kling-motion-control`}),`, `,_jsx(_components.code,{children:`kling-v3-pro`}),`) expect `,_jsx(_components.strong,{children:`dedicated top-level fields`}),` instead — see `,_jsx(_components.a,{href:`#named-input-slots`,children:`Named input slots`}),` below. They still accept a `,_jsx(_components.code,{children:`references`}),` array, mapped onto their slots in order, so you never have to migrate an existing call.`]}),_jsxs(_components.p,{children:[`Each item must have `,_jsx(_components.strong,{children:`exactly one`}),` of:`]}),_jsxs(Expandable,{title:`item properties`,children:[_jsxs(ParamField,{body:`url`,type:`string`,id:`param-url`,children:[_jsx(_components.p,{children:`Direct publicly accessible URL of the reference media file. Supported formats:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Images: `,_jsx(_components.code,{children:`.jpg`}),` / `,_jsx(_components.code,{children:`.jpeg`}),` / `,_jsx(_components.code,{children:`.png`}),` / `,_jsx(_components.code,{children:`.webp`})]}),`\n`,_jsxs(_components.li,{children:[`Videos: `,_jsx(_components.code,{children:`.mp4`}),` / `,_jsx(_components.code,{children:`.mov`}),` / `,_jsx(_components.code,{children:`.webm`}),` / `,_jsx(_components.code,{children:`.m4v`})]}),`\n`]})]}),_jsx(ParamField,{body:`asset_id`,type:`string`,id:`param-asset-id`,children:_jsxs(_components.p,{children:[`ID of an existing asset in your Hoox space media library (as returned by `,_jsx(_components.code,{children:`/asset/start`}),` or `,_jsx(_components.code,{children:`/asset/status`}),`).\nThe server resolves the URL automatically — no need to re-upload.`]})}),_jsx(ParamField,{body:`avatar_id`,type:`string`,id:`param-avatar-id`,children:_jsx(_components.p,{children:`ID of an avatar defined in your Hoox space. The avatar’s thumbnail image is used as the reference.`})})]})]}),`\n`,_jsxs(ParamField,{body:`elements`,type:`array`,id:`param-elements`,children:[_jsxs(_components.p,{children:[`Named characters or objects to inject in the generation, each described by several images of the same subject and referenced in the prompt as `,_jsx(_components.code,{children:`@name`}),`. Only for models that expose an element capability (`,_jsx(_components.code,{children:`kling-v3-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-standard`}),`) — see `,_jsx(_components.a,{href:`#elements`,children:`Elements`}),` below.`]}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsxs(_components.p,{children:[`Alias used in the prompt as `,_jsx(_components.code,{children:`@name`}),`. Letters, digits and underscores only, 32 characters max.`]})}),_jsx(ParamField,{body:`images`,type:`array`,required:true,id:`param-images`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`At least 2`}),` images of the same subject — frontal view first, then other angles. Each item takes exactly one of `,_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`asset_id`}),`, or `,_jsx(_components.code,{children:`avatar_id`}),`, like a `,_jsx(_components.code,{children:`references`}),` item.`]})})]})]}),`\n`,_jsx(ParamField,{body:`generation_count`,type:`number`,default:`1`,id:`param-generation-count`,children:_jsx(_components.p,{children:`Number of variations to generate from the same prompt. Must be between 1 and 4. Credits are debited per generation.`})}),`\n`,_jsx(ParamField,{body:`aspect_ratio`,type:`string`,id:`param-aspect-ratio`,children:_jsx(_components.p,{children:`One of the model’s supported aspect ratios. Defaults to the model’s default if omitted.`})}),`\n`,_jsx(ParamField,{body:`resolution`,type:`string`,id:`param-resolution`,children:_jsx(_components.p,{children:`One of the model’s supported resolutions. Defaults to the model’s default if omitted.`})}),`\n`,_jsx(ParamField,{body:`duration`,type:`integer`,id:`param-duration`,children:_jsxs(_components.p,{children:[`Video duration `,_jsx(_components.strong,{children:`in seconds`}),` (e.g. `,_jsx(_components.code,{children:`8`}),`). Use one of the model’s supported durations — see the `,_jsx(_components.code,{children:`duration`}),` enum in the model’s `,_jsx(_components.code,{children:`input_schema`}),` from `,_jsx(_components.a,{href:`/api-reference/assets/model`,children:`Get Model`}),`. The server converts it to the model’s expected format automatically.`]})}),`\n`,_jsx(ParamField,{body:`model_settings`,type:`object`,id:`param-model-settings`,children:_jsxs(_components.p,{children:[`Per-model toggles such as `,_jsx(_components.code,{children:`generateAudio`}),`, `,_jsx(_components.code,{children:`camera_fixed`}),`, `,_jsx(_components.code,{children:`quality`}),`. See the model page for available keys.`]})}),`\n`,_jsxs(ParamField,{body:`parent_media_id`,type:`string`,id:`param-parent-media-id`,children:[_jsxs(_components.p,{children:[`ID of the `,_jsx(_components.strong,{children:`source asset this generation is derived from`}),` — an edit, animation (image-to-video), upscale, restyle, or variation. Set it whenever the output comes from an existing asset: it links the new asset to its source in the dashboard’s `,_jsx(_components.strong,{children:`history tree`}),` so the full edit chain stays visible.`]}),_jsxs(_components.p,{children:[`This is separate from the model input: keep passing the source as a reference (`,_jsx(_components.code,{children:`asset_id`}),` / named slot like `,_jsx(_components.code,{children:`source_video`}),`) so the model receives it, `,_jsx(_components.strong,{children:`and`}),` set `,_jsx(_components.code,{children:`parent_media_id`}),` to the same source id to record the lineage.`]}),_jsxs(_components.p,{children:[`When set, the generated assets also inherit the parent’s folder, and `,_jsx(_components.code,{children:`folder_id`}),` is ignored.`]})]}),`\n`,_jsx(ParamField,{body:`folder_id`,type:`string`,id:`param-folder-id`,children:_jsxs(_components.p,{children:[`ID of an existing `,_jsx(_components.strong,{children:`asset folder`}),` to place the generated asset(s) into. Create one with `,_jsx(_components.a,{href:`/api-reference/folders/create`,children:`Create Folder`}),` (`,_jsx(_components.code,{children:`type: \"assets\"`}),`) or list existing ones with `,_jsx(_components.a,{href:`/api-reference/folders/list`,children:`List Folders`}),`. When working on a project or generating a batch, group its outputs in a dedicated folder so they stay organized and easy to find in the dashboard.`]})}),`\n`,_jsx(ParamField,{body:`avatar_description`,type:`string`,id:`param-avatar-description`,children:_jsx(_components.p,{children:`For Seedance 2.0 UGC only — appearance and actions of the subject (separate from the script).`})}),`\n`,_jsx(ParamField,{body:`webhook_url`,type:`string`,id:`param-webhook-url`,children:_jsx(_components.p,{children:`URL that will receive a notification when generation completes (success or failure).`})}),`\n`,_jsx(ParamField,{body:`file_name`,type:`string`,id:`param-file-name`,children:_jsxs(_components.p,{children:[`Predefined base file name for the produced asset, without extension (e.g. `,_jsx(_components.code,{children:`summer-campaign-hero`}),`). It is slugified server-side (lowercased, non-alphanumeric characters replaced by hyphens) and the correct extension is appended automatically. When omitted, a descriptive name is generated from the prompt.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`named-input-slots`,children:`Named input slots`}),`\n`,_jsxs(_components.p,{children:[`Some models require specific media types in a fixed order — for example, a subject image `,_jsx(_components.strong,{children:`and`}),` a motion reference video. For these models, instead of a generic `,_jsx(_components.code,{children:`references[]`}),` array, you pass named top-level properties that make the intent explicit.`]}),`\n`,_jsxs(_components.p,{children:[`The named properties for a given model are listed on its model page and in the `,_jsx(_components.code,{children:`input_schema`}),` field returned by `,_jsx(_components.a,{href:`/api-reference/assets/model`,children:_jsx(_components.code,{children:`GET /models/{name}`})}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Each named slot accepts the same object shape as a `,_jsx(_components.code,{children:`references[]`}),` item: exactly one of `,_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`asset_id`}),`, or `,_jsx(_components.code,{children:`avatar_id`}),`. Slots are ordered — when a slot is optional, you may omit it, but you cannot provide a later slot while leaving an earlier one empty (e.g. `,_jsx(_components.code,{children:`last_frame`}),` requires `,_jsx(_components.code,{children:`first_frame`}),`).`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Models with named slots:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`Named slots`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kling-pro`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`start_image`}),` (optional) + `,_jsx(_components.code,{children:`end_image`}),` (optional)`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`kling-v3-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-standard`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`first_frame`}),` (optional) + `,_jsx(_components.code,{children:`last_frame`}),` (optional)`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`kling-motion-control`}),`, `,_jsx(_components.code,{children:`kling-motion-control-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-motion-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-motion-standard`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`start_image`}),` + `,_jsx(_components.code,{children:`motion_video`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`kling-o3-edit-pro`}),`, `,_jsx(_components.code,{children:`kling-o3-edit-standard`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`source_video`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`flux-3-video-extend`}),`, `,_jsx(_components.code,{children:`flux-3-video-edit`}),`, `,_jsx(_components.code,{children:`grok-imagine-video-edit`}),`, `,_jsx(_components.code,{children:`bytedance-upscaler`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`source_video`})})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Passing a `,_jsx(_components.code,{children:`references`}),` array to one of these models is still supported: the items are mapped onto the slots above in order (first item → first slot, and so on). Named fields are clearer and are what the model pages document, but existing calls keep working.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`elements`,children:`Elements`}),`\n`,_jsxs(_components.p,{children:[`Elements let you inject `,_jsx(_components.strong,{children:`named characters or objects`}),` in a generation. Each element is described by several images of the same subject, and you refer to it in the prompt with `,_jsx(_components.code,{children:`@name`}),` — so a single prompt can direct several known subjects without ambiguity.`]}),`\n`,_jsxs(_components.p,{children:[`Supported by `,_jsx(_components.code,{children:`kling-v3-pro`}),` and `,_jsx(_components.code,{children:`kling-v3-standard`}),`, up to `,_jsx(_components.strong,{children:`4 elements`}),` per request.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v3-pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@sarah picks up @mug and takes a slow sip, then smiles at the camera.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/kitchen.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"elements\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sarah\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/sarah-frontal.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/sarah-profile.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"asset_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"662f8c1d3a4b5e6f70123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"asset_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"662f8c1d3a4b5e6f70123457\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Rules`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Each element needs `,_jsx(_components.strong,{children:`at least 2 images`}),` of the same subject: the first is the frontal view, the others are additional angles (4 max).`]}),`\n`,_jsxs(_components.li,{children:[`The prompt `,_jsx(_components.strong,{children:`must reference every element`}),` as `,_jsx(_components.code,{children:`@name`}),`. An unreferenced element is ignored by the model, so the request is rejected instead of burning credits.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`name`}),` accepts letters, digits and underscores only (32 characters max), must be unique within the request, and cannot be `,_jsx(_components.code,{children:`refN`}),` or `,_jsx(_components.code,{children:`elementN`}),` — those are reserved for the internal rewriting of prompt references.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`first_frame`}),` is required whenever you send elements.`]}),`\n`,_jsxs(_components.li,{children:[`Element images do `,_jsx(_components.strong,{children:`not`}),` count toward the model’s `,_jsx(_components.code,{children:`references`}),` / named-slot limits.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Element names are yours: Hoox rewrites them into the positional placeholders the provider expects before submitting, so `,_jsx(_components.code,{children:`@sarah`}),` and `,_jsx(_components.code,{children:`@mug`}),` are what you write and what you read back in your own code.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`asset_ids`,type:`array`,id:`param-asset-ids`,children:_jsxs(_components.p,{children:[`IDs of the created temporary assets. One ID per generation. Use these with `,_jsx(_components.a,{href:`/api-reference/assets/status`,children:_jsx(_components.code,{children:`/asset/status/{assetId}`})}),`.`]})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`generating`}),` on success.`]})}),`\n`,_jsx(ResponseField,{name:`count`,type:`number`,id:`param-count`,children:_jsx(_components.p,{children:`Number of generations launched.`})}),`\n`,_jsx(ResponseField,{name:`cost_per_generation`,type:`number`,id:`param-cost-per-generation`,children:_jsx(_components.p,{children:`Credits charged for one generation.`})}),`\n`,_jsx(ResponseField,{name:`total_cost`,type:`number`,id:`param-total-cost`,children:_jsxs(_components.p,{children:[`Total credits debited (`,_jsx(_components.code,{children:`cost_per_generation × count`}),`).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The endpoint returns as soon as the temp assets are created — the actual generation runs in the background and typically completes in 10–120 seconds depending on the model.`}),`\n`,_jsxs(_components.li,{children:[`If you provide a `,_jsx(_components.code,{children:`webhook_url`}),`, it will be called when generation completes (success or failure).`]}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.a,{href:`/api-reference/assets/models`,children:`List Models`}),` and `,_jsx(_components.a,{href:`/api-reference/assets/model`,children:`Get Model`}),` to discover the parameters each model accepts, including named input slots and element support.`]}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.a,{href:`/api-reference/assets/pricing`,children:`Get Pricing`}),` for a dry-run cost estimate before submitting.`]}),`\n`,_jsxs(_components.li,{children:[`When a generation is derived from an existing asset (edit, animation, upscale, restyle, variation), set `,_jsx(_components.code,{children:`parent_media_id`}),` to the source asset’s id so the dashboard keeps the full history chain. Pass the source as a reference for the model `,_jsx(_components.strong,{children:`and`}),` as `,_jsx(_components.code,{children:`parent_media_id`}),` for the lineage.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Submit Asset Generation","api":"POST https://app.hoox.video/api/public/v1/asset/start","description":"Start generating one or more images or videos with any supported model","href":"/api-reference/assets/start"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`Submits an asset (image or video) generation job and returns immediately with the IDs of the temporary assets being generated. Generations run in the background — poll `,_jsx(_components.a,{href:`/api-reference/assets/status`,children:_jsx(_components.code,{children:`/asset/status/{assetId}`})}),` to track progress.`]}),`\n`,_jsx(_components.p,{children:`Credits are debited up front based on the model and the parameters you send. Failed generations are automatically refunded.`}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This endpoint requires API key authentication. Include your API key in the `,_jsx(_components.code,{children:`Authorization`}),` header.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`image`}),` or `,_jsx(_components.code,{children:`video`}),`. Must match the type of the model you select.`]})}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`The model identifier. See `,_jsx(_components.a,{href:`/api-reference/assets/models`,children:`List Models`}),` for available identifiers and capabilities.`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsxs(_components.p,{children:[`Text prompt describing the asset to generate. Some models cap the prompt length — check the model page. Promptless models such as `,_jsx(_components.a,{href:`/api-reference/assets/video/hoox/hoox-upscale`,children:_jsx(_components.code,{children:`hoox-upscale`})}),` do not take one.`]})}),`\n`,_jsxs(ParamField,{body:`references`,type:`array`,id:`param-references`,children:[_jsx(_components.p,{children:`Reference media for the model. Required for image-to-video, motion control, edit, and reference-based models.`}),_jsxs(_components.p,{children:[`Models with named input slots (e.g. `,_jsx(_components.code,{children:`kling-motion-control`}),`, `,_jsx(_components.code,{children:`kling-v3-pro`}),`) expect `,_jsx(_components.strong,{children:`dedicated top-level fields`}),` instead — see `,_jsx(_components.a,{href:`#named-input-slots`,children:`Named input slots`}),` below. They still accept a `,_jsx(_components.code,{children:`references`}),` array, mapped onto their slots in order, so you never have to migrate an existing call.`]}),_jsxs(_components.p,{children:[`Each item must have `,_jsx(_components.strong,{children:`exactly one`}),` of:`]}),_jsxs(Expandable,{title:`item properties`,children:[_jsxs(ParamField,{body:`url`,type:`string`,id:`param-url`,children:[_jsx(_components.p,{children:`Direct publicly accessible URL of the reference media file. Supported formats:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Images: `,_jsx(_components.code,{children:`.jpg`}),` / `,_jsx(_components.code,{children:`.jpeg`}),` / `,_jsx(_components.code,{children:`.png`}),` / `,_jsx(_components.code,{children:`.webp`})]}),`\n`,_jsxs(_components.li,{children:[`Videos: `,_jsx(_components.code,{children:`.mp4`}),` / `,_jsx(_components.code,{children:`.mov`}),` / `,_jsx(_components.code,{children:`.webm`}),` / `,_jsx(_components.code,{children:`.m4v`})]}),`\n`]})]}),_jsx(ParamField,{body:`asset_id`,type:`string`,id:`param-asset-id`,children:_jsxs(_components.p,{children:[`ID of an existing asset in your Hoox space media library (as returned by `,_jsx(_components.code,{children:`/asset/start`}),` or `,_jsx(_components.code,{children:`/asset/status`}),`).\nThe server resolves the URL automatically — no need to re-upload.`]})}),_jsx(ParamField,{body:`avatar_id`,type:`string`,id:`param-avatar-id`,children:_jsx(_components.p,{children:`ID of an avatar defined in your Hoox space. The avatar’s thumbnail image is used as the reference.`})})]})]}),`\n`,_jsxs(ParamField,{body:`elements`,type:`array`,id:`param-elements`,children:[_jsxs(_components.p,{children:[`Named characters or objects to inject in the generation, each described by several images of the same subject and referenced in the prompt as `,_jsx(_components.code,{children:`@name`}),`. Only for models that expose an element capability (`,_jsx(_components.code,{children:`kling-v3-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-standard`}),`) — see `,_jsx(_components.a,{href:`#elements`,children:`Elements`}),` below.`]}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsxs(_components.p,{children:[`Alias used in the prompt as `,_jsx(_components.code,{children:`@name`}),`. Letters, digits and underscores only, 32 characters max.`]})}),_jsx(ParamField,{body:`images`,type:`array`,required:true,id:`param-images`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`At least 2`}),` images of the same subject — frontal view first, then other angles. Each item takes exactly one of `,_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`asset_id`}),`, or `,_jsx(_components.code,{children:`avatar_id`}),`, like a `,_jsx(_components.code,{children:`references`}),` item.`]})})]})]}),`\n`,_jsx(ParamField,{body:`generation_count`,type:`number`,default:`1`,id:`param-generation-count`,children:_jsx(_components.p,{children:`Number of variations to generate from the same prompt. Must be between 1 and 4. Credits are debited per generation.`})}),`\n`,_jsx(ParamField,{body:`aspect_ratio`,type:`string`,id:`param-aspect-ratio`,children:_jsx(_components.p,{children:`One of the model’s supported aspect ratios. Defaults to the model’s default if omitted.`})}),`\n`,_jsx(ParamField,{body:`resolution`,type:`string`,id:`param-resolution`,children:_jsx(_components.p,{children:`One of the model’s supported resolutions. Defaults to the model’s default if omitted.`})}),`\n`,_jsx(ParamField,{body:`duration`,type:`integer`,id:`param-duration`,children:_jsxs(_components.p,{children:[`Video duration `,_jsx(_components.strong,{children:`in seconds`}),` (e.g. `,_jsx(_components.code,{children:`8`}),`). Use one of the model’s supported durations — see the `,_jsx(_components.code,{children:`duration`}),` enum in the model’s `,_jsx(_components.code,{children:`input_schema`}),` from `,_jsx(_components.a,{href:`/api-reference/assets/model`,children:`Get Model`}),`. The server converts it to the model’s expected format automatically.`]})}),`\n`,_jsx(ParamField,{body:`model_settings`,type:`object`,id:`param-model-settings`,children:_jsxs(_components.p,{children:[`Per-model toggles such as `,_jsx(_components.code,{children:`generateAudio`}),`, `,_jsx(_components.code,{children:`camera_fixed`}),`, `,_jsx(_components.code,{children:`quality`}),`. See the model page for available keys.`]})}),`\n`,_jsxs(ParamField,{body:`parent_media_id`,type:`string`,id:`param-parent-media-id`,children:[_jsxs(_components.p,{children:[`ID of the `,_jsx(_components.strong,{children:`source asset this generation is derived from`}),` — an edit, animation (image-to-video), upscale, restyle, or variation. Set it whenever the output comes from an existing asset: it links the new asset to its source in the dashboard’s `,_jsx(_components.strong,{children:`history tree`}),` so the full edit chain stays visible.`]}),_jsxs(_components.p,{children:[`This is separate from the model input: keep passing the source as a reference (`,_jsx(_components.code,{children:`asset_id`}),` / named slot like `,_jsx(_components.code,{children:`source_video`}),`) so the model receives it, `,_jsx(_components.strong,{children:`and`}),` set `,_jsx(_components.code,{children:`parent_media_id`}),` to the same source id to record the lineage.`]}),_jsxs(_components.p,{children:[`When set, the generated assets also inherit the parent’s folder, and `,_jsx(_components.code,{children:`folder_id`}),` is ignored.`]})]}),`\n`,_jsx(ParamField,{body:`folder_id`,type:`string`,id:`param-folder-id`,children:_jsxs(_components.p,{children:[`ID of an existing `,_jsx(_components.strong,{children:`asset folder`}),` to place the generated asset(s) into. Create one with `,_jsx(_components.a,{href:`/api-reference/folders/create`,children:`Create Folder`}),` (`,_jsx(_components.code,{children:`type: \"assets\"`}),`) or list existing ones with `,_jsx(_components.a,{href:`/api-reference/folders/list`,children:`List Folders`}),`. When working on a project or generating a batch, group its outputs in a dedicated folder so they stay organized and easy to find in the dashboard.`]})}),`\n`,_jsx(ParamField,{body:`avatar_description`,type:`string`,id:`param-avatar-description`,children:_jsx(_components.p,{children:`For Seedance 2.0 UGC only — appearance and actions of the subject (separate from the script).`})}),`\n`,_jsx(ParamField,{body:`webhook_url`,type:`string`,id:`param-webhook-url`,children:_jsx(_components.p,{children:`URL that will receive a notification when generation completes (success or failure).`})}),`\n`,_jsx(ParamField,{body:`file_name`,type:`string`,id:`param-file-name`,children:_jsxs(_components.p,{children:[`Predefined base file name for the produced asset, without extension (e.g. `,_jsx(_components.code,{children:`summer-campaign-hero`}),`). It is slugified server-side (lowercased, non-alphanumeric characters replaced by hyphens) and the correct extension is appended automatically. When omitted, a descriptive name is generated from the prompt.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`named-input-slots`,children:`Named input slots`}),`\n`,_jsxs(_components.p,{children:[`Some models require specific media types in a fixed order — for example, a subject image `,_jsx(_components.strong,{children:`and`}),` a motion reference video. For these models, instead of a generic `,_jsx(_components.code,{children:`references[]`}),` array, you pass named top-level properties that make the intent explicit.`]}),`\n`,_jsxs(_components.p,{children:[`The named properties for a given model are listed on its model page and in the `,_jsx(_components.code,{children:`input_schema`}),` field returned by `,_jsx(_components.a,{href:`/api-reference/assets/model`,children:_jsx(_components.code,{children:`GET /models/{name}`})}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Each named slot accepts the same object shape as a `,_jsx(_components.code,{children:`references[]`}),` item: exactly one of `,_jsx(_components.code,{children:`url`}),`, `,_jsx(_components.code,{children:`asset_id`}),`, or `,_jsx(_components.code,{children:`avatar_id`}),`. Slots are ordered — when a slot is optional, you may omit it, but you cannot provide a later slot while leaving an earlier one empty (e.g. `,_jsx(_components.code,{children:`last_frame`}),` requires `,_jsx(_components.code,{children:`first_frame`}),`).`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Models with named slots:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`Named slots`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kling-pro`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`start_image`}),` (optional) + `,_jsx(_components.code,{children:`end_image`}),` (optional)`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`kling-v3-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-standard`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`first_frame`}),` (optional) + `,_jsx(_components.code,{children:`last_frame`}),` (optional)`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`kling-motion-control`}),`, `,_jsx(_components.code,{children:`kling-motion-control-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-motion-pro`}),`, `,_jsx(_components.code,{children:`kling-v3-motion-standard`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`start_image`}),` + `,_jsx(_components.code,{children:`motion_video`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`kling-o3-edit-pro`}),`, `,_jsx(_components.code,{children:`kling-o3-edit-standard`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`source_video`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`flux-3-video-extend`}),`, `,_jsx(_components.code,{children:`flux-3-video-edit`}),`, `,_jsx(_components.code,{children:`grok-imagine-video-edit`}),`, `,_jsx(_components.code,{children:`bytedance-upscaler`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`source_video`})})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Passing a `,_jsx(_components.code,{children:`references`}),` array to one of these models is still supported: the items are mapped onto the slots above in order (first item → first slot, and so on). Named fields are clearer and are what the model pages document, but existing calls keep working.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`elements`,children:`Elements`}),`\n`,_jsxs(_components.p,{children:[`Elements let you inject `,_jsx(_components.strong,{children:`named characters or objects`}),` in a generation. Each element is described by several images of the same subject, and you refer to it in the prompt with `,_jsx(_components.code,{children:`@name`}),` — so a single prompt can direct several known subjects without ambiguity.`]}),`\n`,_jsxs(_components.p,{children:[`Supported by `,_jsx(_components.code,{children:`kling-v3-pro`}),` and `,_jsx(_components.code,{children:`kling-v3-standard`}),`, up to `,_jsx(_components.strong,{children:`4 elements`}),` per request.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kling-v3-pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@sarah picks up @mug and takes a slow sip, then smiles at the camera.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_frame\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/kitchen.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"elements\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sarah\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/sarah-frontal.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/sarah-profile.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"asset_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"662f8c1d3a4b5e6f70123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"asset_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"662f8c1d3a4b5e6f70123457\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Rules`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Each element needs `,_jsx(_components.strong,{children:`at least 2 images`}),` of the same subject: the first is the frontal view, the others are additional angles (4 max).`]}),`\n`,_jsxs(_components.li,{children:[`The prompt `,_jsx(_components.strong,{children:`must reference every element`}),` as `,_jsx(_components.code,{children:`@name`}),`. An unreferenced element is ignored by the model, so the request is rejected instead of burning credits.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`name`}),` accepts letters, digits and underscores only (32 characters max), must be unique within the request, and cannot be `,_jsx(_components.code,{children:`refN`}),` or `,_jsx(_components.code,{children:`elementN`}),` — those are reserved for the internal rewriting of prompt references.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`first_frame`}),` is required whenever you send elements.`]}),`\n`,_jsxs(_components.li,{children:[`Element images do `,_jsx(_components.strong,{children:`not`}),` count toward the model’s `,_jsx(_components.code,{children:`references`}),` / named-slot limits.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Element names are yours: Hoox rewrites them into the positional placeholders the provider expects before submitting, so `,_jsx(_components.code,{children:`@sarah`}),` and `,_jsx(_components.code,{children:`@mug`}),` are what you write and what you read back in your own code.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`asset_ids`,type:`array`,id:`param-asset-ids`,children:_jsxs(_components.p,{children:[`IDs of the created temporary assets. One ID per generation. Use these with `,_jsx(_components.a,{href:`/api-reference/assets/status`,children:_jsx(_components.code,{children:`/asset/status/{assetId}`})}),`.`]})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`generating`}),` on success.`]})}),`\n`,_jsx(ResponseField,{name:`count`,type:`number`,id:`param-count`,children:_jsx(_components.p,{children:`Number of generations launched.`})}),`\n`,_jsx(ResponseField,{name:`cost_per_generation`,type:`number`,id:`param-cost-per-generation`,children:_jsx(_components.p,{children:`Credits charged for one generation.`})}),`\n`,_jsx(ResponseField,{name:`total_cost`,type:`number`,id:`param-total-cost`,children:_jsxs(_components.p,{children:[`Total credits debited (`,_jsx(_components.code,{children:`cost_per_generation × count`}),`).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Text-to-video (no references)`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"veo-3.1-lite\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"A cinematic shot of a fox running through autumn leaves at sunrise.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"9:16\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 8,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Text-to-image into a folder`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"image\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"flux-2-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Product shot of a ceramic mug on a marble counter.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"1:1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"folder_id\": \"662f8c1d3a4b5e6f70123456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Image-to-video (URL reference)`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"grok-imagine-video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"The subject walks forward confidently.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"references\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"url\": \"https://example.com/subject.jpg\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 6,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resolution\": \"720p\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Image-to-video (existing Hoox asset)`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"grok-imagine-video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"The subject walks forward confidently.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"references\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 6`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Animate an existing asset (keeps history)`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Derive a video from an existing image asset. The asset is passed BOTH as the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# model reference AND as parent_media_id, so the dashboard links them in the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# history tree (and the video inherits the image's folder).`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"grok-imagine-video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"The subject turns slowly toward the camera.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"references\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"parent_media_id\": \"662f8c1d3a4b5e6f70123456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Image-to-video (Hoox avatar)`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"kling-v3-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"The character smiles and waves at the camera.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"references\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"avatar_id\": \"6630000000000000deadbeef\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Motion control (named slots)`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"kling-v3-motion-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Apply the motion to the subject naturally.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"start_image\": { \"url\": \"https://example.com/subject.jpg\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"motion_video\": { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Flux 3 keyframes (3+ references)`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"flux-3-video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"One continuous shot moving through the three scenes.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"references\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"url\": \"https://example.com/keyframe-1.jpg\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"url\": \"https://example.com/keyframe-2.jpg\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"url\": \"https://example.com/keyframe-3.jpg\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"16:9\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 10`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kling 3 first / last frame`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"kling-v3-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"The camera pushes in slowly as the scene transforms.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"first_frame\": { \"url\": \"https://example.com/frame-start.jpg\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"last_frame\": { \"url\": \"https://example.com/frame-end.jpg\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"9:16\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Kling 3 elements (@mentions)`,numberOfLines:`26`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"kling-v3-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"@sarah walks into the kitchen and picks up @mug, then smiles at the camera.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"first_frame\": { \"url\": \"https://example.com/kitchen.jpg\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"elements\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"sarah\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"images\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"url\": \"https://example.com/sarah-frontal.jpg\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"url\": \"https://example.com/sarah-profile.jpg\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"mug\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"images\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"asset_id\": \"662f8c1d3a4b5e6f70123457\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Video edit (named slot)`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/asset/start\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"video\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"kling-o3-edit-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"Change the background to a tropical beach.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"source_video\": { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`201 Created`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"asset_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"662f8c1d3a4b5e6f70123456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"generating\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cost_per_generation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`60`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_cost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`60`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 Validation Failed`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"missing_field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"prompt is required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 Invalid Elements`,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"elements[0].images requires at least 2 images of the same subject (frontal view first, then other angles). Provided: 1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"elements[0].images\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid_value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The prompt must reference elements[1] as @mug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"elements[1].name\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`402 Insufficient Credits`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Insufficient credits. Required: 60, Available: 12\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"not_eligible\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Insufficient credits. Required: 60, Available: 12\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`403 Plan Required`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This model requires one of the following plans: PRO, ENTREPRISE.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"not_eligible\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This model requires one of the following plans: PRO, ENTREPRISE.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The endpoint returns as soon as the temp assets are created — the actual generation runs in the background and typically completes in 10–120 seconds depending on the model.`}),`\n`,_jsxs(_components.li,{children:[`If you provide a `,_jsx(_components.code,{children:`webhook_url`}),`, it will be called when generation completes (success or failure).`]}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.a,{href:`/api-reference/assets/models`,children:`List Models`}),` and `,_jsx(_components.a,{href:`/api-reference/assets/model`,children:`Get Model`}),` to discover the parameters each model accepts, including named input slots and element support.`]}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.a,{href:`/api-reference/assets/pricing`,children:`Get Pricing`}),` for a dry-run cost estimate before submitting.`]}),`\n`,_jsxs(_components.li,{children:[`When a generation is derived from an existing asset (edit, animation, upscale, restyle, variation), set `,_jsx(_components.code,{children:`parent_media_id`}),` to the source asset’s id so the dashboard keeps the full history chain. Pass the source as a reference for the model `,_jsx(_components.strong,{children:`and`}),` as `,_jsx(_components.code,{children:`parent_media_id`}),` for the lineage.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Submit Asset Generation","api":"POST https://app.hoox.video/api/public/v1/asset/start","description":"Start generating one or more images or videos with any supported model","href":"/api-reference/assets/start"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Named input slots","slug":"named-input-slots","depth":2,"children":[]},{"title":"Elements","slug":"elements","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Text-to-video (no references)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"veo-3.1-lite\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"A cinematic shot of a fox running through autumn leaves at sunrise.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"9:16\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 8,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"720p\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Text-to-image into a folder","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"image\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"flux-2-pro\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"Product shot of a ceramic mug on a marble counter.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"1:1\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"folder_id\": \"662f8c1d3a4b5e6f70123456\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Image-to-video (URL reference)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"grok-imagine-video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"The subject walks forward confidently.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"references\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"url\": \"https://example.com/subject.jpg\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 6,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"resolution\": \"720p\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Image-to-video (existing Hoox asset)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"grok-imagine-video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"The subject walks forward confidently.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"references\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 6\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Animate an existing asset (keeps history)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># Derive a video from an existing image asset. The asset is passed BOTH as the\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># model reference AND as parent_media_id, so the dashboard links them in the\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># history tree (and the video inherits the image's folder).\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"grok-imagine-video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"The subject turns slowly toward the camera.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"references\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"parent_media_id\": \"662f8c1d3a4b5e6f70123456\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Image-to-video (Hoox avatar)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"kling-v3-pro\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"The character smiles and waves at the camera.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"references\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"avatar_id\": \"6630000000000000deadbeef\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Motion control (named slots)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"kling-v3-motion-pro\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"Apply the motion to the subject naturally.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"start_image\": { \"url\": \"https://example.com/subject.jpg\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"motion_video\": { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Flux 3 keyframes (3+ references)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"flux-3-video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"One continuous shot moving through the three scenes.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"references\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"url\": \"https://example.com/keyframe-1.jpg\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"url\": \"https://example.com/keyframe-2.jpg\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"url\": \"https://example.com/keyframe-3.jpg\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"16:9\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 10\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Kling 3 first / last frame","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"kling-v3-pro\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"The camera pushes in slowly as the scene transforms.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"first_frame\": { \"url\": \"https://example.com/frame-start.jpg\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"last_frame\": { \"url\": \"https://example.com/frame-end.jpg\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"9:16\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Kling 3 elements (@mentions)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"26\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"kling-v3-pro\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"@sarah walks into the kitchen and picks up @mug, then smiles at the camera.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"first_frame\": { \"url\": \"https://example.com/kitchen.jpg\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"elements\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"sarah\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"images\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"url\": \"https://example.com/sarah-frontal.jpg\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"url\": \"https://example.com/sarah-profile.jpg\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"mug\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"images\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"asset_id\": \"662f8c1d3a4b5e6f70123457\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Video edit (named slot)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/asset/start\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\": \"video\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"kling-o3-edit-pro\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"Change the background to a tropical beach.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"source_video\": { \"asset_id\": \"662f8c1d3a4b5e6f70123456\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201 Created","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"asset_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"662f8c1d3a4b5e6f70123456\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"generating\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"cost_per_generation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">60\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total_cost\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">60\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 Validation Failed","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"missing_field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"prompt is required\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 Invalid Elements","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"elements[0].images requires at least 2 images of the same subject (frontal view first, then other angles). Provided: 1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"elements[0].images\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid_value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"The prompt must reference elements[1] as @mug\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"field\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"elements[1].name\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"402 Insufficient Credits","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Insufficient credits. Required: 60, Available: 12\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"not_eligible\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Insufficient credits. Required: 60, Available: 12\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"403 Plan Required","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"This model requires one of the following plans: PRO, ENTREPRISE.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"not_eligible\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"This model requires one of the following plans: PRO, ENTREPRISE.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Submit Asset Generation","path":"/api/public/v1/asset/start","servers":[{"url":"https://app.hoox.video"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"type":[{"type":"string","description":"`image` or `video` . Must match the type of the model you select.","required":true}],"model":[{"type":"string","description":"The model identifier. See List Models for available identifiers and capabilities.","required":true}],"prompt":[{"type":"string","description":"Text prompt describing the asset to generate. Some models cap the prompt length — check the model page. Promptless models such as `hoox-upscale` do not take one.","required":true}],"references":[{"type":"array","items":[{"type":"object","properties":{"url":[{"type":"string","description":"Direct publicly accessible URL of the reference media file. Supported formats: Images: `.jpg` / `.jpeg` / `.png` / `.webp` Videos: `.mp4` / `.mov` / `.webm` / `.m4v`"}],"asset_id":[{"type":"string","description":"ID of an existing asset in your Hoox space media library (as returned by `/asset/start` or `/asset/status` ). The server resolves the URL automatically — no need to re-upload."}],"avatar_id":[{"type":"string","description":"ID of an avatar defined in your Hoox space. The avatar’s thumbnail image is used as the reference."}]}}],"description":"Reference media for the model. Required for image-to-video, motion control, edit, and reference-based models. Models with named input slots (e.g. `kling-motion-control` , `kling-v3-pro` ) expect dedicated top-level fields instead — see Named input slots below. They still accept a `references` array, mapped onto their slots in order, so you never have to migrate an existing call. Each item must have exactly one of:"}],"elements":[{"type":"array","items":[{"type":"object","properties":{"name":[{"type":"string","description":"Alias used in the prompt as `@name` . Letters, digits and underscores only, 32 characters max.","required":true}],"images":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"At least 2 images of the same subject — frontal view first, then other angles. Each item takes exactly one of `url` , `asset_id` , or `avatar_id` , like a `references` item.","required":true}]}}],"description":"Named characters or objects to inject in the generation, each described by several images of the same subject and referenced in the prompt as `@name` . Only for models that expose an element capability ( `kling-v3-pro` , `kling-v3-standard` ) — see Elements below."}],"generation_count":[{"type":"number","description":"Number of variations to generate from the same prompt. Must be between 1 and 4. Credits are debited per generation."}],"aspect_ratio":[{"type":"string","description":"One of the model’s supported aspect ratios. Defaults to the model’s default if omitted."}],"resolution":[{"type":"string","description":"One of the model’s supported resolutions. Defaults to the model’s default if omitted."}],"duration":[{"type":"integer","description":"Video duration in seconds (e.g. `8` ). Use one of the model’s supported durations — see the `duration` enum in the model’s `input_schema` from Get Model . The server converts it to the model’s expected format automatically."}],"model_settings":[{"type":"object","properties":{},"description":"Per-model toggles such as `generateAudio` , `camera_fixed` , `quality` . See the model page for available keys."}],"parent_media_id":[{"type":"string","description":"ID of the source asset this generation is derived from — an edit, animation (image-to-video), upscale, restyle, or variation. Set it whenever the output comes from an existing asset: it links the new asset to its source in the dashboard’s history tree so the full edit chain stays visible. This is separate from the model input: keep passing the source as a reference ( `asset_id` / named slot like `source_video` ) so the model receives it, and set `parent_media_id` to the same source id to record the lineage. When set, the generated assets also inherit the parent’s folder, and `folder_id` is ignored."}],"folder_id":[{"type":"string","description":"ID of an existing asset folder to place the generated asset(s) into. Create one with Create Folder ( `type: \"assets\"` ) or list existing ones with List Folders . When working on a project or generating a batch, group its outputs in a dedicated folder so they stay organized and easy to find in the dashboard."}],"avatar_description":[{"type":"string","description":"For Seedance 2.0 UGC only — appearance and actions of the subject (separate from the script)."}],"webhook_url":[{"type":"string","description":"URL that will receive a notification when generation completes (success or failure)."}],"file_name":[{"type":"string","description":"Predefined base file name for the produced asset, without extension (e.g. `summer-campaign-hero` ). It is slugified server-side (lowercased, non-alphanumeric characters replaced by hyphens) and the correct extension is appended automatically. When omitted, a descriptive name is generated from the prompt."}]}}],"examples":{"example":{"value":{"type":"\u003cstring>","model":"\u003cstring>","prompt":"\u003cstring>","references":[{"url":"\u003cstring>","asset_id":"\u003cstring>","avatar_id":"\u003cstring>"}],"elements":[{"name":"\u003cstring>","images":[{}]}],"generation_count":123,"aspect_ratio":"\u003cstring>","resolution":"\u003cstring>","duration":123,"model_settings":{},"parent_media_id":"\u003cstring>","folder_id":"\u003cstring>","avatar_description":"\u003cstring>","webhook_url":"\u003cstring>","file_name":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"asset_ids":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"IDs of the created temporary assets. One ID per generation. Use these with `/asset/status/{assetId}` ."}],"status":[{"type":"string","description":"Always `generating` on success."}],"count":[{"type":"number","description":"Number of generations launched."}],"cost_per_generation":[{"type":"number","description":"Credits charged for one generation."}],"total_cost":[{"type":"number","description":"Total credits debited ( `cost_per_generation × count` )."}]}}],"examples":{"example":{"value":{"asset_ids":[{}],"status":"\u003cstring>","count":123,"cost_per_generation":123,"total_cost":123}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"hoox-55eb2ddf","siteName":"Hoox API Documentation","title":"Submit Asset Generation - Hoox API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-11T01:16:33.936Z","originalFileLocation":"api-reference/assets/start.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Start generating one or more images or videos with any supported model\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hoox API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://assets.hoox.video/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://assets.hoox.video/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://assets.hoox.video/favicon.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://assets.hoox.video/favicon.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Submit Asset Generation - Hoox API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Start generating one or more images or videos with any supported model\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hoox API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hoox.video/api-reference/assets/start\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hoox-55eb2ddf.mintlify.site/_mintlify/api/og/v2?division=Assets\u0026amp;title=Submit+Asset+Generation\u0026amp;description=Start+generating+one+or+more+images+or+videos+with+any+supported+model\u0026amp;theme=ca55c363cf035cd8fc1a8804\u0026amp;signature=e090e0c23df90ca9d757ac4cca2f3121a638cfea0b79037f02b5ce69db88c831\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Submit Asset Generation - Hoox API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Start generating one or more images or videos with any supported model\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hoox-55eb2ddf.mintlify.site/_mintlify/api/og/v2?division=Assets\u0026amp;title=Submit+Asset+Generation\u0026amp;description=Start+generating+one+or+more+images+or+videos+with+any+supported+model\u0026amp;theme=ca55c363cf035cd8fc1a8804\u0026amp;signature=e090e0c23df90ca9d757ac4cca2f3121a638cfea0b79037f02b5ce69db88c831\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/hoox-55eb2ddf/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hoox API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF3270\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hoox.video/api-reference/assets/start\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/assets/start.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hoox.video/#organization\",\"name\":\"Hoox API Documentation\",\"url\":\"https://docs.hoox.video\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets.hoox.video/logo-noir.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hoox.video#website\",\"name\":\"Hoox API Documentation\",\"url\":\"https://docs.hoox.video\",\"publisher\":{\"@id\":\"https://docs.hoox.video/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hoox.video/api-reference/assets/start#webpage\",\"url\":\"https://docs.hoox.video/api-reference/assets/start\",\"name\":\"Submit Asset Generation\",\"description\":\"Start generating one or more images or videos with any supported model\",\"dateModified\":\"2026-10-11T01:16:33.936Z\",\"isPartOf\":{\"@id\":\"https://docs.hoox.video#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hoox.video/api-reference/assets/start#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hoox.video/api-reference/assets/start#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hoox API Documentation\",\"item\":\"https://docs.hoox.video\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Submit Asset Generation\",\"item\":\"https://docs.hoox.video/api-reference/assets/start\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hoox.video/api-reference/assets/start#apireference\",\"headline\":\"Submit Asset Generation\",\"name\":\"Submit Asset Generation\",\"description\":\"Start generating one or more images or videos with any supported model\",\"url\":\"https://docs.hoox.video/api-reference/assets/start\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hoox.video/api-reference/assets/start#webpage\"},\"dateModified\":\"2026-10-11T01:16:33.936Z\",\"publisher\":{\"@id\":\"https://docs.hoox.video/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hoox.video#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hoox API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hoox API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/assets/start.md","siteName":"Hoox API Documentation","nav":{"global":{"anchors":[{"anchor":"Application","icon":"house","href":"https://app.hoox.video"},{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/jGaPsGGDpC"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Script","pages":[{"title":"Generate Script","api":"POST https://app.hoox.video/api/public/v1/script/generate","href":"/api-reference/script/generate"}]},{"group":"Generation","pages":[{"title":"Start Video Generation","api":"POST https://app.hoox.video/api/public/v1/generation/start","href":"/api-reference/generation/start"},{"title":"Check Generation Status","api":"GET https://app.hoox.video/api/public/v1/generation/status/{jobId}","href":"/api-reference/generation/status"},{"title":"Duplicate Video","api":"POST https://app.hoox.video/api/public/v1/video/duplicate","href":"/api-reference/video/duplicate"}]},{"group":"Export","pages":[{"title":"Start Video Export","api":"POST https://app.hoox.video/api/public/v1/export/start","href":"/api-reference/export/start"},{"title":"Check Export Status","api":"GET https://app.hoox.video/api/public/v1/export/status/{job_id}","href":"/api-reference/export/status"}]},{"group":"Avatar","pages":[{"title":"Create Avatar","api":"POST https://app.hoox.video/api/public/v1/avatar/create","href":"/api-reference/avatars/create"},{"title":"Edit Avatar Look","api":"POST https://app.hoox.video/api/public/v1/avatar/edit","href":"/api-reference/avatars/edit"},{"title":"Avatar Status","api":"GET https://app.hoox.video/api/public/v1/avatar/status","href":"/api-reference/avatars/status"},{"title":"Get Avatar","api":"GET https://app.hoox.video/api/public/v1/avatar/{avatar_id}","href":"/api-reference/avatars/get"},{"title":"Get Avatar Look","api":"GET https://app.hoox.video/api/public/v1/avatar/{avatar_id}/look/{look_id}","href":"/api-reference/avatars/get-look"},{"title":"List Avatars","api":"GET https://app.hoox.video/api/public/v1/avatar/list","href":"/api-reference/avatars/list"}]},{"group":"Voices","pages":[{"title":"Get Voice","api":"GET https://app.hoox.video/api/public/v1/voice/{id}","href":"/api-reference/voices/get"},{"title":"List Voices","api":"GET https://app.hoox.video/api/public/v1/voice/list","href":"/api-reference/voices/list"}]},{"group":"Folder","pages":[{"title":"Create Folder","api":"POST https://app.hoox.video/api/public/v1/folder/create","href":"/api-reference/folders/create"},{"title":"List Folders","api":"GET https://app.hoox.video/api/public/v1/folder/list","description":"List the folders in your space, optionally filtered by type","href":"/api-reference/folders/list"}]},{"group":"Assets","pages":[{"title":"Submit Asset Generation","api":"POST https://app.hoox.video/api/public/v1/asset/start","href":"/api-reference/assets/start"},{"title":"Check Asset Status","api":"GET https://app.hoox.video/api/public/v1/asset/status/{assetId}","description":"Retrieve the current generation status and result of a previously submitted asset","href":"/api-reference/assets/status"},{"title":"List Asset Models","api":"GET https://app.hoox.video/api/public/v1/asset/models","href":"/api-reference/assets/models"},{"title":"Get Asset Model","api":"GET https://app.hoox.video/api/public/v1/asset/models/{name}","href":"/api-reference/assets/model"},{"title":"Get Asset Pricing","api":"POST https://app.hoox.video/api/public/v1/asset/pricing","href":"/api-reference/assets/pricing"},{"group":"Image models","pages":[{"group":"Google Gemini","pages":[{"title":"Nano Banana 2","href":"/api-reference/assets/image/gemini/nano-banana-2"},{"title":"Nano Banana 2.1","href":"/api-reference/assets/image/gemini/nano-banana-2.1"},{"title":"Nano Banana Lite","href":"/api-reference/assets/image/gemini/nano-banana-lite"},{"title":"Nano Banana Pro","href":"/api-reference/assets/image/gemini/nano-banana-pro"}]},{"group":"OpenAI","pages":[{"title":"GPT Image 2","href":"/api-reference/assets/image/openai/gpt-image-2"},{"title":"GPT Image 2.5 Flare","href":"/api-reference/assets/image/openai/gpt-image-2.5-flare"},{"title":"GPT Image 2.5 Sunburst","href":"/api-reference/assets/image/openai/gpt-image-2.5-sunburst"}]},{"group":"ByteDance","pages":[{"title":"Seedream 4.5","href":"/api-reference/assets/image/bytedance/seedream-4.5"},{"title":"Seedream 5 Flash","href":"/api-reference/assets/image/bytedance/seedream-5-flash"},{"title":"Seedream 5 Lite","href":"/api-reference/assets/image/bytedance/seedream-5-lite"}]},{"group":"Flux","pages":[{"title":"Flux 2 Max","href":"/api-reference/assets/image/flux/flux-2-max"},{"title":"Flux 2 Pro","href":"/api-reference/assets/image/flux/flux-2-pro"},{"title":"Flux 3","href":"/api-reference/assets/image/flux/flux-3-image"}]},{"group":"Ideogram","pages":[{"title":"Ideogram 4.5","href":"/api-reference/assets/image/ideogram/ideogram-4.5"}]},{"group":"xAI Grok","pages":[{"title":"Grok Image","href":"/api-reference/assets/image/xai/grok-imagine-image"}]},{"group":"Meta","pages":[{"title":"Muse Image","href":"/api-reference/assets/image/meta/muse-image"}]},{"group":"Z-Image","pages":[{"title":"Z-Image Turbo","href":"/api-reference/assets/image/zimage/z-image-turbo"}]}]},{"group":"Video models","pages":[{"group":"Hoox","pages":[{"title":"Hoox Upscale","href":"/api-reference/assets/video/hoox/hoox-upscale"}]},{"group":"Google","pages":[{"title":"Gemini Omni 1.1","href":"/api-reference/assets/video/google/gemini-omni-video"},{"title":"Veo 3.1 Lite","href":"/api-reference/assets/video/google/veo-3.1-lite"}]},{"group":"Kling","pages":[{"title":"Kling 2.6 Motion Control","href":"/api-reference/assets/video/kling/kling-motion-control"},{"title":"Kling 2.6 Motion Control Pro","href":"/api-reference/assets/video/kling/kling-motion-control-pro"},{"title":"Kling O3 Edit Pro","href":"/api-reference/assets/video/kling/kling-o3-edit-pro"},{"title":"Kling O3 Edit Standard","href":"/api-reference/assets/video/kling/kling-o3-edit-standard"},{"title":"Kling O3 Pro","href":"/api-reference/assets/video/kling/kling-o3-pro"},{"title":"Kling O3 Standard","href":"/api-reference/assets/video/kling/kling-o3-standard"},{"title":"Kling 2.6 Pro","href":"/api-reference/assets/video/kling/kling-pro"},{"title":"Kling 2.5 Standard","href":"/api-reference/assets/video/kling/kling-standard"},{"title":"Kling 3.0 Motion Control Pro","href":"/api-reference/assets/video/kling/kling-v3-motion-pro"},{"title":"Kling 3.0 Motion Control","href":"/api-reference/assets/video/kling/kling-v3-motion-standard"},{"title":"Kling 3.0 Pro","href":"/api-reference/assets/video/kling/kling-v3-pro"},{"title":"Kling 3.0 Standard","href":"/api-reference/assets/video/kling/kling-v3-standard"}]},{"group":"ByteDance","pages":[{"title":"Seedance 1.5","href":"/api-reference/assets/video/bytedance/seedance-1.5"},{"title":"Seedance 2.0","href":"/api-reference/assets/video/bytedance/seedance-2.0"},{"title":"Seedance 2.0 Fast","href":"/api-reference/assets/video/bytedance/seedance-2.0-fast"},{"title":"Seedance 2.0 UGC","href":"/api-reference/assets/video/bytedance/seedance-2.0-ugc"},{"title":"Seedance 2.5","href":"/api-reference/assets/video/bytedance/seedance-2.5"}]},{"group":"Flux","pages":[{"title":"Flux 3","href":"/api-reference/assets/video/flux/flux-3-video"},{"title":"Flux 3 Draft","href":"/api-reference/assets/video/flux/flux-3-video-draft"},{"title":"Flux 3 Edit","href":"/api-reference/assets/video/flux/flux-3-video-edit"},{"title":"Flux 3 Extend","href":"/api-reference/assets/video/flux/flux-3-video-extend"}]},{"group":"xAI Grok","pages":[{"title":"Grok Video","href":"/api-reference/assets/video/xai/grok-imagine-video"},{"title":"Grok Video 1.5","href":"/api-reference/assets/video/xai/grok-imagine-video-1.5"},{"title":"Grok Video Edit","href":"/api-reference/assets/video/xai/grok-imagine-video-edit"}]},{"group":"MiniMax","pages":[{"title":"MiniMax H3 Max","href":"/api-reference/assets/video/minimax/minimax-h3-max"}]},{"group":"Alibaba Wan","pages":[{"title":"Wan 3.0","href":"/api-reference/assets/video/alibaba/wan-3.0"},{"title":"Wan 3.0 Prime","href":"/api-reference/assets/video/alibaba/wan-3.0-prime"}]}]}]}]}]},"basePath":"","title":"Submit Asset Generation - Hoox API Documentation","deploymentId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","buildId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-rrEjMEj9.js","snippetPresets-BAwajHq0.js","utils-Dk5Rw1j7.js","style-to-object-BY3JEAdk.js","utils-DEa5s7HT.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DklRggtM.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Dmd8Dtl3.js","_Uint8Array-DJOdfMxL.js","isObject-FP1Yky1u.js","ApiExamples-D_AaxPsu.js","usePlaygroundInputsStore-Cma-50-F.js","shallow-BkbikJPT.js","isEqual-ChmK1oW2.js","CodeSnippets-RshC0qEa.js","CodeSnippet-C4HlRD7L.js","use-playground-group-access-BA-Tl_RI.js","Page-QqDMRMNz.js","api-description-markdown-BZgYMOP-.js","DynamicMarkdown-Bud--1w4.js","SectionHeading-oXLyPZnT.js","MethodPill-CqC02MRb.js","getPastedJson-C90_9vhn.js","Check2Icon-DqC8Aq9w.js","axios-CsQoIw0U.js"]}