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
Output size. Choose a preset, or set to "custom" to specify an arbitrary size; the width and height fields only take effect when size is "custom".
Available options:
1024x1024, 512x512, 768x1024, 576x1024, 1024x768, 1024x576, auto, custom Height of the output. Only takes effect when size is "custom".
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 Width of the output. Only takes effect when size is "custom".
