text-to-image
Flux 2 Klein - Create image from text
Generate images with sub-second speed using FLUX.2 [klein], the fastest model in the FLUX.2 family by Black Forest Labs.
Key Features:
- Sub-second generation time
- Up to 4 reference images for style/subject transfer
- 10 preset aspect ratios with 1k or 2k resolution options
- Adjustable safety tolerance (0-5)
- Multiple output formats (PNG/JPEG)
Use Cases:
- Real-time applications requiring fast generation
- Style transfer with reference images
- Rapid prototyping and iteration
- High-volume image generation
post/v1/ai/text-to-image/flux-2-klein
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/text-to-image/flux-2-klein
- Auth: API key in header x-magnific-api-key
Request body
Example request
{
"prompt": "a beautiful sunset over the ocean with dramatic clouds",
"aspect_ratio": "square_1_1",
"resolution": "1k",
"seed": 42,
"webhook_url": "https://www.example.com/webhook"
}Response
OK - Task created successfully
Example response
{
"data": {
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.