The interface is localized. Skill descriptions and documents are machine-translated by AI into your language; code, commands, paths and technical terms stay in the original, and the author's document governs.
Explore skills
Productivity · SKILL.md

fooocus-api

fooocus-api

Fooocus | Advanced AI Image Generation. Generate images with extensive controls including styles, LoRAs, inpainting, outpainting, and upscaling. Triggers: fooocus, image generation, styled image, inpaint, outpaint, upscale

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill documentation

GitHub

name: fooocus-api description: "Fooocus | Advanced AI Image Generation. Generate images with extensive controls including styles, LoRAs, inpainting, outpainting, and upscaling. Triggers: fooocus, image generation, styled image, inpaint, outpaint, upscale" allowed-tools: Bash(curl *), WebFetch

Fooocus

Generate images with Fooocus, featuring extensive controls including style presets, image prompting, inpainting, outpainting, upscaling, and custom LoRA support.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "fooocus-api",
    "version": "0.0.1",
    "input": {
      "prompt": "a majestic dragon flying over a medieval castle at sunset, epic fantasy art",
      "aspect_ratios_selection": "1152*896",
      "performance_selection": "Quality",
      "style_selections": "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
      "guidance_scale": 7
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratios_selectionstring1152*896Output resolution. enum: 7041408, 7681344, 8321216, 8961152, 9601088, 10241024, 1088960, 1152896, 1216832, 1280768, 1344768, 1408704, and more
cn_img1string-Input image for image prompt slot 1
cn_img2string-Input image for image prompt slot 2
cn_img3string-Input image for image prompt slot 3
cn_img4string-Input image for image prompt slot 4
cn_stop1number0.5Stop at for image prompt 1
cn_type1stringImagePromptControl type for slot 1. enum: ImagePrompt, FaceSwap, PyraCanny, CPDS
cn_weight1number-Weight for image prompt 1
guidance_scalenumber7Guidance scale
image_numberinteger1How many images to generate
image_seedinteger-1Seed, -1 for random
inpaint_additional_promptstring-Prompt for inpainting
inpaint_input_imagestring-Input image for inpaint or outpaint
inpaint_input_maskstring-Input mask for inpaint
loras_custom_urlsstring-Custom LoRA URLs in format 'url,weight' separated by ;
negative_promptstring-Negative prompt
outpaint_distance_bottomnumber0Outpaint expansion from bottom
outpaint_distance_leftnumber0Outpaint expansion from left
outpaint_distance_rightnumber0Outpaint expansion from right
outpaint_distance_topnumber0Outpaint expansion from top
outpaint_selectionsstring-Outpaint directions: Left, Right, Top, Bottom (comma separated)
performance_selectionstringSpeedPerformance mode. enum: Speed, Quality, Extreme Speed
promptstring-Prompt for image generation
refiner_switchnumber0.5Refiner switch point
sharpnessnumber2Sharpness
style_selectionsstringFooocus V2,Fooocus Enhance,Fooocus SharpFooocus styles, separated by comma
uov_input_imagestring-Input image for upscale or variation
uov_methodstringDisabledUpscale/variation method. enum: Disabled, Vary (Subtle), Vary (Strong), Upscale (1.5x), Upscale (2x), Upscale (Fast 2x), Upscale (Custom)
uov_upscale_valuenumber0Custom upscale value
use_default_lorasbooleantrueUse default LoRAs

Examples

Quality generation with face swap:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "fooocus-api",
    "version": "0.0.1",
    "input": {
      "prompt": "a professional headshot portrait, studio lighting, clean background",
      "cn_img1": "https://example.com/face-reference.jpg",
      "cn_type1": "FaceSwap",
      "cn_stop1": 0.8,
      "performance_selection": "Quality",
      "aspect_ratios_selection": "1024*1024"
    }
  }'

Image outpainting:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "fooocus-api",
    "version": "0.0.1",
    "input": {
      "prompt": "a beautiful landscape with mountains and a lake, golden hour",
      "inpaint_input_image": "https://example.com/cropped-landscape.jpg",
      "outpaint_selections": "Left,Right",
      "outpaint_distance_left": 200,
      "outpaint_distance_right": 200,
      "performance_selection": "Quality"
    }
  }'

Related Models

Documentation

Saved skills