Skip to main content
POST
https://api.runpod.ai
/
v2
/
black-forest-labs-flux-1-dev
/
run
Flux Dev
curl --request POST \
  --url https://api.runpod.ai/v2/black-forest-labs-flux-1-dev/run \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "prompt": "<string>",
    "negative_prompt": "<string>",
    "width": 123,
    "height": 123,
    "num_inference_steps": 123,
    "guidance": 123,
    "seed": 123,
    "image_format": "<string>"
  }
}
'
{
  "delayTime": 17,
  "executionTime": 3986,
  "id": "sync-0965434e-ff63-4a1c-a9f9-5b705f66e176-u2",
  "output": {
    "cost": 0.02097152,
    "image_url": "https://image.runpod.ai/6/6/mCwUZlep6S/453ad7b7-67c6-43a1-8348-3ad3428ef97a.png"
  },
  "status": "COMPLETED",
  "workerId": "oqk7ao1uomckye"
}
Flux Dev is optimized for high-quality, detailed image generation. The model accepts several parameters to control the generation process, including prompt guidance, image dimensions, and sampling steps. Each image generated costs $0.02 per megapixel.

Body

input
object
required
The input configuration object containing all generation parameters.
{
  "delayTime": 17,
  "executionTime": 3986,
  "id": "sync-0965434e-ff63-4a1c-a9f9-5b705f66e176-u2",
  "output": {
    "cost": 0.02097152,
    "image_url": "https://image.runpod.ai/6/6/mCwUZlep6S/453ad7b7-67c6-43a1-8348-3ad3428ef97a.png"
  },
  "status": "COMPLETED",
  "workerId": "oqk7ao1uomckye"
}

Response

id
string
Unique identifier for the job.
status
string
Current status of the job. Value will be “COMPLETED” for successful synchronous requests.
delayTime
integer
Time in milliseconds the job spent in queue before processing started.
executionTime
integer
Time in milliseconds taken to process the request.
workerId
string
Identifier of the worker that processed the request.
output
object
Contains the generation results.