← All models
Black Forest Labs / FLUX.2 Dev
Text → ImageOpen15s+up to 4MP
API Reference
Generate images with FLUX.2 Dev using our SDK, CLI, or REST API.
Quick Start
Install the SDK and generate your first image in under a minute.
TypeScript SDK
Basic Usage
With Contributor Style
Apply a specific artist's style to your generation. Browse available contributors.
Batch Generation
CLI
Generate images directly from your terminal.
REST API
POST
/api/v1/generateGenerate an image with the specified model and prompt.
Request
Response
Parameters
| Parameter | Type | Description |
|---|---|---|
| prompt* | string | Text description of the image to generate |
| model* | string | Model ID (e.g., "flux-2-dev") |
| contributor | string | Contributor slug to apply their style |
| quality | string | "draft" | "standard" | "hd" (default: "standard") |
| aspect_ratio | string | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" |
Rate Limits
Free
10 req/min
100 req/day
Pro
60 req/min
Unlimited daily
Enterprise
Custom
Contact sales