Skip to main content
Black Forest LabsMediumUltra

FLUX 2 Pro

Professional-grade FLUX 2 with high-quality editing and up to 8 reference image support. Excellent balance of quality, speed, and creative control.

100 credits
per image
Up to 8 reference images supported
High-quality image editing
Ultra-quality generation
Professional-grade output
Excellent prompt understanding

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

llms.txt

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-2-pro",
  "input": {
    "prompt": "Luxury perfume bottle on polished marble surface, soft diffused lighting, editorial advertisement quality, shallow depth of field, 8k ultra detailed",
    "image_size": "square_hd",
    "guidance_scale": 3.5
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text description of the image to generate
image_sizestringNolandscape_4_3Output image dimensions
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
image_urlstringNo-Reference image URL for editing or style guidance
seedintegerNo-Random seed for reproducibility
guidance_scalefloatNo3.5Prompt adherence strength
safety_tolerancestringNo2Content safety level (1-6)

How to Provide File Input

There are 3 ways to provide files for the image_url 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-2-pro" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image_url=@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-2-pro",
  "input": {
    "prompt": "your prompt here",
    "image_url": "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

Premium Product Shot

Generate high-end product photography

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-2-pro",
  "input": {
    "prompt": "Luxury perfume bottle on polished marble surface, soft diffused lighting, editorial advertisement quality, shallow depth of field, 8k ultra detailed",
    "image_size": "square_hd",
    "guidance_scale": 3.5
  }
}'

Tips & Best Practices

1Use reference images to guide the style and composition
2Ideal for commercial projects requiring ultra-quality output
3Adjust guidance_scale for more creative or more faithful results
4Combine with safety_tolerance for content control in production

Use Cases

Commercial advertising campaigns
Professional product photography
High-end image editing
Brand visual creation
Print-quality imagery