Model API'si

Wan 2.1

Wan 2.1, metinden video üretir. Görsel canlandırma ve ilk/son kare geçişi için ayrı işlemleri vardır.

Model kimliği

Her istekte bunu kullan
wan-i2v

Ç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-i2v",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light",
    "image_url": "https://example.com/input.png"
  }
}'

# 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-i2v", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","image_url":"https://example.com/input.png"}}'

# 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-i2v girdi alanları
AlanTürAçıklama
promptzorunlustring
The text prompt to guide video generation.
negative_promptstring
Negative prompt for video generation.

Varsayılan: bright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards

image_urlzorunlustring (image URL)
URL of the input image. If the input image does not match the chosen aspect ratio, it is resized and center cropped.
num_framesnumber (enum)
Number of frames to generate. Must be between 81 to 100 (inclusive). If the number of frames is greater than 81, the video will be generated with 1.25x more billing units.

Varsayılan: 81

Seçenekler: 81

frames_per_secondnumber (enum)
Frames per second of the generated video. Must be between 5 to 24.

Varsayılan: 16

Seçenekler: 16

seedinteger
Random seed for reproducibility. If None, a random seed is chosen.
resolutionstring (enum)
Resolution of the generated video (480p or 720p). 480p is 0.5 billing units, and 720p is 1 billing unit.

Varsayılan: 720p

Seçenekler: 480p, 720p

num_inference_stepsnumber (enum)
Number of inference steps for sampling. Higher values give better quality but take longer.

Varsayılan: 30

Seçenekler: 30

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

Varsayılan: 5

shiftnumber
Shift parameter for video generation.

Varsayılan: 5

enable_prompt_expansionboolean
Whether to enable prompt expansion.

Varsayılan: false

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

Varsayılan: regular

Seçenekler: none, regular

aspect_ratiostring (enum)
Aspect ratio of the generated video. If 'auto', the aspect ratio will be determined automatically based on the input image.

Varsayılan: auto

Seçenekler: auto, 16:9, 9:16, 1:1

Çı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,32/ video
  • 720p$0,64/ video

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