Model API'si

P-Image Ideogram

Model kimliği

Her istekte bunu kullan
p-image-ideogram

Ç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": "p-image-ideogram",
  "input": {
    "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": "p-image-ideogram", "quote_id": "QUOTE_ID", "input": {"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

p-image-ideogram girdi alanları
AlanTürAçıklama
promptzorunlustring
Required. Short text prompt describing the image to generate. Strong at rendering readable text and typographic layouts.
resolutionstring (enum)
Required. Output resolution.

Varsayılan: 1K

Seçenekler: 1K, 2K

ratiostring (enum)
Required. Aspect Ratio of the output image.

Varsayılan: 1:1

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

thinkingstring (enum)
Required. Reasoning effort. Lower values generate faster, higher values improve quality and prompt adherence.

Varsayılan: high

Seçenekler: very low, low, medium, high

promptUpsamplingstring (enum)
Optional. Default true. Enhance the prompt before generation.

Varsayılan: true

Seçenekler: true, false

outputFormatstring (enum)
Optional. Default jpg. Format of the output image.

Varsayılan: jpg

Seçenekler: jpg, png, webp

outputQualityinteger
Optional. Default 80. Output quality from 0 to 100. Ignored when output format is png.

Varsayılan: 80

seedinteger
Optional. Random seed for reproducible generation. Leave empty for a random seed.

Çı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 · 1K$0,01/ görsel
  • very low · 2K$0,01/ görsel
  • low · 1K$0,02/ görsel
  • low · 2K$0,03/ görsel
  • medium · 1K$0,02/ görsel
  • medium · 2K$0,04/ görsel
  • high · 1K$0,03/ görsel
  • high · 2K$0,05/ görsel

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