Model API

Wan 2.2 A14B Turbo

Wan-2.2 turbo text-to-video is a video model that generates high-quality videos with high visual quality and motion diversity from text prompts.

Model id

Use this in every request
wan/v2.2-a14b/text-to-video/turbo

This model has other modes with their own ids: wan/v2.2-a14b/image-to-video/turbo.

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/v2.2-a14b/text-to-video/turbo",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "wan/v2.2-a14b/text-to-video/turbo", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for wan/v2.2-a14b/text-to-video/turbo
NameTypeDescription
promptrequiredstring
The text prompt to guide video generation.
seedinteger
Random seed for reproducibility. If None, a random seed is chosen.
resolutionstring (enum)
Resolution of the generated video (480p, 580p, or 720p).

Default: 720p

One of: 480p, 580p, 720p

aspect_ratiostring (enum)
Aspect ratio of the generated video (16:9 or 9:16).

Default: 16:9

One of: 16:9, 9:16, 1:1

enable_prompt_expansionboolean
Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning.

Default: false

accelerationstring (enum)
Acceleration level to use. The more acceleration, the faster the generation, but with lower quality. The recommended value is 'regular'.

Default: regular

One of: none, regular

video_qualitystring (enum)
The quality of the output video. Higher quality means better visual quality but larger file size.

Default: high

One of: high

video_write_modestring (enum)
The write mode of the output video. Faster write mode means faster results but larger file size, balanced write mode is a good compromise between speed and quality, and small write mode is the slowest but produces the smallest file size.

Default: balanced

One of: fast, balanced, small

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Pricing

  • 480p$0.08/ video
  • 580p$0.12/ video
  • 720p$0.16/ video

The exact charge for your input comes from a quote. How charges settle