Model API'si

WAN 2.6 Image

Wan v2.6 Text to Image ile görsel üret ve düzenle.

Model kimliği

Her istekte bunu kullan
wan/v2.6/text-to-image

Ç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.6/text-to-image",
  "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.6/text-to-image", "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.6/text-to-image girdi alanları
AlanTürAçıklama
promptzorunlustring
Text prompt describing the desired image. Supports Chinese and English. Max 2000 characters.
image_urlstring (image URL)
Optional reference image (0 or 1). When provided, can be used for style guidance. Resolution: 384-5000px each dimension. Max size: 10MB. Formats: JPEG, JPG, PNG (no alpha), BMP, WEBP.
negative_promptstring
Content to avoid in the generated image. Max 500 characters.
image_sizestring (enum)
Output image size. If not set: matches input image size (up to 1280*1280). Use presets like 'square_hd', 'landscape_16_9', or specify exact dimensions.

Seçenekler: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9

max_imagesnumber (enum)
Maximum number of images to generate (1-5). Actual count may be less depending on model inference.

Varsayılan: 1

Seçenekler: 1

seedinteger
Random seed for reproducibility (0-2147483647).

Çı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": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]

Fiyatlandırma

  • 1 görsel$0,05/ görsel

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