Model API'si

Ideogram V3 Layerize Text

Düz bir tasarımdaki yazıları görselden ayır. Dönen görseli ve metin bilgilerini inceleyerek tasarımı yeniden düzenle.

Model kimliği

Her istekte bunu kullan
ideogram/v3/layerize-text

Ç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/v3/layerize-text",
  "input": {
    "image_url": "https://example.com/input.png",
    "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": "ideogram/v3/layerize-text", "quote_id": "QUOTE_ID", "input": {"image_url":"https://example.com/input.png","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

ideogram/v3/layerize-text girdi alanları
AlanTürAçıklama
image_urlzorunlustring (image URL)
URL of the flat graphic image to layerize. Must be JPEG, PNG, or WebP (max 10MB).
promptstring
Optional prompt to guide the layerization.
seedinteger
Seed for the random number generator.
font_file_h1_urlstring (URL)
URL of the font file to use for h1 text. Cannot be used with font_name_h1.
font_name_h1string
Name of the font to use for h1 text. Cannot be used with font_file_h1_url.
font_file_h2_urlstring (URL)
URL of the font file to use for h2 text. Cannot be used with font_name_h2.
font_name_h2string
Name of the font to use for h2 text. Cannot be used with font_file_h2_url.
font_file_body_urlstring (URL)
URL of the font file to use for body text. Cannot be used with font_name_body.
font_name_bodystring
Name of the font to use for body text. Cannot be used with font_file_body_url.
font_file_small_urlstring (URL)
URL of the font file to use for small text. Cannot be used with font_name_small.
font_name_smallstring
Name of the font to use for small text. Cannot be used with font_file_small_url.
sync_modeboolean
If `True`, the media will be returned as a data URI and the output data won't be available in the request history.

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

  • 1 görsel$0,15/ görsel

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