Credits and Billing

Credits are charged immediately when a task is created successfully. The amount depends on the model and task type (Image to Video, Reference to Video, Text to Video, Image Generation), and video tasks are also charged by video length; see "Video billing by length" below. The same model may be priced differently for different task types; for example, YUYU_N1 Image to Video and Reference to Video are priced separately.

Some optional features cost extra credits, such as prompt enhancement prompt_enhance for YUYU_M1 and YUYU_M6 (see the parameter table on each model's page). The extra charge is deducted together with the base fee, and credits in the response is the combined total. If the task fails or is canceled, it's fully refunded along with the base fee.

Video billing by length

Video tasks (Image to Video, Reference to Video, Text to Video) are billed in billing units of 5 seconds each, and any portion under 5 seconds counts as 5 seconds.

Credits charged = model unit price × number of billing units. Number of billing units = duration ÷ 5, rounded up. If duration is omitted, the model's default length is used (for example, YUYU_N1 defaults to 5 seconds).

duration Billing units Credits charged (at a unit price of 500)
2–5 seconds 1 500
6–10 seconds 2 1000
11–15 seconds 3 1500
16–20 seconds 4 2000
  • Resolution currently doesn't affect the price; for example, 720p and 1080p cost the same.
  • Extra charges such as prompt enhancement are charged only once per task and aren't multiplied by the number of billing units.
  • Non-video tasks, such as Image Generation and Face Age Detection, are charged a fixed amount of credits per request.

Checking prices

You can check the price of each model and feature by calling GET /api/models with your API key (see Query Models and Pricing), or by signing in to the console and viewing the Pricing page. Both show the same information.

You can check your remaining credits with your API key: a paid key returns the account's paid balance, and a trial key returns the remaining amount and expiration date of its bound credit grant. See Check Remaining Credits.

When credits are charged

Credits are charged after the request passes validation and before the task starts processing. If you don't have enough credits, the whole request fails and no task is created. You'll never be charged credits without a task being created, or have a task created without being charged.

  • Paid key: Charged from the account's paid credits. Returns 402 if insufficient.
  • Trial key: Charged from the bound trial credit grant. Returns 402 if the grant has expired or is insufficient.

The message for 402 is always Insufficient credits to complete this charge.. With a paid key, there's an additional hint field reminding you that paid keys only spend paid credits; to use the trial credits on your account, you need a trial key:

{
  "message": "Insufficient credits to complete this charge.",
  "hint": "This is a paid key and only spends paid credits. Top up on the Billing page, or use a trial key to spend trial credits."
}

Refund rules

When a task fails (status = 30) or is canceled (status = 40), the system automatically refunds the charged credits in full to their original source. You don't need to request it.

  • Paid: Refunded to the account's paid balance.
  • Trial: Refunded to the original trial credit grant. If the grant has already expired at the time of the refund, the credits are not refunded.

Each task is refunded only once, never twice.

Trial credit grants

A trial credit grant is a batch of credits issued by the platform with an expiration date. Each grant has a total amount (amount), a remaining amount (remaining), and an expiration time (expires_at). Each trial credit grant can have only one active trial key at a time.

After a grant expires:

  • The bound trial key can no longer be used, and calls return 401 (This trial API key has expired.; see Authentication).
  • You can no longer create or reissue keys with this grant.
  • If a task fails or is canceled, credits are no longer refunded to this grant.