Model API'si
P-Image Ideogram
Model kimliği
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
| Alan | Tür | Açıklama |
|---|---|---|
promptzorunlu | string | Required. Short text prompt describing the image to generate. Strong at rendering readable text and typographic layouts. |
resolution | string (enum) | Required. Output resolution. |
ratio | string (enum) | Required. Aspect Ratio of the output image. |
thinking | string (enum) | Required. Reasoning effort. Lower values generate faster, higher values improve quality and prompt adherence. |
promptUpsampling | string (enum) | Optional. Default true. Enhance the prompt before generation. |
outputFormat | string (enum) | Optional. Default jpg. Format of the output image. |
outputQuality | integer | Optional. Default 80. Output quality from 0 to 100. Ignored when output format is png. |
seed | integer | 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.
"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?