---
title: "flux-dev"
description: "Advanced text-to-image generation using Flux.1.Dev"
url: "https://docs.api.pruna.ai/guides/models/flux-dev"
image: "https://docs.api.pruna.ai/_og/d/c_Ocean.takumi,title_flux-dev,description_Advanced+text-to-image+generation+using+Flux.1.Dev,props_eyJ0aGVtZSI6eyJtb2RlIjoibGlnaHQiLCJjb2xvcnMiOnsicHJpbWFyeSI6IiM3YzNhZWQifX19,p_Ii9ndWlkZXMvbW9kZWxzL2ZsdXgtZGV2Ig,s_Kd-p67h3ttJKniG2.png"
---

# Flux Dev

Advanced text-to-image generation with multiple aspect ratios,speed optimizations, and high-quality outputs

## [Overview](#overview)

flux-dev is a powerful text-to-image model based on Flux.1-dev that supports multiple aspect ratios, speed optimization levels,andhigh-quality image generation. It's perfect for creating photorealistic images with fine control over the generation process.

**Rate Limit:** 150 requests per minute

**Price:** $0.01 / image

**Category:** Text-to-Image Generation

## [Quickstart](#quickstart)

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Model: flux-dev' \
  -d '{
    "input": {
      "prompt": "A beautiful landscape with mountains and a lake at sunset, vibrant colors, photorealistic",
      "aspect_ratio": "16:9",
      "num_inference_steps": 28,
      "guidance": 3.5
    }
  }'
```

Response:

```text
{
"id": "1zww7deyssrme0csqwr90phzzr",
"model": "flux-dev",
"input": { ... },
"get_url": "https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr"
}
```

Check status and get results:

```bash
curl -X GET 'https://api.pruna.ai/v1/predictions/status/1zww7deyssrme0csqwr90phzzr' \
-H 'apikey: YOUR_API_KEY'
```

## [Parameters](#parameters)

### [Required Parameters](#required-parameters)

| Parameter | Type   | Description                                        |
| :-------- | :----- | :------------------------------------------------- |
| prompt    | string | Text description of the image you want to generate |

### [Optional Parameters](#optional-parameters)

| Parameter           | Type    | Default                        | Description                                                                      |
| :------------------ | :------ | :----------------------------- | :------------------------------------------------------------------------------- |
| speed_mode          | string  | "Extra Juiced 🔥 (more speed)" | Speed optimization level. Options: "Lightly Juiced 🍊 (more consistent)", "Juiced 🔥 (default)", "Extra Juiced 🔥 (more speed)", "Blink of an eye 👁️" |
| num_inference_steps | integer | 28                             | Number of inference steps. More steps = higher quality but slower                |
| guidance            | number  | 3.5                            | How closely to follow the prompt. Higher values = more literal interpretation    |
| seed                | integer | -1                             | Random seed for reproducible results. Use -1 for random                          |
| aspect_ratio        | string  | "1:1"                          | Aspect ratio of output. Options: "1:1", "16:9", "21:9", "3:2", "2:3", "4:5", "5:4", "3:4", "4:3", "9:16", "9:21" |
| image_size          | integer | 1024                           | Base size for the longest side of the image                                      |
| output_format       | string  | "jpg"                          | Output format: "png", "jpg", or "webp"                                           |
| output_quality      | integer | 80                             | Quality for jpg/webp (1-100)                                                     |