Try in playground
Test Flux Dev in the Runpod Hub playground.
| Endpoint | https://api.runpod.ai/v2/black-forest-labs-flux-1-dev/runsync |
| Pricing | $0.02 per megapixel |
| Type | Image generation |
For faster, cheaper generation during development, consider Flux Schnell which is optimized for speed.
Request
All parameters are passed within theinput object in the request body.
Text description of the desired image. Be specific and detailed for best results.
Elements to exclude from the generated image. Use this to prevent unwanted features or styles.
Image width in pixels. Must be divisible by 64. Range: 256-1536.
Image height in pixels. Must be divisible by 64. Range: 256-1536.
Number of denoising steps. Higher values produce more detailed images but take longer. Range: 1-50.
How closely to follow the prompt. Higher values produce images more faithful to the prompt but may reduce creativity. Range: 0.0-10.0.
Seed for reproducible results. Use the same seed with identical parameters to generate the same image. Set to -1 for random.
Output image format. Accepts
png or jpeg.Response
Unique identifier for the request.
Request status. Returns
COMPLETED on success, FAILED on error.Time in milliseconds the request spent in queue before processing began.
Time in milliseconds the model took to generate the image.
Identifier of the worker that processed the request.
Cost calculation
Flux Dev charges $0.02 per megapixel. Cost is calculated as:(width × height / 1,000,000) × \$0.02.
| Image size | Megapixels | Cost |
|---|---|---|
| 512×512 | 0.26 MP | $0.0052 |
| 1024×1024 | 1.05 MP | $0.021 |
| 1536×1536 | 2.36 MP | $0.047 |