Model API'si

Emu 3.5 Image

Emu 3.5 Image ile tarif ettiğin sahneden görsel oluştur.

Model kimliği

Her istekte bunu kullan
emu-3.5-image/edit-image

Bu modelin kendi kimliği olan başka modları da var: emu-3.5-image/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": "emu-3.5-image/edit-image",
  "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": "emu-3.5-image/edit-image", "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

emu-3.5-image/edit-image girdi alanları
AlanTürAçıklama
promptzorunlustring
The prompt to edit the image.
resolutionstring (enum)
The resolution of the output image.

Varsayılan: 720p

Seçenekler: 480p, 720p

aspect_ratiostring (enum)
The aspect ratio of the output image.

Varsayılan: auto

Seçenekler: auto, 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21

seedinteger
The seed for the inference.
output_formatstring (enum)
The format of the output image.

Varsayılan: png

Seçenekler: jpeg, png, webp

sync_modeboolean
Whether to return the image in sync mode.

Varsayılan: false

image_urlzorunlustring (image URL)
The image to edit.

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

  • 480p$0,24/ görsel
  • 720p$0,48/ görsel

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