Generate > Image to Video
Image to Video
Generate a video from a source image and text prompt.
Examples
curl -X POST https://medux-server-api-dev.lingverse.co/api/app/v1/generate/video/image_to_video \
-H 'Authorization: Bearer $MEDUX_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"aspect_ratio":"ASPECT_RATIO","clarity":"CLARITY","duration_seconds":1,"file_id":"FILE_ID","model_id":"MODEL_ID","prompt":"PROMPT","title":"Demo title"}'Auth Requirements
Authentication is required via Authorization header.
Preconditions
Choose an available model and enter a prompt.
Provide exactly one uploaded image as file_id and a non-empty prompt.
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/jsonAuthorizationstringrequiredBearer token or API key.
Location: HEADER
aspect_ratiostringoptionalRequested output aspect ratio, for example 16:9 or 9:16.
Location: BODY
claritystringoptionalRequested output clarity, for example 720P or 1080P.
Location: BODY
duration_secondsint32optionalRequested output duration in seconds.
Location: BODY
file_idstringrequiredNo description provided.
Location: BODY
model_idstringoptionalStable public Medux model identifier.
Location: BODY
promptstringrequiredNo description provided.
Location: BODY
titlestringoptionalNo description provided.
Location: BODY
Response
Response
application/jsoncodeint32optionalresponse code enums:
.. 0: ok
.. 12: invalid input
.. 1410: invalid model
.. 1409: paid plan required
.. 1401: insufficient credits
.... 1401 ~ 1499 是 media
.. 1402: asset category mismatch
.. 1404: provider error
.. 1405: provider timeout
.. 13: unauthenticated
.. 16: rate limit
.. 99: server error
Available options: 0 12 1410 1409 1401 1402 1404 1405 13 16 99
Location: RESPONSE
data.assetobjectoptionalNo description provided.
Location: RESPONSE
data.paid_plan_requiredobjectoptionalNo description provided.
Location: RESPONSE
data.taskobjectoptionalNo description provided.
Location: RESPONSE
messagestringoptionalNo description provided.
Available options: ok invalid input invalid model paid plan required insufficient credits asset category mismatch provider error provider timeout unauthenticated rate limit server error
Location: RESPONSE
MCP Tool
This endpoint is also available through the Medux-hosted remote MCP service.
Image to Video
Animate exactly one source image with a non-empty prompt. Inspect the model catalog and estimate credits before submitting.
Invocation Example
Generate a 5 second 720P 16:9 video from uploaded image {file_id} and this motion prompt using model_id seedance-2-0-mini. This model requires Starter or higher.
paid_plan_required if the account is below Starter.
On this page