text-to-image
Flux Kontext Pro - Create image from text
Generate images using FLUX Kontext Pro, an advanced text-to-image model with optional image input support.
This model excels at understanding context and generating high-quality images from text descriptions. Optionally, you can provide an input image to guide the generation process.
post/v1/ai/text-to-image/flux-kontext-pro
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/text-to-image/flux-kontext-pro
- Auth: API key in header x-magnific-api-key
Request body
Example request
{
"prompt": "a beautiful sunset over the ocean with dramatic clouds",
"input_image": "https://example.com/reference-image.jpg",
"aspect_ratio": "square_1_1",
"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.