Start a generation
Start an image or video run. This is the API’s one paid operation and it is
asynchronous by design: a video takes minutes, so the call returns a job handle
immediately and you poll GET /v1/generations/{id}.
inputs values are either an asset id or a public https URL (adopted as an asset
automatically). The URL must serve the media file itself: it is read once before the
run starts, and a web page, an unreachable link or the wrong kind of media is a 400
with nothing charged. The one page link taken is a TikTok / Instagram post link in a
video input, whose video is imported into the library. params are validated against
the model’s own schema — an unknown key is a 400, never a silent drop, because a
silently ignored parameter on a paid call is the worst possible outcome.
Send Idempotency-Key and a retry returns the ORIGINAL generation instead of paying
for a second run.
Authorizations
Headers
Body
Override the tool's default model. Must belong to the tool's stage.
nano-banana-pro, nano-banana-2-text-to-image, nano-banana-2-1-text-to-image, gpt-image-v2-text-to-image, gpt-image-v2-5-flare-text-to-image, gpt-image-v2-5-sunburst-text-to-image, gpt-image-v2-6-flare-text-to-image, gpt-image-v2-6-sunburst-text-to-image, kling-image-4-0-text-to-image, nano-banana-pro-edit, nano-banana-2-edit, nano-banana-2-1-edit, bytedance-seedream-v4-5-edit, gpt-image-v2-edit, gpt-image-v2-5-flare-edit, gpt-image-v2-5-sunburst-edit, gpt-image-v2-6-flare-edit, gpt-image-v2-6-sunburst-edit, kling-image-4-0-edit, bytedance-seedance-2-5-image-to-video, kling-video-4-0-image-to-video, bytedance-seedance-2-0-image-to-video, bytedance-seedance-2-0-image-to-video-fast, xai-grok-imagine-video-1-5-preview-image-to-video, minimax-h3-max-image-to-video, minimax-h3-max-turbo-image-to-video, kling-v3-4k-image-to-video, kling-v3-pro-image-to-video, kling-v3-standard-image-to-video, kling-o3-standard-image-to-video, google-gemini-omni-flash-image-to-video, veo-3-1-lite-text-to-video, veo-3-1-lite-first-last-frame-to-video, veo3-1-text-to-video, veo3-1-first-last-frame-to-video, veo3-1-first-last-frame-to-video-fast, veo3-1-reference-to-video, flux-3-max-text-to-video, flux-3-max-keyframes-to-video, flux-3-max-image-to-video, bytedance-seedance-2-0-reference-to-video, bytedance-seedance-2-0-mini-reference-to-video, bytedance-seedance-2-0-reference-to-video-fast, bytedance-seedance-2-5-reference-to-video, kling-video-4-0-reference-to-video, xai-grok-imagine-reference-to-video, google-gemini-omni-flash-reference-to-video, kling-v3-standard-motion-control, hook-write, caption-burn, short-clip, bytedance-seedance-2-0-text-to-video, kling-video-4-0-text-to-video, alibaba-wan-3-0-prime-text-to-video, alibaba-wan-3-0-prime-image-to-video, alibaba-wan-3-0-prime-reference-to-video, alibaba-wan-3-0-pro-text-to-video, alibaba-wan-3-0-pro-image-to-video, alibaba-wan-3-0-pro-reference-to-video, minimax-h3-max-text-to-video, minimax-h3-max-turbo-text-to-video, sync-3-lipsync, sync-lipsync-v2-pro, ffmpeg-api-merge-audio-video, elevenlabs-zrm-text-to-speech, elevenlabs-zrm-text-to-dialogue, change-voice, talking-head, merge-clips, character-swap-transfer, character-swap-replace, character-swap-recast, reshoot-seedance-2-0, reshoot-kling-4-0, reshoot-seedance-2-5, seedance-2-5-video-edit, video-upscale, kling-video-4-0-video-edit The avatar (the brand's default, or avatar_id) is added to the model's character slot so it stays recognisable across runs, which also satisfies a required character slot (ugc-video's characters) without an inputs entry. Set false when the output must NOT contain the avatar (a product shot on the brand's account, a scene without it); a required character slot then needs the face in inputs.
Response
An idempotent replay: the original generation, unchanged and not re-charged.