Every API here is available over the APIs.io API and to AI agents over MCP.
{"openapi":"3.1.0","info":{"title":"Orchestrator API","version":"0.0.1"},"paths":{"/uploads/token":{"post":{"tags":["uploads"],"summary":"Generate Upload Token","operationId":"generate_upload_token_uploads_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/uploads/session":{"post":{"tags":["uploads"],"summary":"Create Upload Session","description":"The complete_token is valid for 24h so a reconciliation sweeper can finish\ninterrupted uploads on the client's behalf.","operationId":"create_upload_session_uploads_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/uploads/complete":{"post":{"tags":["uploads"],"summary":"Complete Upload","description":"Idempotent: the workflow id is derived from the upload_id, so duplicate calls (e.g.\nthe browser racing the platform's reconciliation sweeper) return the same workflow\nid instead of starting a second workflow.","operationId":"complete_upload_uploads_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowSubmissionResponse"},{"$ref":"#/components/schemas/UploadsWorkflowResult"},{"$ref":"#/components/schemas/VideoUploadsWorkflowResult"},{"$ref":"#/components/schemas/AudioUploadsWorkflowResult"}],"title":"Response Complete Upload Uploads Complete Post"}}}},"400":{"description":"Staged object invalid: size mismatch or multipart assembly failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"401":{"description":"Session token invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"404":{"description":"No staged object for this session; upload before completing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"409":{"description":"Multipart upload incomplete; retry once all parts have finished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/uploads/upload":{"post":{"tags":["uploads"],"summary":"Upload Image","description":"A `source_url` is downloaded by the workflow, never inside this request: the\nresponse is `{workflow_id, status: \"submitted\"}` (or the result when `sync`), and\nthe webhook, when the token has one, fires as for a file. `max_dimension` caps the\nlongest side in pixels; `output_format` \"jpeg\" re-encodes every raster image as a\nJPEG, flattening transparency onto white.","operationId":"upload_image_uploads_upload_post","parameters":[{"name":"X-Upload-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Token"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_image_uploads_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UploadSyncResponse"},{"$ref":"#/components/schemas/WorkflowSubmissionResponse"},{"$ref":"#/components/schemas/UploadsWorkflowResult"}],"title":"Response Upload Image Uploads Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/uploads/upload-video":{"post":{"tags":["uploads"],"summary":"Upload Video","description":"A `source_url` is downloaded by the workflow, never inside this request, as on\n`/uploads/upload`.","operationId":"upload_video_uploads_upload_video_post","parameters":[{"name":"X-Upload-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Token"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_video_uploads_upload_video_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UploadSyncResponse"},{"$ref":"#/components/schemas/WorkflowSubmissionResponse"},{"$ref":"#/components/schemas/VideoUploadsWorkflowResult"}],"title":"Response Upload Video Uploads Upload Video Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/uploads/download/{s3_key}":{"get":{"tags":["uploads"],"summary":"Download Asset","description":"The requested S3 key must be the token's path or sit under it as a directory.","operationId":"download_asset_uploads_download__s3_key__get","parameters":[{"name":"s3_key","in":"path","required":true,"schema":{"type":"string","title":"S3 Key"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"enum":["webp","jpeg","png","avif","pdf","svg","original"],"type":"string"},{"type":"null"}],"title":"Format"}},{"name":"quality","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Quality"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"X-Upload-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/veo3":{"post":{"tags":["workflows"],"summary":"Submit Veo3 Workflow","description":"Submit a Veo3 workflow for video generation.\n\n## Capabilities\n- **Text-to-video**: prompt only\n- **Image-to-video**: prompt + `starting_image_key`\n- **Frame interpolation**: `starting_image_key` + `ending_image_key` (requires 8s)\n- **Reference images**: up to 3 `reference_image_keys` (requires 8s and 16:9)\n- **Duration**: 4, 6, or 8 seconds (default 6)\n- **Aspect ratio**: 16:9 or 9:16. An explicit value always wins (the starting image is padded to fit); auto-detected from the starting image when omitted\n- **Resolution**: `720p`, `1080p` (default), or `4k`\n\n## Resolution and cost\n\n`4k` is supported at 16:9 and 9:16 for all durations. It is billed at a premium on Vertex AI — roughly $0.60/s with audio versus $0.40/s at 1080p (~1.5x), so a 8s 4K clip costs about $4.80. Use `720p`/`1080p` for drafts and reserve `4k` for finals.\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_veo3_workflow_workflows_veo3_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Veo3WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/gemini_omni_flash":{"post":{"tags":["workflows"],"summary":"Submit Gemini Omni Flash Workflow","description":"Submit a Gemini Omni Flash workflow for video generation via the Gemini API.\n\nGemini Omni Flash is Google's any-input-to-video model. Two input styles are accepted (use one, not both):\n\n## Style 1 — interleaved parts\nA `parts` list of text/image/video entries (authoring order preserved). Image parts carry a `role`:\n- `first_frame` — at most one; enables image-to-video\n- `last_frame` — at most one, next to a `first_frame`; the clip ends on it (`duration` 3-10 when set)\n- `reference_image` — up to 6; enables reference-to-video (style/subject)\n\nA video part with role `reference_video` is a reference clip (up to 3, or 1 when `duration` is above 10; each is cut to its first 3 s). Reference images and videos combine; neither combines with a frame or a source video.\n\n```json\n{\"parts\": [\n {\"type\": \"image\", \"s3_key\": \"uploads/hero.png\", \"role\": \"first_frame\"},\n {\"type\": \"text\", \"content\": \"slow dolly-in as the logo lights up\"}\n]}\n```\n\nA video part (at most one, no `role`, not combinable with image parts) switches to **video editing** — the clip is restyled/modified per the text instructions:\n\n```json\n{\"parts\": [\n {\"type\": \"video\", \"s3_key\": \"uploads/clip.mp4\"},\n {\"type\": \"text\", \"content\": \"restyle into a watercolor painting, keep the motion\"}\n]}\n```\nImage and video parts accept `s3_key` or a public `url`.\n\n## Style 2 — discrete prompt + keys\n- **Text-to-video**: `prompt` only\n- **Image-to-video**: `prompt` + `starting_image_key` (+ optional `ending_image_key`)\n- **Reference-to-video**: `prompt` + up to 6 `reference_image_keys` and/or up to 3 `reference_video_keys`\n- **Video editing**: `prompt` + `input_video_key`\n- **Extend**: `task: \"extend\"` + `prompt` + `input_video_key` + `duration`\n- **Upscale**: `task: \"upscale\"` + `input_video_key` + `resolution` (`prompt` optional)\n- **Follow-up edit**: `prompt` + `previous_interaction_id`\n\nThe frame keys, the reference keys and `input_video_key` cannot be combined.\n\n## Common\n- **Task**: `generate`, `edit`, `extend` or `upscale`. Omitted, a request with a source video is an edit and any other request is a generation.\n- **Aspect ratio**: `16:9` or `9:16` (auto-detected from the first-frame image when omitted)\n- **Duration**: `3`-`15` seconds for a generation (`3`-`10` with a `last_frame`); the model decides when omitted.\n- **Resolution**: `360p`, `720p`, `1080p` or `4k` for a generation; 720p when omitted. The result's `resolution` is measured from the output.\n\n## Extend\n`task: \"extend\"` with one source video (`input_video_key` or a video part), a prompt and `duration` = the seconds to add (`3`-`10`, required). Source plus continuation is at most 30s. The result is the whole clip: `duration` is its measured length, `continuation_seconds` the added seconds and `source_seconds` the source length.\n\n## Upscale\n`task: \"upscale\"` with one source video (at most 15s, short side at most 720) and `resolution`: a 360p-class source goes to `720p` or `1080p`, a 720p-class source to `1080p` or `4k`. The prompt is optional. The source is sent at its own resolution, and the result's `duration` and `resolution` are measured from the output.\n\n## Follow-up edit\n`previous_interaction_id` (the `interaction_id` of an earlier result, kept 7 days) plus a prompt, and nothing else, edits that result again. `task` may be omitted or `edit`; media, `duration`, `aspect_ratio` and `resolution` are refused. An expired id fails the run with `invalid_input`; start a new generation instead.\n\n## Video editing limits\n- Input clips up to 15s (a longer clip is rejected); MP4/WebM/MPEG pass through, other formats and anything above 720p-class resolution are transcoded down automatically.\n- The edited output preserves the input's aspect ratio and (near) duration, with synced audio.\n- `aspect_ratio`, `duration` and `resolution` cannot be set for edits (the output tracks the input clip).\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_gemini_omni_flash_workflow_workflows_gemini_omni_flash_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiOmniFlashWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/kling":{"post":{"tags":["workflows"],"summary":"Submit Kling Workflow","description":"Submit a Kling workflow for video generation.\n\nIf image_key is provided, uses image-to-video mode.\nIf image_key is omitted, uses text-to-video mode.\nThe resulting video and a preview thumbnail are uploaded to S3.","operationId":"submit_kling_workflow_workflows_kling_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/kling_turbo":{"post":{"tags":["workflows"],"summary":"Submit Kling Turbo Workflow","description":"Submit a Kling 2.5 Turbo workflow for video generation.\n\nIf image_key is provided, uses image-to-video mode.\nIf image_key is omitted, uses text-to-video mode.\ntail_image_key provides an optional end-frame image (i2v only).\nThe resulting video and a preview thumbnail are uploaded to S3.","operationId":"submit_kling_turbo_workflow_workflows_kling_turbo_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingTurboWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/kling_v3":{"post":{"tags":["workflows"],"summary":"Submit Kling V3 Workflow","description":"Submit a Kling v3 workflow for video generation via fal.ai.\n\n## Tiers (`tier`)\n| tier | output | price |\n|---|---|---|\n| `standard` | 720p | ~$0.112/s |\n| `pro` (default) | 1080p | ~$0.112/s, ~$0.168/s with audio |\n| `4k` | native 4K | flat $0.42/s |\n\n## Modes\n- **Text-to-video**: prompt (or multi_prompt) only. `aspect_ratio` (`16:9`, `9:16`, `1:1`) applies here; fal defaults to `16:9` when omitted.\n- **Image-to-video**: add `image_key` (start frame) and optionally `end_image_key` (end frame). The aspect ratio is derived from the image, so `aspect_ratio` must be omitted. Images must be ≤10MB, ≥300x300, with an aspect ratio between 0.40 and 2.50.\n\n## Prompting\nProvide exactly one of:\n- **prompt**: a single shot (≤2500 chars)\n- **multi_prompt**: a multi-shot storyboard, e.g. `[{\"prompt\": \"wide establishing shot\", \"duration\": 5}, {\"prompt\": \"close-up on the product\", \"duration\": 5}]` (per-segment duration 1–15s)\n\n## Other parameters\n- **duration**: 3–15 seconds (default 5)\n- **generate_audio**: native audio, **on by default** (pro tier costs more with audio enabled)\n- **negative_prompt**, **cfg_scale** (0–1, default 0.5)\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_kling_v3_workflow_workflows_kling_v3_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingV3WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/flux_3":{"post":{"tags":["workflows"],"summary":"Submit Flux 3 Workflow","description":"Submit a FLUX 3 workflow for video generation via fal.ai.\n\n## Resolutions (`resolution`)\n| resolution | price |\n|---|---|\n| `720p` (default) | $0.17/s |\n| `1080p` | $0.29/s |\n\nAudio is price-neutral.\n\n## Modes\n- **Text-to-video**: `prompt` only.\n- **Image-to-video**: add `image_key` (start frame).\n- **First-last-frame**: add `image_key` and `end_image_key`; the clip interpolates between the two frames.\n\n`aspect_ratio` (`21:9`, `2:1`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`) is accepted in every mode. When omitted the provider follows the start frame, or picks a ratio for text-to-video.\n\n## Other params\n- **prompt**: ≤2500 chars\n- **duration**: 5-20 seconds (default 5)\n- **generate_audio**: native, in-sync audio track (default true)\n\nThe resulting video and a preview thumbnail are uploaded to S3.","operationId":"submit_flux_3_workflow_workflows_flux_3_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flux3WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/grok":{"post":{"tags":["workflows"],"summary":"Submit Grok Workflow","description":"Submit a Grok video workflow via fal.ai.\n\n## Capabilities\n- **Image-to-video**: Provide prompt + starting_image_key\n- **Text-to-video**: Provide prompt only; an image is first generated via Grok text-to-image, then animated via image-to-video\n- **Aspect ratio**: 16:9, 4:3, 1:1, 9:16, 3:4, 3:2, 2:3 (auto-detected from image when image provided)\n- **Resolution**: 720p, 480p\n\nThe resulting video and a WebP thumbnail are uploaded to S3.","operationId":"submit_grok_workflow_workflows_grok_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrokWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/grok_v15":{"post":{"tags":["workflows"],"summary":"Submit Grok V15 Workflow","description":"Submit a Grok Imagine v1.5 image-to-video workflow via fal.ai.\n\nHigher-quality successor to ``/grok``. v1.5 is **image-to-video only**, so a ``starting_image_key`` is required. There is no aspect_ratio parameter; the output follows the input image.\n\n## Parameters\n- **prompt**: motion/scene description (required)\n- **starting_image_key**: S3 key of the input image (required)\n- **duration**: video length in seconds (default 6)\n- **resolution**: 720p, 480p (default 720p)\n\nThe resulting video and a WebP thumbnail are uploaded to S3.","operationId":"submit_grok_v15_workflow_workflows_grok_v15_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrokV15WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/remove_background":{"post":{"tags":["workflows"],"summary":"Submit Remove Background Workflow","description":"Submit a background removal workflow.\n\nProvide either ``image_url`` (a public URL) or ``image_key`` (an S3 key that is presigned at runtime). Returns a PNG of the subject on a transparent background, cropped to the subject, plus a WebP thumbnail. With ``autocrop`` false the PNG keeps the source's size, and ``subject`` holds the cropped copy with its box in that PNG. An optional ``prompt`` changes what is kept.","operationId":"submit_remove_background_workflow_workflows_remove_background_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveBackgroundWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/seed_dance_2_5":{"post":{"tags":["workflows"],"summary":"Submit Seed Dance 2 5 Workflow","description":"Submit a Seedance 2.5 workflow for video generation via BytePlus ModelArk.\n\nSeedance 2.5 generates clips of up to **30 seconds** and accepts up to 50 mixed references. Output caps out at 1080p.\n\nOne endpoint, four modes — the mode is derived from the inputs.\n\n## Text-to-video\n`prompt` only.\n\n## Image-to-video\n`prompt` + `image_key` (the first frame). Add `end_image_key` to generate between a first and last keyframe. Images must be JPEG, PNG or WebP, max 30MB.\n\n## Video editing\n`prompt` + `input_video_key`: the prompt is an instruction applied to the clip (cite it as `@Video1`), optionally with `reference_image_keys` and `reference_audio_keys` for the material the edit brings in. The output keeps the clip's aspect ratio and runs exactly as long as it, so `duration` and `aspect_ratio` are rejected; the clip must be 4–30s. Cannot be combined with `image_key` or `reference_video_keys`.\n\n## Reference-to-video\n`prompt` + any of `reference_image_keys` (max 30), `reference_video_keys` (max 10) and `reference_audio_keys` (max 10) — at most 50 files in total. Reference video and audio clips must each be 2–30s, with a combined length of at most 30s. Audio cannot be the only reference type: at least one reference image or video is required.\n\nCite the references in the prompt with an `@` handle matching list order:\n\n```json\n{\n \"prompt\": \"@Image1 walks into the room while @Video1 plays on the TV, scored by @Audio1\",\n \"reference_image_keys\": [\"uploads/actor.png\"],\n \"reference_video_keys\": [\"uploads/broadcast.mp4\"],\n \"reference_audio_keys\": [\"uploads/score.mp3\"]\n}\n```\n\n## Common\n- **duration**: `\"4\"`–`\"30\"` seconds, or `\"auto\"` (default) to let the model pick from the prompt. Not settable for edits\n- **resolution**: `\"480p\"`, `\"720p\"` (default) or `\"1080p\"`. Cost scales with output pixels — 1080p runs ~2.4x a 720p clip of the same length\n- **aspect_ratio**: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, or `auto`. Omitted means `auto` — inferred from the input image, or from the prompt in text-to-video. Not settable for edits\n- **generate_audio**: synchronized sound effects, ambience and lip-synced speech (default `true`). Pricing is the same either way\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_seed_dance_2_5_workflow_workflows_seed_dance_2_5_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedDance25WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/minimax_h3":{"post":{"tags":["workflows"],"summary":"Submit Minimax H3 Workflow","description":"Submit a MiniMax H3 Max (Hailuo 3.0) workflow for video generation via fal.ai.\n\nOne endpoint, three modes — the mode is derived from the inputs.\n\n## Text-to-video\n`prompt` only. Optional `aspect_ratio`: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`.\n\n## Image-to-video\n`prompt` + `image_key` (the first frame). Add `end_image_key` to generate between a first and last keyframe. The output aspect ratio follows the input image, so `aspect_ratio` is rejected in this mode.\n\n## Reference-to-video\n`prompt` + any of `reference_image_keys` (max 9), `reference_video_keys` (max 3) and `reference_audio_keys` (max 3) — at most 12 files in total. Reference video and audio clips must each be 2–15s, with a combined length of at most 15s per type. Audio cannot be the only reference type: at least one reference image or video is required.\n\nCite the references positionally in the prompt, matching list order:\n\n```json\n{\n \"prompt\": \"Image 1 walks into the room while Video 1 plays on the TV, scored by Audio 1\",\n \"reference_image_keys\": [\"uploads/actor.png\"],\n \"reference_video_keys\": [\"uploads/broadcast.mp4\"],\n \"reference_audio_keys\": [\"uploads/score.mp3\"]\n}\n```\n\n`aspect_ratio` accepts `adaptive` (the default on fal) in this mode only.\n\n## Common\n- **duration**: 5–15 seconds (default 5)\n- **resolution**: `480P` or `768P` (default `768P`). h3-max has no 2K tier\n- **Audio**: MiniMax H3 Max embeds native synchronized audio in the 24fps output MP4 — there is no separate audio toggle, and no `negative_prompt`, `prompt_optimizer` or `seed` parameter\n- **Prompt expansion**: always sent as `balanced` (~1s). The slower `quality` mode (~30s) is not exposed\n- **Pricing**: $0.08/s at 768P, $0.05/s at 480P\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_minimax_h3_workflow_workflows_minimax_h3_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinimaxH3WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/mock":{"post":{"tags":["workflows"],"summary":"Submit Mock Workflow","description":"Submit a mock workflow for local development and testing.\n\nThis endpoint generates a minimal valid MP4 video without calling real APIs. Useful for testing webhook integrations and downstream processing.","operationId":"submit_mock_workflow_workflows_mock_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MockWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/nano_banana_pro_parts":{"post":{"tags":["workflows"],"summary":"Submit Nano Banana Pro Parts Workflow","description":"Submit a Nano_banana Pro workflow with interleaved text/image parts.\n\nThis endpoint allows images to be referenced inline with text prompts, enabling more contextual image generation. Example request body:\n\n{\n \"parts\": [\n {\"type\": \"image\", \"url\": \"https://example.com/product.jpg\"},\n {\"type\": \"text\", \"content\": \"Use this product with the following style...\"},\n {\"type\": \"image\", \"s3_key\": \"uploads/style.png\"},\n {\"type\": \"text\", \"content\": \"And include this logo:\"},\n {\"type\": \"image\", \"url\": \"https://example.com/logo.png\"}\n ],\n \"aspect_ratio\": \"1:1\",\n \"image_size\": \"2K\"\n}","operationId":"submit_nano_banana_pro_parts_workflow_workflows_nano_banana_pro_parts_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProPartsWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/nano_banana_pro_resize":{"post":{"tags":["workflows"],"summary":"Submit Nano Banana Pro Resize Workflow","description":"Resize an input image to a target aspect ratio via Gemini outpainting.\n\nProvide one input image (image_url or image_s3_key) and a target aspect as `[width, height]` (e.g. [13, 5]). The model preserves the subject's real-world proportions and outpaints the surrounding scene to fill the new aspect ratio.\n\nOutput AR matches the target within ~1%; pixel dimensions are chosen by the model and cannot be controlled exactly. Supported aspect range is 1:3 to 3:1; values outside this range are rejected.\n\nExample:\n\n{\n \"image_url\": \"https://example.com/portrait.jpg\",\n \"target_aspect\": [13, 5]\n}","operationId":"submit_nano_banana_pro_resize_workflow_workflows_nano_banana_pro_resize_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProResizeWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTT
# --- truncated at 32 KB (475 KB total) ---
# Full source: https://artifacts.apis.io/rawa-ai/openapi/_original/rawa-ai-api-openapi.json