> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyaskr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FLUX

> High-fidelity image generation with strong prompt adherence.

FLUX is a high-fidelity image family from Black Forest Labs, known for sharp
detail and strong prompt adherence. A great default when quality matters.

## Best for

* Photorealistic and detailed illustration.
* Prompts that need to be followed closely.
* Hero images, product shots and marketing visuals.

|                      |                               |
| -------------------- | ----------------------------- |
| **Modality**         | Image (text in, image out)    |
| **Example model id** | `flux-1.1-pro`                |
| **Endpoint**         | `POST /v1/images/generations` |

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.heyaskr.ai/v1/images/generations \
    -H "Authorization: Bearer ASKR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "flux-1.1-pro",
      "prompt": "a red fox in a snowy forest, cinematic lighting",
      "size": "1024x1024",
      "n": 1
    }'
  ```

  ```python Python theme={null}
  import requests

  r = requests.post(
      "https://api.heyaskr.ai/v1/images/generations",
      headers={"Authorization": "Bearer ASKR_API_KEY"},
      json={
          "model": "flux-1.1-pro",
          "prompt": "a red fox in a snowy forest, cinematic lighting",
          "size": "1024x1024",
          "n": 1,
      },
  )
  print(r.json()["data"][0]["url"])
  ```
</CodeGroup>

## Pricing

Priced per image, by resolution. As a rough guide, expect around **\$0.04 per
1024×1024 image** for the pro model. Larger sizes cost more.

<div className="askr-img-placeholder">
  <span><strong>Image</strong><br />FLUX sample output: a red fox in a snowy forest</span>
</div>

<Note>
  The model id and prices above are examples. Confirm the exact id and current
  price against the live [`/v1/models`](/api-reference/list-models) list before you
  rely on them. Image URLs expire after 24 hours, so download anything you want to keep.
</Note>
