MeduxMedux

Generate > Text Driven Video

Text Driven Video

Create an avatar video from text and a reusable avatar.

POST/api/app/v1/generate/video/text_driven

Examples

curl -X POST https://medux-server-api-dev.lingverse.co/api/app/v1/generate/video/text_driven \
  -H 'Authorization: Bearer $MEDUX_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"aspect_ratio":"ASPECT_RATIO","avatar_asset_id":"AVATAR_ASSET_ID","clarity":"CLARITY","duration_seconds":1,"links":["https://example.com/reference"],"model":"MODEL","model_id":"MODEL_ID","text":"Hello from Medux","title":"Demo title","voice_asset_id":"VOICE_ASSET_ID"}'

Media Samples

Approved examples for understanding request inputs, response shape, and official example output.

Official text-driven talking video

This example uses talking-video-text-standard.

Sample request

Example input for this capability.

avatar_asset_idyBxBBOfbHBs3voice_asset_iduJzJJX45mJ4ytextWelcome to Medux. This clip was generated from text and reusable assets.duration_seconds7clarity1080Paspect_ratio16:9model_idtalking-video-text-standard

Sample response

Official example output for preview only. It is not a user Media Result.

output_urlOfficial example video output

Example output

Auth Requirements

Authentication is required via Authorization header.

Preconditions

Prepare avatar and voice assets before calling this endpoint.

Requires avatar_asset_id, voice_asset_id, and non-empty text.

Avatar and voice IDs can come from your Media Assets or official public assets.

Also accepts optional duration_seconds, links, clarity, aspect_ratio, and model.

Request

Body

application/json
Authorizationstringrequired

Bearer token or API key.

Location: HEADER

aspect_ratiostringoptional

Requested output aspect ratio, for example 16:9 or 9:16.

Location: BODY

avatar_asset_idstringrequired

Reusable avatar asset ID owned by the current user or listed as an official public asset.

Location: BODY

claritystringoptional

Requested output clarity, for example 1080P or 2K.

Location: BODY

duration_secondsint32optional

Requested output duration in seconds.

Location: BODY

linksarray<string>optional

Optional reference links collected from the Playground form.

Location: BODY

modelstringoptional

Selected generation model label or version from the Playground form.

Location: BODY

model_idstringoptional

Stable public Medux model identifier.

Location: BODY

textstringoptional

No description provided.

Location: BODY

titlestringoptional

No description provided.

Location: BODY

voice_asset_idstringrequired

Reusable voice asset ID owned by the current user or listed as an official public asset.

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
.. 1402: asset category mismatch
.. 1403: voice asset required
.. 1407: asset locked
.. 1408: asset expired
.. 1404: provider error
.. 1405: provider timeout
.. 13: unauthenticated
.. 16: rate limit
.. 99: server error

Available options: 0 12 1410 1409 1401 1402 1403 1407 1408 1404 1405 13 16 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 asset category mismatch voice asset required asset locked asset expired 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.

Video / Text-Driven Lip Sync

Create an avatar video from text and a reusable avatar.

Invocation Example

Create a 7 second 1080P 16:9 talking video from this script using avatar_asset_id {avatar_asset_id}, voice_asset_id {voice_asset_id}, and model_id talking-video-text-standard.

medux_video_create_text_drivenResult: video
avatar_asset_id{avatar_asset_id}voice_asset_id{voice_asset_id}text{script}model_idtalking-video-text-standard