
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
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 3,
"nullable": true,
"description": "Optional input image for models that support image-to-image generation"
},
"model": {
"enum": [
"black-forest-labs/flux-krea-dev",
"black-forest-labs/flux-schnell",
"black-forest-labs/flux-dev",
"black-forest-labs/flux-1.1-pro",
"black-forest-labs/flux-1.1-pro-ultra",
"black-forest-labs/flux-kontext-max",
"black-forest-labs/flux-kontext-pro",
"bytedance/seedream-3",
"bytedance/seededit-3.0",
"bytedance/dreamina-3.1",
"google/imagen-4-fast",
"google/imagen-4",
"google/imagen-4-ultra",
"ideogram-ai/ideogram-character",
"ideogram-ai/ideogram-v3-turbo",
"ideogram-ai/ideogram-v3-quality",
"ideogram-ai/ideogram-v3-balanced",
"leonardoai/phoenix-1.0",
"luma/photon-flash",
"prunaai/hidream-l1-fast",
"prunaai/wan-2.2-image",
"qwen/qwen-image",
"recraft-ai/recraft-v3",
"minimax/image-01",
"runwayml/gen4-image",
"runwayml/gen4-image-turbo"
],
"type": "string",
"title": "model",
"description": "Model to use for generation",
"default": "black-forest-labs/flux-schnell",
"x-order": 1
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text prompt for generation"
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 10,
"minimum": 1,
"x-order": 4,
"description": "Number of images to generate"
},
"aspect_ratio": {
"enum": [
"default",
"1:1",
"2:3",
"3:2",
"3:4",
"4:3",
"4:5",
"5:4",
"9:16",
"16:9",
"9:21",
"21:9",
"1:2",
"2:1"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio for generated content",
"default": "default",
"x-order": 2
},
"fallback_aspect_ratio": {
"type": "boolean",
"title": "Fallback Aspect Ratio",
"default": true,
"x-order": 5,
"description": "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']