konieshadow / fooocus-api-anime

Third party Fooocus replicate model with preset 'anime'

  • Public
  • 218.5K runs
  • L40S
  • GitHub
  • License

Input

string
Shift + Return to add a new line

Prompt for image generation

Default: ""

string
Shift + Return to add a new line

Negtive prompt for image generation

Default: "(embedding:unaestheticXLv31:0.8), low quality, watermark"

string
Shift + Return to add a new line

Fooocus styles applied for image generation, seperated by comma

Default: "Fooocus V2,Fooocus Masterpiece,SAI Anime,SAI Digital Art,SAI Enhance,SAI Fantasy Art"

string

Performance selection

Default: "Speed"

string

The generated image's size

Default: "1152*896"

integer
(minimum: 1, maximum: 8)

How many image to generate

Default: 1

integer

Seed to generate image, -1 for random

Default: -1

number
(minimum: 0, maximum: 30)

Default: 2

number
(minimum: 1, maximum: 30)

Default: 7

number
(minimum: 0.1, maximum: 1)

Default: 0.66

file

Input image for upscale or variation, keep None for not upscale or variation

string

An enumeration.

Default: "Disabled"

number

Only when Upscale (Custom)

Default: 0

string
Shift + Return to add a new line

Prompt for image generation

Default: ""

file

Input image for inpaint or outpaint, keep None for not inpaint or outpaint. Please noticed, `uov_input_image` has bigger priority is not None.

file

Input mask for inpaint

string
Shift + Return to add a new line

Outpaint expansion selections, literal 'Left', 'Right', 'Top', 'Bottom' seperated by comma

Default: ""

integer

Outpaint expansion distance from Left of the image

Default: 0

integer

Outpaint expansion distance from Top of the image

Default: 0

integer

Outpaint expansion distance from Right of the image

Default: 0

integer

Outpaint expansion distance from Bottom of the image

Default: 0

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

file

Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.

number
(minimum: 0, maximum: 1)

Stop at for image prompt, None for default value

number
(minimum: 0, maximum: 2)

Weight for image prompt, None for default value

string

ControlNet type for image prompt

Default: "ImagePrompt"

Output

output
Generated in

This example was created by a different version, konieshadow/fooocus-api-anime:6f913146.

Run time and cost

This model costs approximately $0.076 to run on Replicate, or 13 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 79 seconds. The predict time for this model varies significantly based on the inputs.

Readme

Fooocus is an image generating software (based on Gradio).

Fooocus is a rethinking of Stable Diffusion and Midjourney’s designs:

  • Learned from Stable Diffusion, the software is offline, open source, and free.

  • Learned from Midjourney, the manual tweaking is not needed, and users only need to focus on the prompts and images.

The Fooocus-API project export normal http apis from it.

And this model is base on Fooocus-API. It supports almost all generation methods in Fooocus gradio interface, generate same image with same parameters. Includes:

  • Text to Image
  • Image Upscale or Variation
  • Image Inpaint or Outpaint
  • Image Prompt

Loaded Fooocus version: 2.1.860