Model API'si

WAN 2.5 Image

WAN 2.5 Image, metinden görsel üretir; yüklenen görselleri düzenlemek için ayrı bir işlem sunar.

Model kimliği

Her istekte bunu kullan
wan-25-preview/text-to-image

Bu modelin kendi kimliği olan başka modları da var: wan-25-preview/image-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-25-preview/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-25-preview/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-25-preview/text-to-image girdi alanları
AlanTürAçıklama
promptzorunlustring
The prompt for image generation. Supports Chinese and English, max 2000 characters.
negative_promptstring
Negative prompt to describe content to avoid. Max 500 characters.
num_imagesinteger
Number of images to generate. Values from 1 to 4.

Varsayılan: 1

image_sizestring (enum)
The size of the generated image. Can use preset names like 'square', 'landscape_16_9', etc., or specific dimensions. Total pixels must be between 768×768 and 1440×1440, with aspect ratio between [1:4, 4:1].

Varsayılan: square

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

enable_prompt_expansionboolean
Whether to enable prompt rewriting using LLM. Improves results for short prompts but increases processing time.

Varsayılan: true

seedinteger
Random seed for reproducibility. If None, a random seed is chosen.

Çı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,08/ görsel

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