Model API'si

Ideogram V4.5

Model kimliği

Her istekte bunu kullan
ideogram/v4.5/edit

Bu modelin kendi kimliği olan başka modları da var: ideogram/v4.5.

Ç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": "ideogram/v4.5/edit",
  "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": "ideogram/v4.5/edit", "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

ideogram/v4.5/edit girdi alanları
AlanTürAçıklama
promptzorunlustring
The generation or editing prompt.
image_urlzorunlustring (image URL)
Primary source image to edit.
reference_image_urlsarray of image URLs
Up to four references plus the primary source, or three references plus the primary source and mask.
mask_urlstring (image URL)
Mask matching the source dimensions. Black edits, white preserves. Must contain both regions after rounding.
edit_precisionstring (enum)
regular uses Generate; high uses Precise Edit with unchanged-pixel restoration. Both always prepare structured edit instructions.

Varsayılan: regular

Seçenekler: regular

qualitystring (enum)
Quality tier for either edit precision. Defaults to medium.

Varsayılan: medium

Seçenekler: very_low, low, medium, high

image_sizestring (enum)
Auto preserves source geometry, downscaled by the provider if needed. Only unmasked regular edits accept named presets or custom sizes: dimensions >=256, multiples of 32, area <=4194304, ratio <=6:1. Named presets use standard dimensions.

Varsayılan: auto

Seçenekler: auto

num_imagesinteger
Number of images to generate.

Varsayılan: 1

seedinteger
Random seed. Omit to choose automatically.
sync_modeboolean
Return image data directly in the response.

Varsayılan: false

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

  • Very low$0,02/ görsel
  • Low$0,05/ görsel
  • Medium$0,10/ görsel
  • High$0,35/ görsel

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