Professional-grade FLUX 2 with high-quality editing and up to 8 reference image support. Excellent balance of quality, speed, and creative control.
Copy usage instructions for Claude, ChatGPT, or other AI
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
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | Text description of the image to generate |
image_size | string | No | landscape_4_3 | Output image dimensions square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9 |
image_url | string | No | - | Reference image URL for editing or style guidance |
seed | integer | No | - | Random seed for reproducibility |
guidance_scale | float | No | 3.5 | Prompt adherence strength |
safety_tolerance | string | No | 2 | Content safety level (1-6) |
There are 3 ways to provide files for the image_url parameter:
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"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"
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
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
}
}'POST /v1/predictions