Model API'si

Omnigen V2

Metin ve isteğe bağlı görsel referanslarıyla görsel üret veya düzenle.

Model kimliği

Her istekte bunu kullan
omnigen-v2

Ç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": "omnigen-v2",
  "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": "omnigen-v2", "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

omnigen-v2 girdi alanları
AlanTürAçıklama
promptzorunlustring
The prompt to generate or edit an image. Use specific language like 'Add the bird from image 1 to the desk in image 2' for better results.
input_image_urlsarray of image URLs
URLs of input images to use for image editing or multi-image generation. Support up to 3 images.

Varsayılan: []

image_sizestring (enum)
The size of the generated image.

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 inference steps to perform.

Varsayılan: 50

seedinteger
The same seed and the same prompt given to the same version of the model will output the same image every time.
text_guidance_scalenumber
The Text Guidance scale controls how closely the model follows the text prompt. Higher values make the model stick more closely to the prompt.

Varsayılan: 5

image_guidance_scalenumber
The Image Guidance scale controls how closely the model follows the input images. For image editing: 1.3-2.0, for in-context generation: 2.0-3.0

Varsayılan: 2

negative_promptstring
Negative prompt to guide what should not be in the image.

Varsayılan: (((deformed))), blurry, over saturation, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), fused fingers, messy drawing, broken legs censor, censored, censor_bar

cfg_range_startnumber
CFG range start value.

Varsayılan: 0

cfg_range_endnumber
CFG range end value.

Varsayılan: 1

schedulerstring (enum)
The scheduler to use for the diffusion process.

Varsayılan: euler

Seçenekler: euler, dpmsolver

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

num_imagesinteger
The number of images to generate.

Varsayılan: 1

output_formatstring (enum)
The format of the generated image.

Varsayılan: jpeg

Seçenekler: jpeg, png

Çı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,24/ megapiksel

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