Generate image with wavespeed-ai/flux-schnell
Generates an image using the wavespeed-ai/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)
-1
Output image size
Input prompt for image generation
Strength indicates extent to transform the reference image
0.8
0 <= value <= 1
The 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
1
1 <= value <= 4
If 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.
false
If enabled, the output will be encoded into a BASE64 string instead of a URL.
false
Enable safety checker
true
Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "wavespeed-ai/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": "wavespeed-ai/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
]
}