Create image
Create Image
Generate images from a text prompt using image generation models
POST
Create image
Generate images from a text prompt using OpenAI-compatible image generation models through Requesty’s routing.
Base URL
Authentication
Include your Requesty API key in the request headers:Example Request
Supported Models
azure/openai/gpt-image-1— OpenAI’s GPT Image 1 model via Azureazure/openai/gpt-image-1.5— OpenAI’s GPT Image 1.5 model via Azure
Transparent Backgrounds
Use thebackground parameter to generate images with transparent backgrounds (useful for logos, icons, and design assets):
Error Handling
The API returns standard HTTP status codes:200- Success400- Bad Request (invalid parameters)401- Unauthorized (invalid API key)429- Rate Limited500- Internal Server Error
This endpoint is fully compatible with the OpenAI Images API. You can use the OpenAI SDK’s
client.images.generate() method directly.Authorizations
API key for authentication
Body
application/json
The model to use for image generation
Example:
"azure/openai/gpt-image-1"
A text description of the desired image
Example:
"A watercolor painting of a Japanese garden in autumn"
The number of images to generate
Required range:
x >= 1Example:
1
The size of the generated images
Available options:
1024x1024, 1536x1024, 1024x1536 Example:
"1024x1024"
The quality of the generated image
Available options:
auto, high, medium, low Example:
"auto"
The format in which the generated images are returned
Available options:
url, b64_json Example:
"url"
The background type for the generated image
Available options:
auto, transparent, opaque Example:
"auto"
The file format of the generated image
Available options:
png, jpeg, webp Example:
"png"
Last modified on May 26, 2026