apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

Image Series

Video series

POSTMuse Video Generation

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Video series / Muse

MusePOSTmuse-video

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.

POSThttps://api.apimax.ai/v1/videos
Try it
Bearer API KeyJSONServer-side call

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#

http
POST /v1/videos

Requests must carry an API key:

http
Authorization: Bearer <token>
Content-Type: application/json

Create a video task#

cURL
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
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
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:

FieldTypeRequiredDescription
modelstringYesFixed as muse-video
promptstringYesDescription of the video content, subject motion, camera language, and style
secondsstringNoVideo duration in seconds as a string, e.g. "4", "8", "12"; defaults to 1 second when omitted; the upstream currently accepts 1-60 seconds
sizestringNoTarget canvas as WIDTHxHEIGHT, e.g. 1280x720, 720x1280; available values follow current upstream limits
imagesstring[] / object[]NoReference images, at most 10; entries are image URL strings or {"url": ...} objects; aliases reference_images, input_reference
callback_urlstringNoHTTPS 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#

200
{
  "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
curl --request GET \
  --url https://api.apimax.ai/v1/videos/video_01J... \
  --header 'Authorization: Bearer <token>'

Task statuses:

statusDescription
queuedAccepted, awaiting submission or upstream queueing
in_progressGenerating
completedGeneration finished; the result URL is available
failedGeneration failed; inspect error.code and error.message

Completed response example:

200
{
  "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:

http
GET /v1/videos/{video_id}/content

Callback#

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#

HTTPcodeDescription
400invalid_request_errorMissing or invalid parameter, e.g. seconds outside the available tiers
401unauthorizedAPI key missing or invalid
403insufficient_user_quotaInsufficient quota; please top up
403permission_deniedThe token does not have access to this model
503model_not_foundWrong model name, or no channel available for this model in your group
429rate_limit_exceededRate or quota limit reached
502invalid_responseUpstream response lacks a valid task ID
503service_unavailableUpstream 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.

Next steps

All docs
Relink Audio URLsSynchronously fetch ready-to-use audio URLs by Suno clip_id.Upsample Style TagsPolish and expand style tags and lyrics into a fuller style description.Get Style Inspiration SuggestionsGet random style or inspiration suggestions from the Suno upstream.Method 1: Create a Voice from an Existing SongCreate a vocal voice directly from a song clip already generated in this pool.Upload AudioImport user audio as a Suno-owned clip; returns an async upload task ID. With copyright=true the request switches to the copyright pipeline.Query Quota UsageUse an API key to query the remaining credits, used credits, and unlimited-quota status of the current key and its owning user.
On this page
OverviewOverviewAPICreate a video taskReference-guided video generation (multi-image)Request fieldsBillingSubmission responsePoll a taskCallbackCommon errorsNext steps
API

POST /v1/videos