Generate image
OpenAI
GPT Image 2 t2i
POST
Generate image
Authorizations
Bearer authentication using API key
Body
application/json
Request payload
Request format for image generation models
Model name to use for the request
Available options:
openai/gpt-image-2-t2i Text prompt for generation
Fixed size
Available options:
1024x768, 1024x1024, 1024x1536, 1920x1080, 2560x1440, 3840x2160 Content moderation strategy
Available options:
auto, low Number of outputs to generate
Required range:
1 <= x <= 10Output format for the 3D model
Available options:
jpg, png Quality option
Available options:
low, medium, high 