Text to Image
GPT Image 2
GPT Image 2 Image Generation
Generate images from a text prompt using GPT Image 2.
POST
Text to Image
Documentation Index
Fetch the complete documentation index at: https://mulerouter.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Generate high-quality images from text prompts using OpenAI’s GPT Image 2 model. Supports multiple resolutions up to 4K, four quality tiers, and PNG / JPEG / WebP output — with up to 4 images per request.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Text prompt to guide image generation.
Minimum string length:
1Image quality level.
Available options:
high, medium, low, auto Output image resolution.
Available options:
1024x1024, 1536x1024, 1024x1536, 2048x2048, 2048x1152, 3840x2160, 2160x3840, auto Number of images to generate.
Required range:
1 <= x <= 4Output image format.
Available options:
png, jpeg, webp Response
202 - application/json
Accepted - Task created successfully

