YUYU_M6 Text to Video

YUYU_M6 generates a video from just a text description, with no images to prepare. You can choose a video length of 5 or 10 seconds and one of 6 aspect ratios. It works well for short clips with simple specs when you don't have existing assets.

POST /api/tasks/text2video
X-Api-Key: sk-live-xxxx
Content-Type: application/json
Idempotency-Key: optional, see Text to Video

Full example

duration can only be 5 or 10, and it is required:

curl -X POST https://yuyuvideo.com/api/tasks/text2video \
  -H "X-Api-Key: sk-live-xxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-20261021-00043" \
  -d '{
    "model": "YUYU_M6",
    "prompt": "a young woman with short silver hair and a red raincoat walks through a neon-lit street at night, rain falling, cinematic",
    "duration": 5,
    "aspect_ratio": "9:16",
    "seed": 1234567,
    "payload": { "external_order_id": "order-20261021-00043" },
    "callback_url": "https://example.com/webhooks/yuyu-video"
  }'

On success, you get 201 Created with the task data. At this point the task is still queued and files is empty. credits is the number of credits charged for this request; the number in the example is for illustration only:

{
  "public_id": "01K83A1B2C3D4E5F6G7H8J9K0M",
  "type": 5,
  "status": 0,
  "credits": 10,
  "params": {
    "model": "YUYU_M6",
    "prompt": "a young woman with short silver hair and a red raincoat walks through a neon-lit street at night, rain falling, cinematic",
    "duration": 5,
    "aspect_ratio": "9:16",
    "seed": 1234567,
    "prompt_enhance": false,
    "payload": { "external_order_id": "order-20261021-00043" },
    "callback_url": "https://example.com/webhooks/yuyu-video"
  },
  "error_code": null,
  "error_message": null,
  "created_at": "2026-10-21T08:00:00.000000Z",
  "finished_at": null,
  "files_expire_at": null,
  "files_expired": false,
  "files": []
}

To check progress and download the video next, see Query Tasks and Download Results.

Parameters

Field Type Required Description
model string Yes Set to YUYU_M6
prompt string Yes Video description, up to 10000 characters
duration integer Yes Video length in seconds. Only 5 or 10; it can't be omitted, and any other value returns 422. 10 seconds counts as 2 billing units and costs twice as many credits as 5 seconds
aspect_ratio string No Aspect ratio. The actual video size (width×height) is in parentheses: 9:16 (448×768, portrait), 16:9 (768×448, landscape), 1:1 (640×640), 3:4 (576×768), 4:3 (768×576), 2:3 (512×768). If omitted, 9:16 (448×768) is used
seed integer No Random seed, 1–2147483647. If omitted, a random seed is used each time
prompt_enhance boolean No Prompt enhancement, default false. When set to true, the system first expands your prompt into a full description of shots, action, and sound before generating the video, which is especially useful when your prompt is short. Dialogue in quotation marks is kept word for word. Costs additional credits; the actual amount is the credits value in the response
payload object No Custom data, such as your order number. The system never reads or modifies it, and returns it as-is when you query the task and in webhook notifications
callback_url string No The URL to notify when the task finishes. Must start with https://, up to 2000 characters. See Callbacks (Webhook)

YUYU_M6 Text to Video doesn't accept images, resolution, audio, or age_declared; sending any of them returns 422. The resolution is fixed at about 480p (longest side up to 768), and the price is the same for every aspect ratio. Any parameter not listed in the table returns 422; it is not ignored.

If model is a model that doesn't exist, you get 422: Unknown model alias: {model}.

Tips for writing prompt

  • There are no input images, so the people and scenes in the video are determined entirely by your text. Be specific about appearance: hairstyle and hair color, clothing, apparent age, setting, lighting, and camera movement.
  • You can't specify a particular person's face. Even if you write a real person's name, the video won't show someone who looks like that person. If you need a consistent character appearance, use Reference to Video or Image to Video and provide images instead.

Writing prompts without prompt enhancement

When prompt_enhance is false or omitted, prompt is sent to generation as-is, and you can write it in the format below. Write everything in English; only dialogue, lyrics, and on-screen text stay in their original language. Don't turn on prompt_enhance when you use this format.

Format

Write the three sections in order. Don't change the field names or their order, and leave a blank line between fields:

Field What to write
integrated_multimodal_description Starting from [Shot 1], describe the style first, then the footage, people, action, camera, and dialogue in chronological order
overall_soundscape Ambient sound, action sounds, and non-verbal vocal sounds, 1–4 sentences
non_diegetic_music Background music only the audience can hear, 1–3 sentences; write N/A if there is none

Tags

Tag Description
[Shot 1] The first shot, with no timestamp; start with the style, e.g. Cinematic, live-action.
(S1) A speaker. Describe the voice the first time they appear (e.g. an adult woman with a soft, clear voice)
<d>…</d> Dialogue. Inside, write the language first and then the original text: <d>[Chinese] 你來啦.</d>. End sentences with ASCII . ? !

Writing rules

  • There are no reference images, so describe the people's appearance, clothing, and setting in the content.
  • Write camera work as English sentences in the content, optionally with amplitude and speed, e.g. The camera pushes in with small amplitude at slow speed.
  • overall_soundscape covers only ambient sound, action sounds, and non-verbal vocal sounds, not dialogue.
  • In non_diegetic_music, describe instruments, tempo, rhythm, and dynamics rather than abstract moods; music the characters can hear goes in the shot content.

Full example

integrated_multimodal_description: [Shot 1] Cinematic, live-action. A medium close-up of a young adult woman with shoulder-length black hair and a cream knit sweater, sitting at a wooden café table by a rain-streaked window in the late afternoon. She wraps both hands around a white coffee cup, looks up toward the camera and smiles. The camera pushes in with small amplitude at slow speed. The woman (S1), an adult woman with a soft, clear voice at a relaxed pace, says: <d>[Chinese] 你來啦.</d> She sets the cup down and keeps her eyes on the camera.

overall_soundscape: Rain taps lightly on the window, with soft café chatter and the clink of a cup on a saucer.

non_diegetic_music: N/A

Errors

Status code Cause Response
422 Invalid parameters, such as a missing prompt, including images, duration not 5 or 10, aspect_ratio not one of the allowed values, or seed out of range The errors field lists the reason for each field
422 prompt_enhance: true is set, but prompt enhancement is temporarily unavailable { "message": "Prompt enhancement is temporarily unavailable", "errors": { "prompt_enhance": ["Prompt enhancement is temporarily unavailable"] } }. No task is created and no credits are charged. Change it to false or omit the parameter and send again
422 model is a model that doesn't exist { "message": "Unknown model alias: {model}" }
402 Not enough credits { "message": "Insufficient credits to complete this charge." }
429 Too many Text to Video tasks waiting in the queue { "message": "Too many pending tasks of this type; please retry later." }. Use the Retry-After header in the response to decide when to retry

For charging rules, see Credits and Billing.