Model endpointsBlack Forest LabsFlux dev

Generate image with black-forest-labs/flux-dev

Generates an image using the black-forest-labs/flux-dev model.

POST
/api/v1/model/generateImage

Authorization

BearerAuth
AuthorizationBearer <token>

API key is required to authorize requests. Create a key in the Atlas Cloud dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/model/generateImage" \  -H "Content-Type: application/json" \  -d '{    "model": "black-forest-labs/flux-dev",    "prompt": "A stylish model, fashion show, showcase a designer outfit, orange colour suit, conspicuous jewelry, fashion show background, vibrant color, dramatic makeup"  }'
{  "id": "7hm7nbwarxrm80cnq1yvmxz4m4",  "logs": "...",  "urls": {    "cancel": "http://example.com",    "result": "http://example.com"  },  "input": {    "model": "black-forest-labs/flux-dev",    "seed": -1,    "size": "1024*1024",    "image": "string",    "prompt": "A stylish model, fashion show, showcase a designer outfit, orange colour suit, conspicuous jewelry, fashion show background, vibrant color, dramatic makeup",    "strength": 0.8,    "mask_image": "string",    "num_images": 1,    "guidance_scale": 3.5,    "num_inference_steps": 28,    "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  ]}

Last updated on