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.

Girdi

* işaretli alanlar zorunlu. Üretmeden önce ücreti kontrol et.

The prompt to use for generating the image. Be as descriptive as possible for best results.

The size of the generated image. You can choose between some presets or custom height and width that **must be multiples of 8**.

Number of images to generate in one request

The image to use as a reference for the generated image.

Dosya yüklemek için hesap gerekir. Hesap oluşturJPEG, PNG, WebP · en fazla 25 MB

The image to use as a reference for inpainting.

Dosya yüklemek için hesap gerekir. Hesap oluşturJPEG, PNG, WebP · en fazla 25 MB

The image to use as a mask for the generated image.

Dosya yüklemek için hesap gerekir. Hesap oluşturJPEG, PNG, WebP · en fazla 25 MB

Ek ayarlar
İpuçları ve koşullar

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).

You can choose Speed or Quality

İpuçları ve koşullar

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.

İpuçları ve koşullar

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.

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.

Loras 1

URL or the path to the LoRA weights.

The scale of the LoRA weight. This is used to scale the LoRA weight before merging it with the base model.

Refiner (SDXL or SD 1.5)

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.

The format of the generated image.

The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.

The type of image control

The strength of the control image. Use it to control how much the generated image should look like the control image.

The stop at value of the control image. Use it to control how much the generated image should look like the control image.

Fiyat$0,60 / üretim

Önce kayıt olursun. Ayarların saklanır.

Bu girdinin API kodu

Formdaki mevcut değerleri kullanır ve yeni bir ücret teklifi alır. Koddaki üretim adımını çalıştırmak tutar harcar. API anahtarı al

# 1. Göndereceğin girdi için ücret teklifi al; teklif en fazla 10 dakika geçerlidir.
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "fooocus",
  "input": {
    "prompt": "",
    "negative_prompt": "",
    "performance": "Extreme Speed",
    "guidance_scale": 4,
    "sharpness": 2,
    "aspect_ratio": "1024x1024",
    "num_images": 1,
    "loras": [
      {
        "path": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors",
        "scale": 0.1
      }
    ],
    "refiner_model": "None",
    "refiner_switch": 0.8,
    "output_format": "jpeg",
    "sync_mode": false,
    "control_type": "PyraCanny",
    "control_image_weight": 1,
    "control_image_stop_at": 1,
    "mixing_image_prompt_and_inpaint": false
  }
}'

# 2. İlk adımdaki quote_id ile üretimi başlat.
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", "quote_id": "QUOTE_ID", "input": {"prompt":"","negative_prompt":"","performance":"Extreme Speed","guidance_scale":4,"sharpness":2,"aspect_ratio":"1024x1024","num_images":1,"loras":[{"path":"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors","scale":0.1}],"refiner_model":"None","refiner_switch":0.8,"output_format":"jpeg","sync_mode":false,"control_type":"PyraCanny","control_image_weight":1,"control_image_stop_at":1,"mixing_image_prompt_and_inpaint":false}}'

# 3. Üretimin durumunu sorgula; son duruma ulaşmadıysa bu sorguyu tekrarla.
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Çalıştırmadan önce RAYWAKE_API_KEY değişkenini ayarla. cURL kodundaki QUOTE_ID ve JOB_ID yerine yanıtta gelen değerleri yaz. Dosya bağlantılarının süresi dolabilir; kodu daha sonra çalıştıracaksan bağlantıları yenile.

GitHub'da çalıştırılabilir örnekler

Fooocus nasıl kullanılır?

Başlarken

Bir komutla farklı görsel üslupları dene. Belirli bir bölgeyi değiştirmek ya da görseli büyütmek istiyorsan mevcut görselinle başla; yapmak istediğin değişikliğe uygun işlemi seç.

Sonuç kontrolü

Yazıları, kenarları ve küçük ayrıntıları incele. Bölgesel düzenlemede maskenin sınırını orijinal görselle karşılaştır; büyütmede eklenen ayrıntıların sahneye uyduğuna bak.

Girdiler ve ayarlar

Üretim, bölgesel düzenleme veya büyütme/varyasyon işlemini seç. Bölgesel düzenleme inpaint_image_url, büyütme/varyasyon uov_image_url ister. Seçtiğin işlem maske kabul ediyorsa değiştireceğin bölgeyi maskeyle belirle.

Stil, performance ve num_images ayarlarını güncel formdaki seçeneklerden belirle. Karşılaştırma yaparken seed değerini kaydet; dosya biçimini output_format ile seç.

Üretim başına en fazla 300 hesaplama saniyesine karşılık gelen tutar ayrılır. Son ücret, sağlayıcının kaydettiği çalışma süresine göre hesaplanır; kullanılmayan tutar bakiyene döner. Bu sınır, üretimin 300 saniyede tamamlanacağı anlamına gelmez.