Model API'si

Wan 2.2 5B Fast

Wan 2.2 5B Fast, metin tarifinden bir video sahnesi üretir.

Model kimliği

Her istekte bunu kullan
wan/v2.2-5b/text-to-video/fast-wan

Çalıştır

Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.

# 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-5b/text-to-video/fast-wan",
  "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-5b/text-to-video/fast-wan", "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"

Girdi

wan/v2.2-5b/text-to-video/fast-wan girdi alanları
AlanTürAçıklama
promptzorunlustring
The text prompt to guide video generation.
negative_promptstring
Negative prompt for video generation.
num_framesnumber (enum)
Number of frames to generate. Must be between 17 to 161 (inclusive).

Varsayılan: 81

Seçenekler: 81

frames_per_secondnumber (enum)
Frames per second of the generated video. Must be between 4 to 60. When using interpolation and `adjust_fps_for_interpolation` is set to true (default true,) the final FPS will be multiplied by the number of interpolated frames plus one. For example, if the generated frames per second is 16 and the number of interpolated frames is 1, the final frames per second will be 32. If `adjust_fps_for_interpolation` is set to false, this value will be used as-is.

Varsayılan: 24

Seçenekler: 24

seedinteger
Random seed for reproducibility. If None, a random seed is chosen.
resolutionstring (enum)
Resolution of the generated video (580p or 720p).

Varsayılan: 720p

Seçenekler: 480p, 580p, 720p

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

Varsayılan: 16:9

Seçenekler: 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.

Varsayılan: false

guidance_scalenumber
Classifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality.

Varsayılan: 3.5

interpolator_modelstring (enum)
The model to use for frame interpolation. If None, no interpolation is applied.

Varsayılan: film

Seçenekler: none, film, rife

num_interpolated_framesnumber (enum)
Number of frames to interpolate between each pair of generated frames. Must be between 0 and 4.

Varsayılan: 0

Seçenekler: 0

adjust_fps_for_interpolationboolean
If true, the number of frames per second will be multiplied by the number of interpolated frames plus one. For example, if the generated frames per second is 16 and the number of interpolated frames is 1, the final frames per second will be 32. If false, the passed frames per second will be used as-is.

Varsayılan: true

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

Varsayılan: high

Seçenekler: 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.

Varsayılan: balanced

Seçenekler: fast, balanced, small

Çıktı

Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.

İş yanıtından bir bölüm
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Fiyatlandırma

  • 480p$0,02/ video
  • 580p$0,03/ video
  • 720p$0,04/ video

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?