MeduxMedux

Generate > Omni Reference to Video

Omni Reference to Video

Generate media with the capability-specific input contract.

POST/api/app/v1/generate/video/omni_reference_to_video

Examples

curl -X POST https://api.medux.io/api/app/v1/generate/video/omni_reference_to_video \
  -H 'Authorization: Bearer $MEDUX_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"aspect_ratio":"ASPECT_RATIO","audio_file_ids":["AUDIO_FILE_ID"],"clarity":"CLARITY","duration_seconds":1,"image_file_ids":["FILE_ID"],"model_id":"MODEL_ID","prompt":"PROMPT","title":"Demo title","video_file_ids":["FILE_ID"]}'

Auth Requirements

Authentication is required via Authorization header.

Preconditions

Choose an available model and enter a prompt.

Provide a non-empty prompt and supported image_file_ids, video_file_ids, or audio_file_ids. MiniMax H3 accepts only images; Wan 3.0 limits combined reference video and audio duration to 15 seconds.

Read generation_options from the model catalog; only listed parameter values are accepted.

Use clarity for output resolution. Estimate credits with the same parameters before submission.

Request

Body

application/json
Authorizationstringrequired

Bearer token or API key.

Location: HEADER

aspect_ratiostringoptional

No description provided.

Location: BODY

audio_file_idsarray<string>optional

No description provided.

Location: BODY

claritystringoptional

No description provided.

Location: BODY

duration_secondsint32optional

No description provided.

Location: BODY

image_file_idsarray<string>optional

No description provided.

Location: BODY

model_idstringoptional

No description provided.

Location: BODY

promptstringrequired

No description provided.

Location: BODY

titlestringoptional

No description provided.

Location: BODY

video_file_idsarray<string>optional

No description provided.

Location: BODY

Response

Response

application/json
codeint32optional

response code enums:
.. 0: ok
.. 12: invalid input
.. 1410: invalid model
.. 1409: paid plan required
.. 1401: insufficient credits
.... 1401 ~ 1499 是 media
.. 13: unauthenticated
.. 1404: provider error
.. 99: server error

Available options: 0 12 1410 1409 1401 13 1404 99

Location: RESPONSE

data.assetobjectoptional

No description provided.

Location: RESPONSE

data.paid_plan_requiredobjectoptional

No description provided.

Location: RESPONSE

data.taskobjectoptional

No description provided.

Location: RESPONSE

messagestringoptional

No description provided.

Available options: ok invalid input invalid model paid plan required insufficient credits unauthenticated provider error server error

Location: RESPONSE

MCP Tool

This endpoint is also available through the Medux-hosted remote MCP service.

Omni Reference to Video

Generate a video using model-supported reference media. Inspect the model catalog and estimate credits before submitting.

Invocation Example

Create a video guided by my reference image using Seedance 2.0 Mini.

medux_video_generate_omni_reference_to_videoResult: video
model_idseedance-2-0-miniimage_file_ids["{image_file_id}"]prompt{prompt}

Check the selected model's input limits and account availability before submitting.