text-to-image
Gemini 2.5 Flash - Create or edit image
This endpoint allows you to generate or edit images using the Gemini 2.5 Flash model. You can provide a prompt for image generation, or include reference images for image editing and style transfer. The model supports both text-to-image generation and image-to-image editing with up to 3 reference images.
post/v1/ai/gemini-2-5-flash-image-preview
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/gemini-2-5-flash-image-preview
- Auth: API key in header x-magnific-api-key
Request body
Example request
{
"prompt": "A beautiful sunset over mountains with vibrant orange and purple skies",
"reference_images": [
"iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQAAAABRBrPYAAABrElEQVR4nO3BMQEAAADCoPVPbQ0Po...",
"https://example.com/reference-image.jpg"
],
"webhook_url": "https://www.example.com/webhook"
}Response
OK - The task exists and the status is returned
Example response
{
"data": {
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.