# Flux 2 Dev Image Gen - Documentation

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown is available with `Accept: text/markdown` and `.md` URL variants.

Source: /docs/api-reference/model-apis-flux-2-dev

# Flux 2 Dev Image Gen

POST

/

v3

/

async

/

flux-2-dev

Flux 2 Dev Image Gen

cURL

```
curl --request POST \
--url https://api.novita.ai/v3/async/flux-2-dev \
--header 'Authorization: &#x3C;authorization>' \
--header 'Content-Type: &#x3C;content-type>' \
--data '
{
"seed": 123,
"size": "&#x3C;string>",
"loras": [
{}
],
"images": [
{}
],
"prompt": "&#x3C;string>"
}
'
```

200

```
{
"task_id": "&#x3C;string>"
}
```

FLUX.2 [dev] from Black Forest Labs delivers fast, studio-quality text-to-image generation with enhanced realism, crisper text rendering, and native editing for rapid iteration. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the [Task Result API](/docs/api-reference/model-apis-task-result) to retrieve the video generation results.

##

[​](#request-headers)

Request Headers

[​](#param-content-type)

Content-Type

string

required

Supports: `application/json`

[​](#param-authorization)

Authorization

string

required

Bearer authentication format, for example: Bearer {{API Key}}.

##

[​](#request-body)

Request Body

[​](#param-seed)

seed

integer

Random seed for generation. -1 means use a random seed. Range: -1 to 2147483647Value range: [-1, 2147483647]

[​](#param-size)

size

string

Pixel size (width*height) of the output media. Each dimension ranges from 256 to 1536 pixels

[​](#param-loras)

loras

array

List of LoRAs to apply, up to 3 are supportedArray length: 0 - 3

[​](#param-images)

images

array

A list of input image URLs for editing. Up to 3 images are supportedArray length: 1 - 3

[​](#param-prompt)

prompt

string

required

A text prompt describing the expected editing effect for the image

##

[​](#response)

Response

[​](#param-task-id)

task_id

string

required

Use the task_id to request the [Task Result API](/docs/api-reference/model-apis-task-result) to retrieve the generated outputs.

Last modified on December 2, 2025
