Model API'si
Fooocus
Fooocus ile komuttan görsel üret, maskelenmiş bir bölgeyi düzenle veya mevcut görseli büyütüp farklı sürümlerini oluştur.
Model kimliği
fooocus/upscale-or-varyBu modelin kendi kimliği olan başka modları da var: fooocus, fooocus/inpaint.
Ç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": "fooocus/upscale-or-vary",
"input": {
"prompt": "A red ceramic cup on a wooden table, soft morning light",
"uov_image_url": "https://example.com/input.png"
}
}'
# 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": "fooocus/upscale-or-vary", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","uov_image_url":"https://example.com/input.png"}}'
# 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 |
|---|---|---|
prompt | string | The prompt to use for generating the image. Be as descriptive as possible for best results. |
negative_prompt | string | The negative prompt to use. Use it to address details that you don't want in the image. This could be colors, objects, scenery and even the small details (e.g. moustache, blurry, low resolution). |
performance | string (enum) | You can choose Speed or Quality |
guidance_scale | number | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
sharpness | number | The sharpness of the generated image. Use it to control how sharp the generated image should be. Higher value means image and texture are sharper. |
aspect_ratio | string | The size of the generated image. You can choose between some presets or custom height and width that **must be multiples of 8**. |
num_images | integer | Number of images to generate in one request |
loras | array of objects | The LoRAs to use for the image generation. You can use up to 5 LoRAs and they will be merged together to generate the final image. |
refiner_model | string (enum) | Refiner (SDXL or SD 1.5) |
refiner_switch | number | Use 0.4 for SD1.5 realistic models; 0.667 for SD1.5 anime models 0.8 for XL-refiners; or any value for switching two SDXL models. |
output_format | string (enum) | The format of the generated image. |
sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
seed | integer | The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time. |
uov_image_urlzorunlu | string (image URL) | The image to upscale or vary. |
uov_method | string (enum) | The method to use for upscaling or varying. |
image_prompt_1 | object | ImagePrompt |
image_prompt_2 | object | ImagePrompt |
image_prompt_3 | object | ImagePrompt |
image_prompt_4 | object | ImagePrompt |
mixing_image_prompt_and_vary_upscale | boolean | Mixing Image Prompt and Vary/Upscale |
Çı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
- en fazla$0,60/ üretim
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?