YUYU_C1 Image to Video

YUYU_C1 uses a preset (preset_name) to determine the video's motion and style. You can choose between silent and with-audio modes, and adjust the quality with quality.

POST /api/tasks/video-generation
X-Api-Key: sk-live-xxxx
Content-Type: application/json
Idempotency-Key: optional, see below

Full example

images takes a base64 data URI. PNG, JPEG, and WebP are supported. The actual base64 content is omitted in the example:

curl -X POST https://yuyuvideo.com/api/tasks/video-generation \
  -H "X-Api-Key: sk-live-xxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-20260716-00044" \
  -d '{
    "model": "YUYU_C1",
    "prompt": "a woman waving at the camera, cinematic lighting",
    "images": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."],
    "preset_name": "some_preset",
    "quality": "mid",
    "audio": true,
    "duration": 10,
    "payload": { "external_order_id": "order-20260716-00044" },
    "callback_url": "https://example.com/webhooks/yuyu-video"
  }'

On success, the API returns 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 reference only:

{
  "public_id": "01K1M2N3P4Q5R6S7T8V9W0XY14",
  "type": 1,
  "status": 0,
  "credits": 15,
  "params": {
    "model": "YUYU_C1",
    "prompt": "a woman waving at the camera, cinematic lighting",
    "images": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."],
    "preset_name": "some_preset",
    "quality": "mid",
    "audio": true,
    "duration": 10,
    "payload": { "external_order_id": "order-20260716-00044" },
    "callback_url": "https://example.com/webhooks/yuyu-video"
  },
  "error_code": null,
  "error_message": null,
  "created_at": "2026-07-16T08:00:00.000000Z",
  "finished_at": null,
  "files_expire_at": null,
  "files_expired": false,
  "files": []
}

To learn how to check progress and download the video, see Query Tasks and Download Results.

Parameters

Field Type Required Description
model string Yes Set to YUYU_C1
prompt string Yes Video description, up to 10000 characters
images string[] Yes Exactly 1 image, as a base64 data URI (data:image/{png|jpeg|webp};base64,...)
preset_name string Yes Preset name; see below
quality string Yes Quality: low / mid / high; see below
audio boolean No Whether the video has audio. Default false (silent)
duration integer No 5 / 10 / 15 / 20 seconds. Only takes effect in with-audio mode; see below
seed — No Not supported; returns 422 if sent
resolution — No Not supported; returns 422 if sent
payload object No Custom data, such as your order number. The system does not read or modify it, and returns it as-is when you query the task and in webhook notifications
callback_url string No URL to notify when the task finishes. Must start with https://, up to 2000 characters. See Callbacks (Webhook)

If model is set to a model that does not exist, the API returns 422: Unknown model alias: {model}.

Parameters not listed in the table (except age_declared; see Pre-generation Age Check) return 422 if sent. They are not ignored.

preset_name

Silent mode and with-audio mode each have their own set of presets, and the two sets cannot be mixed:

  • Silent mode (audio = false), 52 presets: anal / back_doggystyle / blowjob / blowjob_69 / blowjob_reverse / breast_massage / breast_massage_nude / butt_smothering / cock_worship / cum_in_mouth / dildo_masturbation / double_blowjob / double_penetration / ejaculation / facefuck / facefuck_pov / facial_cumshot / footjob / front_doggystyle / fuck_machine / full_nelson / handjob / masturbation / missionary_pov / missionary_sideview / nipple_play / nude_posing / orgasm / orgasm_controller / pronebone / pussy_closeup / remix_blowjob / remix_breast_massage / remix_cowgirl / remix_cunnilingus / remix_doggystyle / remix_double_blowjob / remix_dress_dance / remix_handjob / remix_kiss / remix_seated_blowjob / reverse_cowgirl / shoejob / spitroast / squatting_cowgirl / throatpie / tiktok_trend / titjob / titty_flash / triple_dicked / twerk / undress.
  • With-audio mode (audio = true), 6 presets: blowjob_pov / cumshot / front_doggystyle / missionary_pov / squatting_cowgirl / undress.

The preset name is not validated when you create a task. If you specify a preset that does not exist, or one that does not belong to the current mode, the task is still created successfully (201), but it will fail during processing and the credits are refunded automatically.

quality

quality accepts low / mid / high.

With-audio mode (audio = true) does not support high. If you send audio = true together with quality = high, the task is still created successfully, but it will fail during processing and the credits are refunded automatically.

duration

duration only determines the video length in with-audio mode (audio = true). In silent mode, the video length is determined by the preset, and duration has no effect even if sent.

Billing, however, is always based on the duration you send, including in silent mode: each 5 seconds is one billing unit (for example, 10 counts as 2 units), and if duration is omitted it counts as 1 unit. See Credits and Billing.

Idempotency-Key

Use this to avoid creating duplicate tasks. Send a custom string in the header. We recommend a value that never repeats, such as an order number from your system:

Idempotency-Key: order-20260711-00044

If you send repeated requests with the same API key and the same Idempotency-Key within a short period, only one task is created and credits are charged only once. Subsequent duplicate requests return 200 OK with the original task.

Without this header, every request creates a new task.

Errors

Status code Cause Response
422 Invalid parameters, such as a missing required field, wrong type, images not containing exactly 1 image, or quality not being low / mid / high The errors field lists the error for each field
422 model is set to a model that does not exist { "message": "Unknown model alias: {model}" }
402 Insufficient credits { "message": "Insufficient credits to complete this charge." }
429 Too many queued video tasks { "message": "Too many pending tasks of this type; please retry later." }. Use the Retry-After header in the response to decide when to retry
— The preset does not exist, the preset does not belong to the current mode, or with-audio mode is combined with quality = high The task is created successfully (201), but it will fail later (status = 30) and the credits are refunded automatically

For charging rules, see Credits and Billing.