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/image-to-image

Bu modelin kendi kimliği olan başka modları da var: wan-25-preview/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-25-preview/image-to-image",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light",
    "image_urls": [
      "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-25-preview/image-to-image", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","image_urls":["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-25-preview/image-to-image girdi alanları
AlanTürAçıklama
promptzorunlustring
The text prompt describing how to edit the image. Max 2000 characters.
image_urlszorunluarray of image URLs
URLs of images to edit. For single-image editing, provide 1 URL. For multi-reference generation, provide up to 2 URLs. If more than 2 URLs are provided, only the first 2 will be used.
negative_promptstring
Negative prompt to describe content to avoid. Max 500 characters.
image_sizestring (enum)
The size of the generated image. Width and height must be between 384 and 1440 pixels.

Varsayılan: square

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

num_imagesinteger
Number of images to generate. Values from 1 to 4.

Varsayılan: 1

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?