> For the complete documentation index, see [llms.txt](https://docs.aimlapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aimlapi.com/api-references/image-models/flux.md).

# Flux

Flux, a subsidiary project of Black Forest Labs, is represented in our API by the following models:

<table><thead><tr><th width="250" valign="top">Model</th><th>Generated image properties</th></tr></thead><tbody><tr><td valign="top"><a href="/api-references/image-models/flux/flux-pro.md">flux-pro</a><br></td><td>Format: <strong>JPG, PNG</strong><br>Min size: <strong>256</strong>x<strong>256</strong><br>Max size: <strong>1440</strong>x<strong>1440</strong><br>Default size: <strong>1024</strong>x<strong>768</strong><br>For both height and width, the value must be a multiple of 32.</td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-pro.md">flux-pro/v1.1</a></td><td>Format: <strong>JPG, PNG</strong><br>Min size: <strong>256</strong>x<strong>256</strong><br>Max size: <strong>1440</strong>x<strong>1440</strong><br>Default size: <strong>1024</strong>x<strong>768</strong><br>For both height and width, the value must be a multiple of 32.</td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-pro-v1.1-ultra.md">flux-pro/v1.1-ultra</a></td><td>Format: <strong>JPG, PNG</strong><br>Fixed size: <strong>2752</strong>x<strong>1536</strong></td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-realism.md">flux-realism</a></td><td>Format: <strong>JPG, PNG</strong><br>Min size: <strong>512</strong>x<strong>512</strong><br>Max size: <strong>1536</strong>x<strong>1536</strong><br>Default size: <strong>1024</strong>x<strong>768</strong><br>For both height and width, the value must be a multiple of 32.</td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-schnell.md">flux/schnell</a></td><td>Format: <strong>PNG</strong><br>Min size: <strong>64</strong>x<strong>64</strong><br>Max size: <strong>1536</strong>x<strong>1536</strong><br>Default size: <strong>1024</strong>x<strong>768</strong><br>For both height and width, the value must be a multiple of 32.</td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-dev.md">flux/dev</a></td><td>Format: <strong>PNG</strong><br>Min size: <strong>512</strong>x<strong>512</strong><br>Max size: <strong>1536</strong>x<strong>1536</strong><br>Default size: <strong>1024</strong>x<strong>768</strong><br>For both height and width, the value must be a multiple of 32.</td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-dev-image-to-image.md">flux/dev/image-to-image</a></td><td>Format: <strong>PNG</strong><br>Fixed size: Matches the dimensions of the reference image.</td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-kontext-max-text-to-image.md">flux/kontext-max/text-to-image</a></td><td>Format: <strong>JPEG, PNG</strong><br>Image size can't be set directly — only a preset aspect ratio can be chosen.<br>Default aspect ratio and size: <strong>1:1</strong>, <strong>1024</strong>x<strong>1024</strong></td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-kontext-max-image-to-image.md">flux/kontext-max/image-to-image</a></td><td>Format: <strong>JPEG, PNG</strong><br>Image size can't be set directly — only a preset aspect ratio can be chosen.<br>Default aspect ratio and size: <strong>16:9</strong>, <strong>1184</strong>x<strong>880</strong> (well, not quite 16:9)</td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-kontext-pro-text-to-image.md">flux/kontext-pro/text-to-image</a></td><td>Format: <strong>JPEG, PNG</strong><br>Image size can't be set directly — only a preset aspect ratio can be chosen.<br>Default aspect ratio and size: <strong>1:1</strong>, <strong>1024</strong>x<strong>1024</strong></td></tr><tr><td valign="top"><a href="/api-references/image-models/flux/flux-kontext-pro-image-to-image.md">flux/kontext-pro/image-to-image</a></td><td>Format: <strong>JPEG, PNG</strong><br>Image size can't be set directly — only a preset aspect ratio can be chosen.<br>Default aspect ratio and size: <strong>16:9</strong>, <strong>1184</strong>x<strong>880</strong> (well, not quite 16:9)</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aimlapi.com/api-references/image-models/flux.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
