Model API'si

WAN 2.7 Image

WAN 2.7 Image, metinden görsel üretir veya ayrı bir modda referansları düzenler.

Model kimliği

Her istekte bunu kullan
wan/v2.7/edit

Bu modelin kendi kimliği olan başka modları da var: wan/v2.7/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.7/edit",
  "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/v2.7/edit", "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/v2.7/edit girdi alanları
AlanTürAçıklama
promptzorunlustring
Text prompt describing the desired image edit. Supports Chinese and English.
image_urlszorunluarray of image URLs
Reference images for editing (1-4 images required). Order matters: reference them as image 1, image 2, image 3, image 4 in the prompt.
negative_promptstring
Content to avoid in the generated image. Max 500 characters.
image_sizestring (enum)
Output image size. Uses image size presets or explicit dimensions and is converted to DashScope size format.

Varsayılan: square_hd

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

num_imagesinteger
Number of images to generate (1-4).

Varsayılan: 1

enable_prompt_expansionboolean
Enable DashScope prompt expansion. Supported only for image edit mode.

Varsayılan: true

seedinteger
Random seed for reproducibility (0-2147483647).
output_formatstring (enum)
The format of the generated images.

Varsayılan: jpeg

Seçenekler: jpeg, png, webp

Çı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?