Generate image with black-forest-labs/flux-schnell
Generates an image using the black-forest-labs/flux-schnell model.
API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.
In: header
model name
Random seed (-1 for random)
-1Output image size
Input prompt for image generation
Strength indicates extent to transform the reference image
0.80 <= value <= 1The mask image tells the model where to generate new pixels (white) and where to preserve the original image (black). It acts as a stencil or guide for targeted image editing.
Number of images to generate
11 <= value <= 4If set to true, the function will wait for the image to be generated and uploaded before returning the response. It allows you to get the image directly in the response.
falseIf enabled, the output will be encoded into a BASE64 string instead of a URL.
falseEnable safety checker
trueResponse Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "black-forest-labs/flux-schnell", "prompt": "Cute boy with a hat, exploring nature, holding a telescope, backpack, surrounded by flowers, cartoon style, vibrant colors." }'{
"id": "7hm7nbwarxrm80cnq1yvmxz4m4",
"logs": "...",
"urls": {
"cancel": "http://example.com",
"result": "http://example.com"
},
"input": {
"model": "black-forest-labs/flux-schnell",
"seed": -1,
"size": "1024*1024",
"image": "string",
"prompt": "Cute boy with a hat, exploring nature, holding a telescope, backpack, surrounded by flowers, cartoon style, vibrant colors.",
"strength": 0.8,
"mask_image": "string",
"num_images": 1,
"enable_sync_mode": false,
"enable_base64_output": false,
"enable_safety_checker": true
},
"model": "black-forest-labs/flux-dev",
"output": [
"https://replicate.delivery/..."
],
"status": "processing",
"created_at": "2025-03-21T11:36:30.151Z",
"has_nsfw_contents": [
false
]
}