Skip to main content
Black Forest LabsFastHigh

FLUX Dev

A 12 billion parameter rectified flow transformer capable of generating images from text descriptions, tuned for open, high-quality experimentation.

58 credits
per call (flat, regardless of num_outputs 1-4)
12B parameter rectified flow transformer
Optional fp8 'go_fast' mode for faster generation
Supports image-to-image via the image parameter
Adjustable inference steps (1-50) and guidance
Up to 4 outputs per call

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "black-forest-labs/flux-dev",
  "input": {
    "prompt": "black forest gateau cake spelling out the words \"FLUX DEV\", tasty, food photography, dynamic shot",
    "aspect_ratio": "1:1",
    "go_fast": true
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Prompt for generated image
aspect_ratiostringNo1:1Aspect ratio for the generated image
1:116:921:93:22:34:55:43:44:39:169:21
imagestringNo-Input image for image-to-image mode. Output aspect ratio matches this image
prompt_strengthnumberNo0.8Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image
num_outputsintegerNo1Number of outputs to generate (1-4). Billed at the same flat rate regardless of count
num_inference_stepsintegerNo28Number of denoising steps (recommended 28-50). Fewer steps = faster, lower quality
guidancenumberNo3Guidance scale for generated image (0-10)
seedintegerNo-Random seed. Set for reproducible generation
output_formatstringNowebpFormat of the output images
webpjpgpng
output_qualityintegerNo80Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
disable_safety_checkerbooleanNofalseDisable safety checker for generated images.
go_fastbooleanNotrueRun faster fp8-quantized predictions; disable for original bf16 (non-deterministic when enabled)
megapixelsstringNo1Approximate number of megapixels for generated image
10.25

How to Provide File Input

There are 3 ways to provide files for the image parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=black-forest-labs/flux-dev" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "black-forest-labs/flux-dev",
  "input": {
    "prompt": "your prompt here",
    "image": "https://example.com/image.jpg"
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Text-to-Image (Default)

Generate an image from a text prompt with default settings

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "black-forest-labs/flux-dev",
  "input": {
    "prompt": "black forest gateau cake spelling out the words \"FLUX DEV\", tasty, food photography, dynamic shot",
    "aspect_ratio": "1:1",
    "go_fast": true
  }
}'

Tips & Best Practices

1num_outputs (1-4) is billed at the same flat rate โ€” request multiple outputs in one call to save credits over separate calls
2Use go_fast=true for quick iteration, then disable it for a final bf16 render
3Supply image for image-to-image editing; the output aspect ratio will match the input
4Lower num_inference_steps for fast drafts, raise it towards 50 for final quality

Use Cases

Rapid prototyping and experimentation with prompts
Style exploration before committing to a premium model
Image-to-image restyling from a reference photo
Batch concept art generation

Model Info

ProviderBlack Forest Labs
Version-
CategoryImage Generation
Price58 credits

API Endpoint

POST /v1/predictions
Try in ConsoleBack to Docs