More modelsWavespeed aiFlux schnell

Generate image with wavespeed-ai/flux-schnell

Generates an image using the wavespeed-ai/flux-schnell model.

POST
/api/v1/model/generateImage
AuthorizationBearer <token>

API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.

In: header

modelstring

model name

seed?integer

Random seed (-1 for random)

Default-1
size?string

Output image size

image?string
promptstring

Input prompt for image generation

strength?number

Strength indicates extent to transform the reference image

Default0.8
Range0 <= value <= 1
mask_image?The mask image

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.

num_images?integer

Number of images to generate

Default1
Range1 <= value <= 4
enable_sync_mode?Enable sync mode

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.

Defaultfalse
enable_base64_output?Enable Output base64

If enabled, the output will be encoded into a BASE64 string instead of a URL.

Defaultfalse
enable_safety_checker?boolean

Enable safety checker

Defaulttrue

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
  ]
}