falText to imageComing soon

fal-ai/fooocus/upscale-or-vary

fal-ai/fooocus/upscale-or-vary is a text to image tool from fal that runs in the background and returns images. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Price pending

Pricing

Price pending.

Limits

Runs
In the background
Returns
image
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
prompttextThe prompt to use for generating the image. Be as descriptive as possible for best results.
negative_prompttext 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).
styleslist["Fooocus Sharp","Fooocus V2","Fooocus Enhance"] The style to use.
performanceone of
Speed, Quality, Extreme Speed, Lightning
Extreme Speed You can choose Speed or Quality
guidance_scalenumber
1 to 30
4 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.
sharpnessnumber
0 to 30
2 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_ratiotext1024x1024 The size of the generated image. You can choose between some presets or custom height and width that **must be multiples of 8**.
num_imagesnumber (whole)
1 to 4
1 Number of images to generate in one request
lorasJSON[{"path":"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors","scale":0.1}] 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_modelone of
None, realisticVisionV60B1_v51VAE.safetensors
NoneRefiner (SDXL or SD 1.5)
refiner_switchnumber
0 to 1
0.8 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_formatone of
png, jpeg, webp
jpegThe format of the generated image.
seednumber (whole)— The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
uov_image_url requiredtext—The image to upscale or vary.
uov_methodone of
Disabled, Vary (Subtle), Vary (Strong), Upscale (1.5x), Upscale (2x), Upscale (Fast 2x)
Vary (Strong)The method to use for upscaling or varying.
image_prompt_1JSON—
image_prompt_2JSON—
image_prompt_3JSON—
image_prompt_4JSON—
mixing_image_prompt_and_vary_upscaletrue or falsefalseMixing Image Prompt and Vary/Upscale

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/fooocus/upscale-or-vary",
    "input": {
      "uov_image_url": "https://storage.googleapis.com/falserverless/model_tests/fooocus/fruit_basket.jpeg"
    }
  }'