Model API'si

Boogu Image

Boogu Image ile ayrıntılı metinlerden görsel üret.

Model kimliği

Her istekte bunu kullan
boogu-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": "boogu-image",
  "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": "boogu-image", "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

boogu-image girdi alanları
AlanTürAçıklama
promptzorunlustring
The instruction describing the image to generate. Boogu-Image is bilingual — English and Chinese instructions are both supported. Detailed, descriptive prompts produce the best results.
negative_promptstring
Describes what should NOT appear in the image. Used for classifier-free guidance; leave empty to disable text negative guidance.
image_sizestring (enum)
The size of the generated image. The model's maximum native resolution is 2K; larger requests are clamped. Dimensions are aligned to multiples of 16.

Varsayılan: square_hd

Seçenekler: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9

num_inference_stepsinteger
The number of denoising steps to perform.

Varsayılan: 30

guidance_scalenumber
Controls how closely generation follows the text instruction. Higher values stick more closely to the prompt. A value of 1.0 disables text classifier-free guidance.

Varsayılan: 4

cfg_range_startnumber
Start of the timestep fraction over which CFG is applied.

Varsayılan: 0

cfg_range_endnumber
End of the timestep fraction over which CFG is applied.

Varsayılan: 1

num_imagesinteger
The number of images to generate.

Varsayılan: 1

seedinteger
The same seed and the same prompt given to the same version of the model will output the same image every time.
output_formatstring (enum)
The format of the generated image.

Varsayılan: jpeg

Seçenekler: jpeg, png

sync_modeboolean
If true, the media is returned as a data URI and the output is not 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 megapixel$0,07/ megapiksel

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