Create professional-grade images using FLUX.2 [pro], the next generation of Black Forest Labs’ image models.
Key Features:
Pricing: $0.03 per megapixel (Pro)
Use Cases:
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Text description of the image you want to generate.
FLUX.2 [pro] delivers professional-grade image generation without requiring complex parameter tuning. The model automatically optimizes for quality and consistency.
Tips for better results:
Examples:
"a cat sitting on a windowsill""a fluffy orange tabby cat sitting on a rustic wooden windowsill, golden hour lighting, soft focus background""futuristic cityscape at night with neon lights reflecting on wet streets, cyberpunk aesthetic, dramatic lighting""a beautiful sunset over the ocean with dramatic clouds"
Width of the image in pixels.
Valid range: 256 to 1440 pixels Default: 1024 pixels
Common sizes:
256 <= x <= 14401024
Height of the image in pixels.
Valid range: 256 to 1440 pixels Default: 768 pixels
Tip: Total megapixels affect generation cost. Higher resolution = higher cost.
256 <= x <= 1440768
Random seed for reproducible results.
Use case: Generate variations of the same image by using the same seed with slightly modified prompts.
Valid range: 0 to 4,294,967,295 Default: Random seed (if not provided)
0 <= x <= 429496729542
Automatically enhance and expand your prompt for better generation results.
When to enable:
When to disable:
false
Base64-encoded input image for image-to-image generation or image editing.
Supported formats: JPEG, PNG, WebP Use cases:
Note: Can provide up to 4 input images using input_image, input_image_2, input_image_3, and input_image_4.
Second base64-encoded input image for multi-image generation.
Third base64-encoded input image for multi-image generation.
Fourth base64-encoded input image for multi-image generation.
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
OK - Task created successfully
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}