Skip to main content
POST
GPT Image 1.5 — Text to Image
Generate images from text descriptions with OpenAI’s GPT Image 1.5 model. Supports text-to-image generation with multiple aspect ratios.

Request Body

string
required
Model slug. Use openai/gpt-image-1.5/text-to-image for text-to-image generation.
object
required
Input parameters for text-to-image generation.
string
HTTPS URL to receive a webhook notification when the job completes or fails.

Pricing

Base cost: 34,000 micro-cents per request ($0.034)
Fixed cost: 34,000 micro-cents ($0.034) per request. No dynamic pricing factors.

Response

string
Unique identifier for the submitted job.
string
Initial job status. Always "pending" on successful submission.
string
ISO 8601 timestamp of the estimated completion time.
number
The cost of the job in micro-cents.

Code Examples