This endpoint initiates video generation using various input methods. You can generate videos from text prompts, custom scripts, by providing your own media files (voice, avatar, images), or from a ready-made editing plan (sequence_plan) that controls the montage sequence by sequence.
Authentication
This endpoint requires API key authentication. Include your API key in the Authorization header.
Request Body
string
Text prompt describing the video content. Required if no script is provided.
number
Video duration in seconds (10-600). Required when using prompt.
string
Custom video script. Alternative to prompt-based generation.
string
ID of the voice to use. Get available voices from /voice/list endpoint.
string
URL to a custom voice file (audio format: mp3, wav, m4a).
string
ID of the avatar look to use. Get available avatars from /avatar/list endpoint.
string
URL to a custom avatar image/video file.
string
default:"vertical"
Video format: vertical (9:16), square (1:1), ads (4:5), horizontal (16:9), or custom.
number
Custom video width in pixels (max 5000). Only used when format is custom. Defaults to 1080.
number
Custom video height in pixels (max 5000). Only used when format is custom. Defaults to 1920.
array
Array of URLs to media files (images, videos) to include in the video.
array
Array of web URLs to extract content from (max 10).
object
Show properties
boolean
default:"false"
Enable web search for script generation.
boolean
default:"false"
Enable web search for relevant images.
boolean
default:"false"
Whether to animate static images using AI.
number
Maximum number of images to animate.
boolean
default:"false"
Enable emotion enhancement for more expressive voices.
boolean
default:"false"
Use a native avatar model (audio and video generated together) for a higher quality avatar. (The video won’t have audio before the export.)
string
default:"omni-flash"
Native avatar model used to pre-split the video timeline like the export will (e.g. omni-flash, veo-3-fast, seedance-2-5). Only used when use_native_avatar is enabled.
string
URL to receive webhook notifications when generation completes.
boolean
default:"true"
Whether to use media from your space library.
boolean
default:"true"
Whether to save generated media to your space library.
Enable adding automatic background music that matches the video style.
boolean
default:"true"
Enable adding automatic transitions.
array
A ready-made editing plan: a flat array of speech blocks describing the montage sequence by sequence. When provided, it takes precedence over prompt and script. See the Plan Content guide for the concepts.
Show speech block properties
array
required
Visual fragments of this speech block, in playback order.
Show sequence properties
string | null
required
Text spoken during this visual fragment. Use null for a silent sequence (then duration_ms is required and the sequence must be alone in a dedicated silent block).
number
Fixed duration in milliseconds. Only for silent sequences (text: null) — spoken sequences are always timed from the generated audio.
string
Avatar look override for this sequence only. Defaults to the block’s look, then to the request-level avatar_id.
string
What the avatar does while speaking this sequence, in plain language (e.g. He frowns thoughtfully and touches his chin). Applied at export by the avatar models that accept motion direction (the native models and premium).
object
Media displayed during this sequence. Omit it to let automatic B-roll fill the slot (only happens when no sequence of the whole plan carries a media).
Show media properties
string
Media id from your space library. Takes precedence over url.
string
Public URL of an image or video to display.
string
default:"hide"
How the media is displayed relative to the avatar: full (covers the whole frame), half (split with the avatar), background (behind the avatar on green screen), or hide (attached but not shown).
number
For videos: trim the source to start at this time (in seconds).
string
Voice for this whole block. Falls back to the request-level voice_id. Ignored for silent blocks.
string
Pre-recorded audio URL for this block — skips voice generation for it.
string
Parent avatar of this block. Falls back to the request-level avatar_id.
This request generates a two-speaker video from a ready-made plan. The top-level voice_id and avatar_id are the defaults; the second block overrides them with a different voice and look, and one sequence swaps to a close-up look and directs the avatar with an action.
The silent pause ({ "text": null, "duration_ms": 1200 }) sits in its own block with no voice_id — that is required for every silent sequence.
Input Methods
1. Prompt-based Generation
Provide a prompt and duration. The AI will generate a script and find relevant media.
2. Script-based Generation
Provide a custom script along with voice_id or voice_url.
3. Media-based Generation
Provide voice_url and/or avatar_url with custom media files.
4. Plan-based Generation
Provide a sequence_plan — a flat array of speech blocks — describing the montage sequence by sequence. This takes precedence over prompt and script: the video is assembled exactly as planned. The request-level voice_id / avatar_id act as defaults for blocks and sequences that don’t override them. See the Plan Content guide for the concepts.
Credit Costs
Generation costs depend on several factors:
Base cost: 5 credits every 30 seconds (with 15 seconds of buffer)
Image animation: +5 credits per image
Next Steps
Monitor Progress: Check status with /generation/status/{job_id}
Export Video: Use /export/start endpoint to export the video in the desired format
Monitor Export Progress: Check status with /export/status/{job_id}
Error Codes
MISSING_CONTENT: No prompt, script, voice_url, or avatar_url provided
MISSING_FIELD: Required duration missing when using prompt
MISSING_VOICE: No voice specified when using custom script
INSUFFICIENT_CREDITS: Not enough credits available
INVALID_VOICE_ID: Voice ID not found
INVALID_AVATAR_ID: Avatar ID not found
INVALID_FORMAT: Invalid video format
INVALID_PLAN: The sequence_plan failed schema validation (the offending field is returned in details)
PLAN_RESOLUTION_FAILED: A voice_id, avatar_id, or look_id referenced in the plan could not be found in your space
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":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6acae36e83864fb69bacd146","clientVersion":"0.0.4177","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":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/generation/start","slug":"/api-reference/generation/start","pageMetadata":{"title":"Start Video Generation","api":"POST https://app.hoox.video/api/public/v1/generation/start","description":"Start generating a video from a prompt, script, media files, or a ready-made editing plan","href":"/api-reference/generation/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 a video from a prompt, script, media files, or a ready-made editing plan\"\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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,ResponseField}=_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);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`This endpoint initiates video generation using various input methods. You can generate videos from text prompts, custom scripts, by providing your own media files (voice, avatar, images), or from a ready-made editing plan (`,_jsx(_components.code,{children:`sequence_plan`}),`) that controls the montage sequence by sequence.`]}),`\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:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`Text prompt describing the video content. Required if no script is provided.`})}),`\n`,_jsx(ParamField,{body:`duration`,type:`number`,id:`param-duration`,children:_jsx(_components.p,{children:`Video duration in seconds (10-600). Required when using prompt.`})}),`\n`,_jsx(ParamField,{body:`script`,type:`string`,id:`param-script`,children:_jsx(_components.p,{children:`Custom video script. Alternative to prompt-based generation.`})}),`\n`,_jsx(ParamField,{body:`voice_id`,type:`string`,id:`param-voice-id`,children:_jsxs(_components.p,{children:[`ID of the voice to use. Get available voices from `,_jsx(_components.code,{children:`/voice/list`}),` endpoint.`]})}),`\n`,_jsx(ParamField,{body:`voice_url`,type:`string`,id:`param-voice-url`,children:_jsx(_components.p,{children:`URL to a custom voice file (audio format: mp3, wav, m4a).`})}),`\n`,_jsx(ParamField,{body:`avatar_id`,type:`string`,id:`param-avatar-id`,children:_jsxs(_components.p,{children:[`ID of the avatar look to use. Get available avatars from `,_jsx(_components.code,{children:`/avatar/list`}),` endpoint.`]})}),`\n`,_jsx(ParamField,{body:`avatar_url`,type:`string`,id:`param-avatar-url`,children:_jsx(_components.p,{children:`URL to a custom avatar image/video file.`})}),`\n`,_jsx(ParamField,{body:`format`,type:`string`,default:`vertical`,id:`param-format`,children:_jsxs(_components.p,{children:[`Video format: `,_jsx(_components.code,{children:`vertical`}),` (9:16), `,_jsx(_components.code,{children:`square`}),` (1:1), `,_jsx(_components.code,{children:`ads`}),` (4:5), `,_jsx(_components.code,{children:`horizontal`}),` (16:9), or `,_jsx(_components.code,{children:`custom`}),`.`]})}),`\n`,_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:_jsxs(_components.p,{children:[`Custom video width in pixels (max 5000). Only used when format is `,_jsx(_components.code,{children:`custom`}),`. Defaults to 1080.`]})}),`\n`,_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:_jsxs(_components.p,{children:[`Custom video height in pixels (max 5000). Only used when format is `,_jsx(_components.code,{children:`custom`}),`. Defaults to 1920.`]})}),`\n`,_jsx(ParamField,{body:`media_urls`,type:`array`,id:`param-media-urls`,children:_jsx(_components.p,{children:`Array of URLs to media files (images, videos) to include in the video.`})}),`\n`,_jsx(ParamField,{body:`web_urls`,type:`array`,id:`param-web-urls`,children:_jsx(_components.p,{children:`Array of web URLs to extract content from (max 10).`})}),`\n`,_jsx(ParamField,{body:`web_search`,type:`object`,id:`param-web-search`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`script`,type:`boolean`,default:`false`,id:`param-script-1`,children:_jsx(_components.p,{children:`Enable web search for script generation.`})}),_jsx(ParamField,{body:`images`,type:`boolean`,default:`false`,id:`param-images`,children:_jsx(_components.p,{children:`Enable web search for relevant images.`})})]})}),`\n`,_jsx(ParamField,{body:`animate_image`,type:`boolean`,default:`false`,id:`param-animate-image`,children:_jsx(_components.p,{children:`Whether to animate static images using AI.`})}),`\n`,_jsx(ParamField,{body:`animate_image_max`,type:`number`,id:`param-animate-image-max`,children:_jsx(_components.p,{children:`Maximum number of images to animate.`})}),`\n`,_jsx(ParamField,{body:`emotion_enhancement`,type:`boolean`,default:`false`,id:`param-emotion-enhancement`,children:_jsx(_components.p,{children:`Enable emotion enhancement for more expressive voices.`})}),`\n`,_jsx(ParamField,{body:`use_native_avatar`,type:`boolean`,default:`false`,id:`param-use-native-avatar`,children:_jsx(_components.p,{children:`Use a native avatar model (audio and video generated together) for a higher quality avatar. (The video won’t have audio before the export.)`})}),`\n`,_jsx(ParamField,{body:`avatar_model`,type:`string`,default:`omni-flash`,id:`param-avatar-model`,children:_jsxs(_components.p,{children:[`Native avatar model used to pre-split the video timeline like the export will (e.g. `,_jsx(_components.code,{children:`omni-flash`}),`, `,_jsx(_components.code,{children:`veo-3-fast`}),`, `,_jsx(_components.code,{children:`seedance-2-5`}),`). Only used when `,_jsx(_components.code,{children:`use_native_avatar`}),` is enabled.`]})}),`\n`,_jsx(ParamField,{body:`webhook_url`,type:`string`,id:`param-webhook-url`,children:_jsx(_components.p,{children:`URL to receive webhook notifications when generation completes.`})}),`\n`,_jsx(ParamField,{body:`use_space_media`,type:`boolean`,default:`true`,id:`param-use-space-media`,children:_jsx(_components.p,{children:`Whether to use media from your space library.`})}),`\n`,_jsx(ParamField,{body:`save_media_to_space`,type:`boolean`,default:`true`,id:`param-save-media-to-space`,children:_jsx(_components.p,{children:`Whether to save generated media to your space library.`})}),`\n`,_jsxs(ParamField,{body:`enable`,type:`object`,id:`param-enable`,children:[_jsx(_components.p,{children:`Enable or disable specific video features.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`subtitles`,type:`boolean`,default:`true`,id:`param-subtitles`,children:_jsx(_components.p,{children:`Enable adding automatic subtitles to the video.`})}),_jsx(ParamField,{body:`broll`,type:`boolean`,default:`true`,id:`param-broll`,children:_jsx(_components.p,{children:`Enable automatically placing background images/videos.`})}),_jsx(ParamField,{body:`music`,type:`boolean`,default:`true`,id:`param-music`,children:_jsx(_components.p,{children:`Enable adding automatic background music that matches the video style.`})}),_jsx(ParamField,{body:`transitions`,type:`boolean`,default:`true`,id:`param-transitions`,children:_jsx(_components.p,{children:`Enable adding automatic transitions.`})})]})]}),`\n`,_jsxs(ParamField,{body:`sequence_plan`,type:`array`,id:`param-sequence-plan`,children:[_jsxs(_components.p,{children:[`A ready-made editing plan: a flat array of speech blocks describing the montage sequence by sequence. When provided, it takes precedence over `,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`script`}),`. See the `,_jsx(_components.a,{href:`/video-generation/overview#plan-content`,children:`Plan Content guide`}),` for the concepts.`]}),_jsxs(Expandable,{title:`speech block properties`,children:[_jsxs(ParamField,{body:`sequences`,type:`array`,required:true,id:`param-sequences`,children:[_jsx(_components.p,{children:`Visual fragments of this speech block, in playback order.`}),_jsxs(Expandable,{title:`sequence properties`,children:[_jsx(ParamField,{body:`text`,type:`string | null`,required:true,id:`param-text`,children:_jsxs(_components.p,{children:[`Text spoken during this visual fragment. Use `,_jsx(_components.code,{children:`null`}),` for a silent sequence (then `,_jsx(_components.code,{children:`duration_ms`}),` is required and the sequence must be alone in a dedicated silent block).`]})}),_jsx(ParamField,{body:`duration_ms`,type:`number`,id:`param-duration-ms`,children:_jsxs(_components.p,{children:[`Fixed duration in milliseconds. Only for silent sequences (`,_jsx(_components.code,{children:`text: null`}),`) — spoken sequences are always timed from the generated audio.`]})}),_jsx(ParamField,{body:`look_id`,type:`string`,id:`param-look-id`,children:_jsxs(_components.p,{children:[`Avatar look override for this sequence only. Defaults to the block’s look, then to the request-level `,_jsx(_components.code,{children:`avatar_id`}),`.`]})}),_jsx(ParamField,{body:`action`,type:`string`,id:`param-action`,children:_jsxs(_components.p,{children:[`What the avatar does while speaking this sequence, in plain language (e.g. `,_jsx(_components.code,{children:`He frowns thoughtfully and touches his chin`}),`). Applied at export by the avatar models that accept motion direction (the native models and `,_jsx(_components.code,{children:`premium`}),`).`]})}),_jsxs(ParamField,{body:`media`,type:`object`,id:`param-media`,children:[_jsx(_components.p,{children:`Media displayed during this sequence. Omit it to let automatic B-roll fill the slot (only happens when no sequence of the whole plan carries a media).`}),_jsxs(Expandable,{title:`media properties`,children:[_jsx(ParamField,{body:`asset_id`,type:`string`,id:`param-asset-id`,children:_jsxs(_components.p,{children:[`Media id from your space library. Takes precedence over `,_jsx(_components.code,{children:`url`}),`.`]})}),_jsx(ParamField,{body:`url`,type:`string`,id:`param-url`,children:_jsx(_components.p,{children:`Public URL of an image or video to display.`})}),_jsx(ParamField,{body:`show`,type:`string`,default:`hide`,id:`param-show`,children:_jsxs(_components.p,{children:[`How the media is displayed relative to the avatar: `,_jsx(_components.code,{children:`full`}),` (covers the whole frame), `,_jsx(_components.code,{children:`half`}),` (split with the avatar), `,_jsx(_components.code,{children:`background`}),` (behind the avatar on green screen), or `,_jsx(_components.code,{children:`hide`}),` (attached but not shown).`]})}),_jsx(ParamField,{body:`start_at`,type:`number`,id:`param-start-at`,children:_jsx(_components.p,{children:`For videos: trim the source to start at this time (in seconds).`})})]})]})]})]}),_jsx(ParamField,{body:`voice_id`,type:`string`,id:`param-voice-id-1`,children:_jsxs(_components.p,{children:[`Voice for this whole block. Falls back to the request-level `,_jsx(_components.code,{children:`voice_id`}),`. Ignored for silent blocks.`]})}),_jsx(ParamField,{body:`audio_url`,type:`string`,id:`param-audio-url`,children:_jsx(_components.p,{children:`Pre-recorded audio URL for this block — skips voice generation for it.`})}),_jsx(ParamField,{body:`avatar_id`,type:`string`,id:`param-avatar-id-1`,children:_jsxs(_components.p,{children:[`Parent avatar of this block. Falls back to the request-level `,_jsx(_components.code,{children:`avatar_id`}),`.`]})}),_jsx(ParamField,{body:`look_id`,type:`string`,id:`param-look-id-1`,children:_jsx(_components.p,{children:`Default avatar look for this block’s sequences.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`job_id`,type:`string`,id:`param-job-id`,children:_jsx(_components.p,{children:`Unique identifier for the generation job.`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Current job status: `,_jsx(_components.code,{children:`pending`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`estimated_credits`,type:`number`,id:`param-estimated-credits`,children:_jsx(_components.p,{children:`Estimated credit cost for this generation.`})}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`3`,id:`plan-based-example`,children:`Plan-based Example`}),`\n`,_jsxs(_components.p,{children:[`This request generates a two-speaker video from a ready-made plan. The top-level `,_jsx(_components.code,{children:`voice_id`}),` and `,_jsx(_components.code,{children:`avatar_id`}),` are the defaults; the second block overrides them with a different voice and look, and one sequence swaps to a close-up look and directs the avatar with an `,_jsx(_components.code,{children:`action`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`38`,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:`38`,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/generation/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:` \"voice_id\": \"voice_en_us_female_1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"avatar_id\": \"look_default\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format\": \"vertical\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sequence_plan\": [`})}),`\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:` \"sequences\": [`})}),`\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:` \"text\": \"We waste 3 hours a day.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"media\": { \"asset_id\": \"65f0a1b2c3d4e5f6a7b8c9d0\", \"show\": \"full\" }`})}),`\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:` \"text\": \"Without even noticing.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"look_id\": \"look_closeup\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"action\": \"He shakes his head slowly\"`})}),`\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:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sequences\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"text\": null, \"duration_ms\": 1200 }`})}),`\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:` \"voice_id\": \"voice_en_us_male_1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"look_id\": \"look_second_speaker\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sequences\": [`})}),`\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:` \"text\": \"Oh yeah? How come?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"media\": { \"url\": \"https://your-domain.com/chart.jpg\", \"show\": \"half\" }`})}),`\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:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The silent pause (`,_jsx(_components.code,{children:`{ \"text\": null, \"duration_ms\": 1200 }`}),`) sits in its own block with no `,_jsx(_components.code,{children:`voice_id`}),` — that is required for every silent sequence.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`input-methods`,children:`Input Methods`}),`\n`,_jsx(Heading,{level:`3`,id:`1-prompt-based-generation`,children:`1. Prompt-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide a `,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`duration`}),`. The AI will generate a script and find relevant media.`]}),`\n`,_jsx(Heading,{level:`3`,id:`2-script-based-generation`,children:`2. Script-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide a custom `,_jsx(_components.code,{children:`script`}),` along with `,_jsx(_components.code,{children:`voice_id`}),` or `,_jsx(_components.code,{children:`voice_url`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`3-media-based-generation`,children:`3. Media-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide `,_jsx(_components.code,{children:`voice_url`}),` and/or `,_jsx(_components.code,{children:`avatar_url`}),` with custom media files.`]}),`\n`,_jsx(Heading,{level:`3`,id:`4-plan-based-generation`,children:`4. Plan-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide a `,_jsx(_components.code,{children:`sequence_plan`}),` — a flat array of speech blocks — describing the montage sequence by sequence. This takes precedence over `,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`script`}),`: the video is assembled exactly as planned. The request-level `,_jsx(_components.code,{children:`voice_id`}),` / `,_jsx(_components.code,{children:`avatar_id`}),` act as defaults for blocks and sequences that don’t override them. See the `,_jsx(_components.a,{href:`/video-generation/overview#plan-content`,children:`Plan Content guide`}),` for the concepts.`]}),`\n`,_jsx(Heading,{level:`2`,id:`credit-costs`,children:`Credit Costs`}),`\n`,_jsx(_components.p,{children:`Generation costs depend on several factors:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Base cost`}),`: 5 credits every 30 seconds (with 15 seconds of buffer)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Image animation`}),`: +5 credits per image`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Monitor Progress`}),`: Check status with `,_jsx(_components.code,{children:`/generation/status/{job_id}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Export Video`}),`: Use `,_jsx(_components.code,{children:`/export/start`}),` endpoint to export the video in the desired format`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Monitor Export Progress`}),`: Check status with `,_jsx(_components.code,{children:`/export/status/{job_id}`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MISSING_CONTENT`}),`: No prompt, script, voice_url, or avatar_url provided`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MISSING_FIELD`}),`: Required duration missing when using prompt`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MISSING_VOICE`}),`: No voice specified when using custom script`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INSUFFICIENT_CREDITS`}),`: Not enough credits available`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_VOICE_ID`}),`: Voice ID not found`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_AVATAR_ID`}),`: Avatar ID not found`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_FORMAT`}),`: Invalid video format`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_PLAN`}),`: The `,_jsx(_components.code,{children:`sequence_plan`}),` failed schema validation (the offending field is returned in `,_jsx(_components.code,{children:`details`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`PLAN_RESOLUTION_FAILED`}),`: A `,_jsx(_components.code,{children:`voice_id`}),`, `,_jsx(_components.code,{children:`avatar_id`}),`, or `,_jsx(_components.code,{children:`look_id`}),` referenced in the plan could not be found in your space`]}),`\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":"Start Video Generation","api":"POST https://app.hoox.video/api/public/v1/generation/start","description":"Start generating a video from a prompt, script, media files, or a ready-made editing plan","href":"/api-reference/generation/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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_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);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`This endpoint initiates video generation using various input methods. You can generate videos from text prompts, custom scripts, by providing your own media files (voice, avatar, images), or from a ready-made editing plan (`,_jsx(_components.code,{children:`sequence_plan`}),`) that controls the montage sequence by sequence.`]}),`\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:`prompt`,type:`string`,id:`param-prompt`,children:_jsx(_components.p,{children:`Text prompt describing the video content. Required if no script is provided.`})}),`\n`,_jsx(ParamField,{body:`duration`,type:`number`,id:`param-duration`,children:_jsx(_components.p,{children:`Video duration in seconds (10-600). Required when using prompt.`})}),`\n`,_jsx(ParamField,{body:`script`,type:`string`,id:`param-script`,children:_jsx(_components.p,{children:`Custom video script. Alternative to prompt-based generation.`})}),`\n`,_jsx(ParamField,{body:`voice_id`,type:`string`,id:`param-voice-id`,children:_jsxs(_components.p,{children:[`ID of the voice to use. Get available voices from `,_jsx(_components.code,{children:`/voice/list`}),` endpoint.`]})}),`\n`,_jsx(ParamField,{body:`voice_url`,type:`string`,id:`param-voice-url`,children:_jsx(_components.p,{children:`URL to a custom voice file (audio format: mp3, wav, m4a).`})}),`\n`,_jsx(ParamField,{body:`avatar_id`,type:`string`,id:`param-avatar-id`,children:_jsxs(_components.p,{children:[`ID of the avatar look to use. Get available avatars from `,_jsx(_components.code,{children:`/avatar/list`}),` endpoint.`]})}),`\n`,_jsx(ParamField,{body:`avatar_url`,type:`string`,id:`param-avatar-url`,children:_jsx(_components.p,{children:`URL to a custom avatar image/video file.`})}),`\n`,_jsx(ParamField,{body:`format`,type:`string`,default:`vertical`,id:`param-format`,children:_jsxs(_components.p,{children:[`Video format: `,_jsx(_components.code,{children:`vertical`}),` (9:16), `,_jsx(_components.code,{children:`square`}),` (1:1), `,_jsx(_components.code,{children:`ads`}),` (4:5), `,_jsx(_components.code,{children:`horizontal`}),` (16:9), or `,_jsx(_components.code,{children:`custom`}),`.`]})}),`\n`,_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:_jsxs(_components.p,{children:[`Custom video width in pixels (max 5000). Only used when format is `,_jsx(_components.code,{children:`custom`}),`. Defaults to 1080.`]})}),`\n`,_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:_jsxs(_components.p,{children:[`Custom video height in pixels (max 5000). Only used when format is `,_jsx(_components.code,{children:`custom`}),`. Defaults to 1920.`]})}),`\n`,_jsx(ParamField,{body:`media_urls`,type:`array`,id:`param-media-urls`,children:_jsx(_components.p,{children:`Array of URLs to media files (images, videos) to include in the video.`})}),`\n`,_jsx(ParamField,{body:`web_urls`,type:`array`,id:`param-web-urls`,children:_jsx(_components.p,{children:`Array of web URLs to extract content from (max 10).`})}),`\n`,_jsx(ParamField,{body:`web_search`,type:`object`,id:`param-web-search`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`script`,type:`boolean`,default:`false`,id:`param-script-1`,children:_jsx(_components.p,{children:`Enable web search for script generation.`})}),_jsx(ParamField,{body:`images`,type:`boolean`,default:`false`,id:`param-images`,children:_jsx(_components.p,{children:`Enable web search for relevant images.`})})]})}),`\n`,_jsx(ParamField,{body:`animate_image`,type:`boolean`,default:`false`,id:`param-animate-image`,children:_jsx(_components.p,{children:`Whether to animate static images using AI.`})}),`\n`,_jsx(ParamField,{body:`animate_image_max`,type:`number`,id:`param-animate-image-max`,children:_jsx(_components.p,{children:`Maximum number of images to animate.`})}),`\n`,_jsx(ParamField,{body:`emotion_enhancement`,type:`boolean`,default:`false`,id:`param-emotion-enhancement`,children:_jsx(_components.p,{children:`Enable emotion enhancement for more expressive voices.`})}),`\n`,_jsx(ParamField,{body:`use_native_avatar`,type:`boolean`,default:`false`,id:`param-use-native-avatar`,children:_jsx(_components.p,{children:`Use a native avatar model (audio and video generated together) for a higher quality avatar. (The video won’t have audio before the export.)`})}),`\n`,_jsx(ParamField,{body:`avatar_model`,type:`string`,default:`omni-flash`,id:`param-avatar-model`,children:_jsxs(_components.p,{children:[`Native avatar model used to pre-split the video timeline like the export will (e.g. `,_jsx(_components.code,{children:`omni-flash`}),`, `,_jsx(_components.code,{children:`veo-3-fast`}),`, `,_jsx(_components.code,{children:`seedance-2-5`}),`). Only used when `,_jsx(_components.code,{children:`use_native_avatar`}),` is enabled.`]})}),`\n`,_jsx(ParamField,{body:`webhook_url`,type:`string`,id:`param-webhook-url`,children:_jsx(_components.p,{children:`URL to receive webhook notifications when generation completes.`})}),`\n`,_jsx(ParamField,{body:`use_space_media`,type:`boolean`,default:`true`,id:`param-use-space-media`,children:_jsx(_components.p,{children:`Whether to use media from your space library.`})}),`\n`,_jsx(ParamField,{body:`save_media_to_space`,type:`boolean`,default:`true`,id:`param-save-media-to-space`,children:_jsx(_components.p,{children:`Whether to save generated media to your space library.`})}),`\n`,_jsxs(ParamField,{body:`enable`,type:`object`,id:`param-enable`,children:[_jsx(_components.p,{children:`Enable or disable specific video features.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`subtitles`,type:`boolean`,default:`true`,id:`param-subtitles`,children:_jsx(_components.p,{children:`Enable adding automatic subtitles to the video.`})}),_jsx(ParamField,{body:`broll`,type:`boolean`,default:`true`,id:`param-broll`,children:_jsx(_components.p,{children:`Enable automatically placing background images/videos.`})}),_jsx(ParamField,{body:`music`,type:`boolean`,default:`true`,id:`param-music`,children:_jsx(_components.p,{children:`Enable adding automatic background music that matches the video style.`})}),_jsx(ParamField,{body:`transitions`,type:`boolean`,default:`true`,id:`param-transitions`,children:_jsx(_components.p,{children:`Enable adding automatic transitions.`})})]})]}),`\n`,_jsxs(ParamField,{body:`sequence_plan`,type:`array`,id:`param-sequence-plan`,children:[_jsxs(_components.p,{children:[`A ready-made editing plan: a flat array of speech blocks describing the montage sequence by sequence. When provided, it takes precedence over `,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`script`}),`. See the `,_jsx(_components.a,{href:`/video-generation/overview#plan-content`,children:`Plan Content guide`}),` for the concepts.`]}),_jsxs(Expandable,{title:`speech block properties`,children:[_jsxs(ParamField,{body:`sequences`,type:`array`,required:true,id:`param-sequences`,children:[_jsx(_components.p,{children:`Visual fragments of this speech block, in playback order.`}),_jsxs(Expandable,{title:`sequence properties`,children:[_jsx(ParamField,{body:`text`,type:`string | null`,required:true,id:`param-text`,children:_jsxs(_components.p,{children:[`Text spoken during this visual fragment. Use `,_jsx(_components.code,{children:`null`}),` for a silent sequence (then `,_jsx(_components.code,{children:`duration_ms`}),` is required and the sequence must be alone in a dedicated silent block).`]})}),_jsx(ParamField,{body:`duration_ms`,type:`number`,id:`param-duration-ms`,children:_jsxs(_components.p,{children:[`Fixed duration in milliseconds. Only for silent sequences (`,_jsx(_components.code,{children:`text: null`}),`) — spoken sequences are always timed from the generated audio.`]})}),_jsx(ParamField,{body:`look_id`,type:`string`,id:`param-look-id`,children:_jsxs(_components.p,{children:[`Avatar look override for this sequence only. Defaults to the block’s look, then to the request-level `,_jsx(_components.code,{children:`avatar_id`}),`.`]})}),_jsx(ParamField,{body:`action`,type:`string`,id:`param-action`,children:_jsxs(_components.p,{children:[`What the avatar does while speaking this sequence, in plain language (e.g. `,_jsx(_components.code,{children:`He frowns thoughtfully and touches his chin`}),`). Applied at export by the avatar models that accept motion direction (the native models and `,_jsx(_components.code,{children:`premium`}),`).`]})}),_jsxs(ParamField,{body:`media`,type:`object`,id:`param-media`,children:[_jsx(_components.p,{children:`Media displayed during this sequence. Omit it to let automatic B-roll fill the slot (only happens when no sequence of the whole plan carries a media).`}),_jsxs(Expandable,{title:`media properties`,children:[_jsx(ParamField,{body:`asset_id`,type:`string`,id:`param-asset-id`,children:_jsxs(_components.p,{children:[`Media id from your space library. Takes precedence over `,_jsx(_components.code,{children:`url`}),`.`]})}),_jsx(ParamField,{body:`url`,type:`string`,id:`param-url`,children:_jsx(_components.p,{children:`Public URL of an image or video to display.`})}),_jsx(ParamField,{body:`show`,type:`string`,default:`hide`,id:`param-show`,children:_jsxs(_components.p,{children:[`How the media is displayed relative to the avatar: `,_jsx(_components.code,{children:`full`}),` (covers the whole frame), `,_jsx(_components.code,{children:`half`}),` (split with the avatar), `,_jsx(_components.code,{children:`background`}),` (behind the avatar on green screen), or `,_jsx(_components.code,{children:`hide`}),` (attached but not shown).`]})}),_jsx(ParamField,{body:`start_at`,type:`number`,id:`param-start-at`,children:_jsx(_components.p,{children:`For videos: trim the source to start at this time (in seconds).`})})]})]})]})]}),_jsx(ParamField,{body:`voice_id`,type:`string`,id:`param-voice-id-1`,children:_jsxs(_components.p,{children:[`Voice for this whole block. Falls back to the request-level `,_jsx(_components.code,{children:`voice_id`}),`. Ignored for silent blocks.`]})}),_jsx(ParamField,{body:`audio_url`,type:`string`,id:`param-audio-url`,children:_jsx(_components.p,{children:`Pre-recorded audio URL for this block — skips voice generation for it.`})}),_jsx(ParamField,{body:`avatar_id`,type:`string`,id:`param-avatar-id-1`,children:_jsxs(_components.p,{children:[`Parent avatar of this block. Falls back to the request-level `,_jsx(_components.code,{children:`avatar_id`}),`.`]})}),_jsx(ParamField,{body:`look_id`,type:`string`,id:`param-look-id-1`,children:_jsx(_components.p,{children:`Default avatar look for this block’s sequences.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`job_id`,type:`string`,id:`param-job-id`,children:_jsx(_components.p,{children:`Unique identifier for the generation job.`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`Current job status: `,_jsx(_components.code,{children:`pending`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`estimated_credits`,type:`number`,id:`param-estimated-credits`,children:_jsx(_components.p,{children:`Estimated credit cost for this generation.`})}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`21`,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:`21`,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/generation/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:` \"prompt\": \"Create a video about sustainable energy solutions\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\": 60,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_id\": \"voice_en_us_female_1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"avatar_id\": \"avatar_business_woman_1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format\": \"vertical\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"web_search\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"script\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"images\": true`})}),`\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:` \"animate_image\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"enable\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subtitles\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"broll\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"music\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transitions\": true`})}),`\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:`Python`,numberOfLines:`29`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`29`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.hoox.video/api/public/v1/generation/start\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer your_api_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Create a video about sustainable energy solutions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"duration\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"voice_en_us_female_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"avatar_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"avatar_business_woman_1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"vertical\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"web_search\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"script\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`})]}),`\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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"animate_image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"enable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subtitles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"broll\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"music\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transitions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`})]}),`\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`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`data)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`28`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.hoox.video/api/public/v1/generation/start'`}),_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\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_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\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer your_api_key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_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\":`#9CDCFE`},children:` prompt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Create a video about sustainable energy solutions\"`}),_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\":`#9CDCFE`},children:` duration:`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` voice_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_en_us_female_1\"`}),_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\":`#9CDCFE`},children:` avatar_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"avatar_business_woman_1\"`}),_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\":`#9CDCFE`},children:` format:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"vertical\"`}),_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\":`#9CDCFE`},children:` web_search:`}),_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\":`#9CDCFE`},children:` script:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_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\":`#9CDCFE`},children:` images:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` animate_image:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_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\":`#9CDCFE`},children:` enable:`}),_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\":`#9CDCFE`},children:` subtitles:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_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\":`#9CDCFE`},children:` broll:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_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\":`#9CDCFE`},children:` music:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_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\":`#9CDCFE`},children:` transitions:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\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(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_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\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Success Response`,numberOfLines:`5`,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:`5`,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:` \"job_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"run_abcd1234\"`}),_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:`\"pending\"`}),_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:` \"estimated_credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`85`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Error 400 - Validation Failed`,numberOfLines:`10`,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:`10`,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:`\"MISSING_FIELD\"`}),_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:`\"Duration is required when using prompt\"`}),_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:`\"duration\"`})]}),`\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:`Error 402 - Insufficient Credits`,numberOfLines:`4`,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:`4`,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: 85, Available: 45\"`}),_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:`\"INSUFFICIENT_CREDITS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`plan-based-example`,children:`Plan-based Example`}),`\n`,_jsxs(_components.p,{children:[`This request generates a two-speaker video from a ready-made plan. The top-level `,_jsx(_components.code,{children:`voice_id`}),` and `,_jsx(_components.code,{children:`avatar_id`}),` are the defaults; the second block overrides them with a different voice and look, and one sequence swaps to a close-up look and directs the avatar with an `,_jsx(_components.code,{children:`action`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`38`,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:`38`,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/generation/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:` \"voice_id\": \"voice_en_us_female_1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"avatar_id\": \"look_default\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"format\": \"vertical\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sequence_plan\": [`})}),`\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:` \"sequences\": [`})}),`\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:` \"text\": \"We waste 3 hours a day.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"media\": { \"asset_id\": \"65f0a1b2c3d4e5f6a7b8c9d0\", \"show\": \"full\" }`})}),`\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:` \"text\": \"Without even noticing.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"look_id\": \"look_closeup\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"action\": \"He shakes his head slowly\"`})}),`\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:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sequences\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"text\": null, \"duration_ms\": 1200 }`})}),`\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:` \"voice_id\": \"voice_en_us_male_1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"look_id\": \"look_second_speaker\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sequences\": [`})}),`\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:` \"text\": \"Oh yeah? How come?\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"media\": { \"url\": \"https://your-domain.com/chart.jpg\", \"show\": \"half\" }`})}),`\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:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The silent pause (`,_jsx(_components.code,{children:`{ \"text\": null, \"duration_ms\": 1200 }`}),`) sits in its own block with no `,_jsx(_components.code,{children:`voice_id`}),` — that is required for every silent sequence.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`input-methods`,children:`Input Methods`}),`\n`,_jsx(Heading,{level:`3`,id:`1-prompt-based-generation`,children:`1. Prompt-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide a `,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`duration`}),`. The AI will generate a script and find relevant media.`]}),`\n`,_jsx(Heading,{level:`3`,id:`2-script-based-generation`,children:`2. Script-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide a custom `,_jsx(_components.code,{children:`script`}),` along with `,_jsx(_components.code,{children:`voice_id`}),` or `,_jsx(_components.code,{children:`voice_url`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`3-media-based-generation`,children:`3. Media-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide `,_jsx(_components.code,{children:`voice_url`}),` and/or `,_jsx(_components.code,{children:`avatar_url`}),` with custom media files.`]}),`\n`,_jsx(Heading,{level:`3`,id:`4-plan-based-generation`,children:`4. Plan-based Generation`}),`\n`,_jsxs(_components.p,{children:[`Provide a `,_jsx(_components.code,{children:`sequence_plan`}),` — a flat array of speech blocks — describing the montage sequence by sequence. This takes precedence over `,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`script`}),`: the video is assembled exactly as planned. The request-level `,_jsx(_components.code,{children:`voice_id`}),` / `,_jsx(_components.code,{children:`avatar_id`}),` act as defaults for blocks and sequences that don’t override them. See the `,_jsx(_components.a,{href:`/video-generation/overview#plan-content`,children:`Plan Content guide`}),` for the concepts.`]}),`\n`,_jsx(Heading,{level:`2`,id:`credit-costs`,children:`Credit Costs`}),`\n`,_jsx(_components.p,{children:`Generation costs depend on several factors:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Base cost`}),`: 5 credits every 30 seconds (with 15 seconds of buffer)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Image animation`}),`: +5 credits per image`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Monitor Progress`}),`: Check status with `,_jsx(_components.code,{children:`/generation/status/{job_id}`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Export Video`}),`: Use `,_jsx(_components.code,{children:`/export/start`}),` endpoint to export the video in the desired format`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Monitor Export Progress`}),`: Check status with `,_jsx(_components.code,{children:`/export/status/{job_id}`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MISSING_CONTENT`}),`: No prompt, script, voice_url, or avatar_url provided`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MISSING_FIELD`}),`: Required duration missing when using prompt`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`MISSING_VOICE`}),`: No voice specified when using custom script`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INSUFFICIENT_CREDITS`}),`: Not enough credits available`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_VOICE_ID`}),`: Voice ID not found`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_AVATAR_ID`}),`: Avatar ID not found`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_FORMAT`}),`: Invalid video format`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INVALID_PLAN`}),`: The `,_jsx(_components.code,{children:`sequence_plan`}),` failed schema validation (the offending field is returned in `,_jsx(_components.code,{children:`details`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`PLAN_RESOLUTION_FAILED`}),`: A `,_jsx(_components.code,{children:`voice_id`}),`, `,_jsx(_components.code,{children:`avatar_id`}),`, or `,_jsx(_components.code,{children:`look_id`}),` referenced in the plan could not be found in your space`]}),`\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":"Start Video Generation","api":"POST https://app.hoox.video/api/public/v1/generation/start","description":"Start generating a video from a prompt, script, media files, or a ready-made editing plan","href":"/api-reference/generation/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":"Response","slug":"response","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[{"title":"Plan-based Example","slug":"plan-based-example","depth":3,"children":[]}]},{"title":"Input Methods","slug":"input-methods","depth":2,"children":[{"title":"1. Prompt-based Generation","slug":"1-prompt-based-generation","depth":3,"children":[]},{"title":"2. Script-based Generation","slug":"2-script-based-generation","depth":3,"children":[]},{"title":"3. Media-based Generation","slug":"3-media-based-generation","depth":3,"children":[]},{"title":"4. Plan-based Generation","slug":"4-plan-based-generation","depth":3,"children":[]}]},{"title":"Credit Costs","slug":"credit-costs","depth":2,"children":[]},{"title":"Next Steps","slug":"next-steps","depth":2,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","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=\"21\">\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/generation/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\"> \"prompt\": \"Create a video about sustainable energy solutions\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\": 60,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voice_id\": \"voice_en_us_female_1\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"avatar_id\": \"avatar_business_woman_1\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"format\": \"vertical\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"web_search\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"script\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"images\": true\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\"> \"animate_image\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"enable\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subtitles\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"broll\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"music\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"transitions\": true\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":"Python","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=\"python\">\u003ccode language=\"python\" numberOfLines=\"29\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://app.hoox.video/api/public/v1/generation/start\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer your_api_key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">data \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Create a video about sustainable energy solutions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"duration\"\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:#0A3069;--shiki-dark:#CE9178\"> \"voice_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"voice_en_us_female_1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"avatar_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"avatar_business_woman_1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"format\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"vertical\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"web_search\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"script\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"images\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\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:#0A3069;--shiki-dark:#CE9178\"> \"animate_image\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"enable\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subtitles\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"broll\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"music\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"transitions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">True\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\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(url, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">data)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","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=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"28\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://app.hoox.video/api/public/v1/generation/start'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Bearer your_api_key'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\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:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> prompt:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Create a video about sustainable energy solutions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> duration:\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:#1F2328;--shiki-dark:#9CDCFE\"> voice_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"voice_en_us_female_1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> avatar_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"avatar_business_woman_1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> format:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"vertical\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> web_search:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> script:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> images:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\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:#9CDCFE\"> animate_image:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> enable:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subtitles:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> broll:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> music:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> transitions:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> true\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\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Success Response","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=\"5\">\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\"> \"job_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"run_abcd1234\"\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\">\"pending\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"estimated_credits\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">85\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":"Error 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=\"10\">\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\">\"MISSING_FIELD\"\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\">\"Duration is required when using prompt\"\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\">\"duration\"\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":"Error 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=\"4\">\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: 85, Available: 45\"\u003c/span>\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\">\"INSUFFICIENT_CREDITS\"\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":"Start Video Generation","path":"/api/public/v1/generation/start","servers":[{"url":"https://app.hoox.video"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"prompt":[{"type":"string","description":"Text prompt describing the video content. Required if no script is provided."}],"duration":[{"type":"number","description":"Video duration in seconds (10-600). Required when using prompt."}],"script":[{"type":"string","description":"Custom video script. Alternative to prompt-based generation."}],"voice_id":[{"type":"string","description":"ID of the voice to use. Get available voices from `/voice/list` endpoint."}],"voice_url":[{"type":"string","description":"URL to a custom voice file (audio format: mp3, wav, m4a)."}],"avatar_id":[{"type":"string","description":"ID of the avatar look to use. Get available avatars from `/avatar/list` endpoint."}],"avatar_url":[{"type":"string","description":"URL to a custom avatar image/video file."}],"format":[{"type":"string","description":"Video format: `vertical` (9:16), `square` (1:1), `ads` (4:5), `horizontal` (16:9), or `custom` ."}],"width":[{"type":"number","description":"Custom video width in pixels (max 5000). Only used when format is `custom` . Defaults to 1080."}],"height":[{"type":"number","description":"Custom video height in pixels (max 5000). Only used when format is `custom` . Defaults to 1920."}],"media_urls":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of URLs to media files (images, videos) to include in the video."}],"web_urls":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Array of web URLs to extract content from (max 10)."}],"web_search":[{"type":"object","properties":{"script":[{"type":"boolean","description":"Enable web search for script generation."}],"images":[{"type":"boolean","description":"Enable web search for relevant images."}]}}],"animate_image":[{"type":"boolean","description":"Whether to animate static images using AI."}],"animate_image_max":[{"type":"number","description":"Maximum number of images to animate."}],"emotion_enhancement":[{"type":"boolean","description":"Enable emotion enhancement for more expressive voices."}],"use_native_avatar":[{"type":"boolean","description":"Use a native avatar model (audio and video generated together) for a higher quality avatar. (The video won’t have audio before the export.)"}],"avatar_model":[{"type":"string","description":"Native avatar model used to pre-split the video timeline like the export will (e.g. `omni-flash` , `veo-3-fast` , `seedance-2-5` ). Only used when `use_native_avatar` is enabled."}],"webhook_url":[{"type":"string","description":"URL to receive webhook notifications when generation completes."}],"use_space_media":[{"type":"boolean","description":"Whether to use media from your space library."}],"save_media_to_space":[{"type":"boolean","description":"Whether to save generated media to your space library."}],"enable":[{"type":"object","properties":{"subtitles":[{"type":"boolean","description":"Enable adding automatic subtitles to the video."}],"broll":[{"type":"boolean","description":"Enable automatically placing background images/videos."}],"music":[{"type":"boolean","description":"Enable adding automatic background music that matches the video style."}],"transitions":[{"type":"boolean","description":"Enable adding automatic transitions."}]},"description":"Enable or disable specific video features."}],"sequence_plan":[{"type":"array","items":[{"type":"object","properties":{"sequences":[{"type":"array","items":[{"type":"object","properties":{"text":[{"type":"object","properties":{},"description":"Text spoken during this visual fragment. Use `null` for a silent sequence (then `duration_ms` is required and the sequence must be alone in a dedicated silent block).","required":true}],"duration_ms":[{"type":"number","description":"Fixed duration in milliseconds. Only for silent sequences ( `text: null` ) — spoken sequences are always timed from the generated audio."}],"look_id":[{"type":"string","description":"Avatar look override for this sequence only. Defaults to the block’s look, then to the request-level `avatar_id` ."}],"action":[{"type":"string","description":"What the avatar does while speaking this sequence, in plain language (e.g. `He frowns thoughtfully and touches his chin` ). Applied at export by the avatar models that accept motion direction (the native models and `premium` )."}],"media":[{"type":"object","properties":{"asset_id":[{"type":"string","description":"Media id from your space library. Takes precedence over `url` ."}],"url":[{"type":"string","description":"Public URL of an image or video to display."}],"show":[{"type":"string","description":"How the media is displayed relative to the avatar: `full` (covers the whole frame), `half` (split with the avatar), `background` (behind the avatar on green screen), or `hide` (attached but not shown)."}],"start_at":[{"type":"number","description":"For videos: trim the source to start at this time (in seconds)."}]},"description":"Media displayed during this sequence. Omit it to let automatic B-roll fill the slot (only happens when no sequence of the whole plan carries a media)."}]}}],"description":"Visual fragments of this speech block, in playback order.","required":true}],"voice_id":[{"type":"string","description":"Voice for this whole block. Falls back to the request-level `voice_id` . Ignored for silent blocks."}],"audio_url":[{"type":"string","description":"Pre-recorded audio URL for this block — skips voice generation for it."}],"avatar_id":[{"type":"string","description":"Parent avatar of this block. Falls back to the request-level `avatar_id` ."}],"look_id":[{"type":"string","description":"Default avatar look for this block’s sequences."}]}}],"description":"A ready-made editing plan: a flat array of speech blocks describing the montage sequence by sequence. When provided, it takes precedence over `prompt` and `script` . See the Plan Content guide for the concepts."}]}}],"examples":{"example":{"value":{"prompt":"\u003cstring>","duration":123,"script":"\u003cstring>","voice_id":"\u003cstring>","voice_url":"\u003cstring>","avatar_id":"\u003cstring>","avatar_url":"\u003cstring>","format":"\u003cstring>","width":123,"height":123,"media_urls":[{}],"web_urls":[{}],"web_search":{"script":true,"images":true},"animate_image":true,"animate_image_max":123,"emotion_enhancement":true,"use_native_avatar":true,"avatar_model":"\u003cstring>","webhook_url":"\u003cstring>","use_space_media":true,"save_media_to_space":true,"enable":{"subtitles":true,"broll":true,"music":true,"transitions":true},"sequence_plan":[{"sequences":[{"text":{},"duration_ms":123,"look_id":"\u003cstring>","action":"\u003cstring>","media":{"asset_id":"\u003cstring>","url":"\u003cstring>","show":"\u003cstring>","start_at":123}}],"voice_id":"\u003cstring>","audio_url":"\u003cstring>","avatar_id":"\u003cstring>","look_id":"\u003cstring>"}]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"job_id":[{"type":"string","description":"Unique identifier for the generation job."}],"status":[{"type":"string","description":"Current job status: `pending` ."}],"estimated_credits":[{"type":"number","description":"Estimated credit cost for this generation."}]}}],"examples":{"example":{"value":{"job_id":"\u003cstring>","status":"\u003cstring>","estimated_credits":123}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"hoox-55eb2ddf","siteName":"Hoox API Documentation","title":"Start Video Generation - Hoox API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-23T16:23:46.345Z","originalFileLocation":"api-reference/generation/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 a video from a prompt, script, media files, or a ready-made editing plan\">\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=\"Start Video Generation - Hoox API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Start generating a video from a prompt, script, media files, or a ready-made editing plan\">\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/generation/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=Generation\u0026amp;title=Start+Video+Generation\u0026amp;description=Start+generating+a+video+from+a+prompt%2C+script%2C+media+files%2C+or+a+ready-made+editing+plan\u0026amp;theme=ca55c363cf035cd8fc1a8804\u0026amp;signature=f8aa431d61715c3be9ad8232296ced25ae6e3dcdfbff3914ab5d24c2913d3e53\">\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=\"Start Video Generation - Hoox API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Start generating a video from a prompt, script, media files, or a ready-made editing plan\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hoox-55eb2ddf.mintlify.site/_mintlify/api/og/v2?division=Generation\u0026amp;title=Start+Video+Generation\u0026amp;description=Start+generating+a+video+from+a+prompt%2C+script%2C+media+files%2C+or+a+ready-made+editing+plan\u0026amp;theme=ca55c363cf035cd8fc1a8804\u0026amp;signature=f8aa431d61715c3be9ad8232296ced25ae6e3dcdfbff3914ab5d24c2913d3e53\">\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/generation/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/generation/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/generation/start#webpage\",\"url\":\"https://docs.hoox.video/api-reference/generation/start\",\"name\":\"Start Video Generation\",\"description\":\"Start generating a video from a prompt, script, media files, or a ready-made editing plan\",\"dateModified\":\"2026-09-23T16:23:46.345Z\",\"isPartOf\":{\"@id\":\"https://docs.hoox.video#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hoox.video/api-reference/generation/start#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hoox.video/api-reference/generation/start#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hoox API Documentation\",\"item\":\"https://docs.hoox.video\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Start Video Generation\",\"item\":\"https://docs.hoox.video/api-reference/generation/start\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hoox.video/api-reference/generation/start#apireference\",\"headline\":\"Start Video Generation\",\"name\":\"Start Video Generation\",\"description\":\"Start generating a video from a prompt, script, media files, or a ready-made editing plan\",\"url\":\"https://docs.hoox.video/api-reference/generation/start\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hoox.video/api-reference/generation/start#webpage\"},\"dateModified\":\"2026-09-23T16:23:46.345Z\",\"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/generation/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","description":"Generate a video script from a prompt with cost estimation","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}","description":"Check the status of a video generation job","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","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}","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":"Start Video Generation - Hoox API Documentation","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-jJHA3WSo.js","utils-DbZn3Mjn.js","cloneDeep-CnBnaSyy.js","_Uint8Array-CMQtTgBR.js","isObject-FP1Yky1u.js","utils-Bl2DvzOJ.js","addUniqueKeysToSchema-BwOLo9p1.js","snippetPresets-BBiPpKa-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-C0px4Tml.js","isEqual-zAyttAAO.js","usePlaygroundInputsStore-Dell6dGw.js","shallow-0VKqkSqN.js","getApiPlaygroundDisplay-CP_ctPEB.js","CodeSnippet-5L35ic0s.js","CodeSnippets-DOXbNhJw.js","Page-DRLI_2Ue.js","getPastedJson-VhzT9m2P.js","icon-CD8_AtCO.js","MethodPill-DGgOMftG.js","DuplicateIcon-DZ6A_EtN.js","createIcon-DUl4oM5f.js","DynamicMarkdown-BGHukeRM.js","SectionHeading-ChrEUs8u.js","axios-vUo_bRtp.js"]}