fofr/image-models

Popular image models with a convenient standardised API

Public
30 runs

Run fofr/image-models with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Text prompt for generation
model
None
black-forest-labs/flux-schnell
Model to use for generation
aspect_ratio
None
default
Aspect ratio for generated content
image
string
Optional input image for models that support image-to-image generation
num_outputs
integer
1

Min: 1

Max: 10

Number of images to generate
fallback_aspect_ratio
boolean
True
If true, use the closest supported aspect ratio when the requested one is not available

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}
Example API response
View prediction
['https://replicate.delivery/xezq/lIUUVnT1kKLlFRYASLkQosD4UFbvuJO0ES0kWsfa4sj22bmKA/tmpqoyia78o.webp',
 'https://replicate.delivery/xezq/F3EyrtV62uK7M5nM5YWsJSp2GjBfpWGKE6XUtXYJNUl22bmKA/tmp16hzsd9u.webp',
 'https://replicate.delivery/xezq/bDrLdiMYXyLfUKaTB9EcPahJ4EtjCSfpHXDeo9DeA6est9mpC/tmph9advne7.webp']