Docs / Video series / Muse
Muse Video Generation
Call Muse Video through the official OpenAI video API with official-format parameters (model/prompt/seconds/size), supporting text-to-video and multi-reference generation with up to 10 images, billed per second, with async task submission, polling, and content download.
Overview#
Muse Video is a Muse-series video generation model. It creates async generation tasks through the official OpenAI video API with parameters identical to the official OpenAI format (model, prompt, seconds, size) and supports text-to-video and multi-reference video generation (up to 10 reference images). A successful submission returns a task ID immediately; poll until completed, then read the result URL and download the MP4.
The public model name for this page is muse-video. Billing is per second of generated video; see the platform Model Pricing page for the unit price.
API#
POST /v1/videosRequests must carry an API key:
Authorization: Bearer <token>
Content-Type: application/jsonCreate a video task#
curl --request POST \
--url https://api.apimax.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "muse-video",
"prompt": "A snowy mountain camp at dawn; a climber unzips the tent while the camera rises slowly from a close-up to an aerial view",
"seconds": "8",
"size": "1280x720"
}'Equivalent submission path: POST /v1/videos/generations (unified video API, same request body).
Reference-guided video generation (multi-image)#
Pass 1-10 reference images (people, scenes, objects, styles) and the model composes them into the video following the prompt. A JSON body uses an images array whose entries are image URL strings or {"url": ...} objects:
curl --request POST \
--url https://api.apimax.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "muse-video",
"prompt": "Have the person from image 1 run across the snow field from image 2, cinematic tracking shot",
"seconds": "8",
"size": "1280x720",
"images": [
"https://example.com/person.png",
{ "url": "https://example.com/snow-field.jpg" }
]
}'reference_images and input_reference are aliases of images with the same entry format; when several are present the first non-empty one wins, in the order images -> reference_images -> input_reference.
Files can also be uploaded directly with a multipart form using the input_reference file field (official OpenAI style) or a repeatable image field:
curl --request POST \
--url https://api.apimax.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--form 'model=muse-video' \
--form 'prompt=Have the person from the reference image run across the snow field' \
--form 'seconds=8' \
--form 'input_reference=@./person.png' \
--form 'image=@./snow-field.jpg'Reference inputs accept images only, at most 10; each multipart file must be at most 10 MiB. Empty references (missing field, empty array, or empty string) fall back to plain text-to-video without an error.
Request fields#
Parameters follow the official OpenAI video API:
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Fixed as muse-video |
prompt | string | Yes | Description of the video content, subject motion, camera language, and style |
seconds | string | No | Video duration in seconds as a string, e.g. "4", "8", "12"; defaults to 1 second when omitted; the upstream currently accepts 1-60 seconds |
size | string | No | Target canvas as WIDTHxHEIGHT, e.g. 1280x720, 720x1280; available values follow current upstream limits |
images | string[] / object[] | No | Reference images, at most 10; entries are image URL strings or {"url": ...} objects; aliases reference_images, input_reference |
callback_url | string | No | HTTPS terminal-state callback URL; invoked by the gateway, never forwarded upstream |
The gateway forwards seconds and size per the official OpenAI contract; the upstream may impose additional limits on duration tiers and resolution combinations. Handle upstream parameter errors instead of assuming every combination is accepted.
Billing#
Billed per second of generated video. The requested duration is pre-held at submission and settled by the actual generated duration after completion; see the platform Model Pricing page for the unit price.
Submission response#
{
"id": "video_01J...",
"object": "video",
"model": "muse-video",
"status": "queued",
"progress": 0,
"created_at": 1780000000
}Save the returned id (the task ID). Upstream internal request IDs are never returned.
Poll a task#
curl --request GET \
--url https://api.apimax.ai/v1/videos/video_01J... \
--header 'Authorization: Bearer <token>'Task statuses:
status | Description |
|---|---|
queued | Accepted, awaiting submission or upstream queueing |
in_progress | Generating |
completed | Generation finished; the result URL is available |
failed | Generation failed; inspect error.code and error.message |
Completed response example:
{
"id": "video_01J...",
"object": "video",
"model": "muse-video",
"status": "completed",
"progress": 100,
"created_at": 1780000000,
"completed_at": 1780000150,
"seconds": "8",
"size": "1280x720",
"url": "https://example.com/generated-video.mp4"
}Read the result URL from the top-level url field.
Fetch the video content directly through the gateway:
GET /v1/videos/{video_id}/contentCallback#
With callback_url set, the gateway POSTs the terminal result when the task reaches completed or failed. The field is stripped before the upstream submission so the upstream cannot bypass the gateway. Callback receivers should treat the task id idempotently and keep polling as a fallback.
Common errors#
| HTTP | code | Description |
|---|---|---|
| 400 | invalid_request_error | Missing or invalid parameter, e.g. seconds outside the available tiers |
| 401 | unauthorized | API key missing or invalid |
| 403 | insufficient_user_quota | Insufficient quota; please top up |
| 403 | permission_denied | The token does not have access to this model |
| 503 | model_not_found | Wrong model name, or no channel available for this model in your group |
| 429 | rate_limit_exceeded | Rate or quota limit reached |
| 502 | invalid_response | Upstream response lacks a valid task ID |
| 503 | service_unavailable | Upstream temporarily unavailable or internal error |
When generation fails asynchronously, the task enters failed. Clients should surface error.message and let users adjust inputs and resubmit as needed.
Do not repeatedly submit while a task is queued or in_progress. Keep polling the original task; create a new one only after it reaches failed and a retry is confirmed necessary.

