GPT Image

by OpenAIImage

OpenAI image generation through TTAPI, using a compact request body with prompt, size, quality, and image count.

InputPrompttext
Models3available
FlowAsyncresult URL
Price1.5 quotaper image
Futuristic corridor with violet and red lighting — crop 1Futuristic corridorCrop 1
Futuristic corridor with violet and red lighting — crop 2Futuristic corridorCrop 2
Futuristic corridor with violet and red lighting — crop 3Futuristic corridorCrop 3
Futuristic corridor with violet and red lighting — crop 4Futuristic corridorCrop 4
Examples

Prompt to image, in context

Example inputgpt-image-2
Prompt

a futuristic corridor with violet and red light geometry

Size
1536×1024
Quality
high
Example resultExample output

Futuristic corridor

A symmetrical neon corridor with strong perspective, violet falloff, and precise red light geometry.

Capabilities

What you can build with GPT Image

Prompt driven generation

Submit a concise prompt and get production-ready image output through one TTAPI job.

Core controls only

Keep integration simple with prompt, model, output settings, and callback handling.

Async result flow

Use polling or webhook callbacks so long-running generations do not block your UI.

Ready for product UI

Return GPT Image results that can be displayed, stored, or passed into downstream workflows.

Pricing

Per-action, in quota

Usage is metered in quota by model, action, and output settings.

Image generationOfficial pricing
ModelPriceUnit
gpt-image-21.5 quota/ image
gpt-image-2-plus4 quota/ image
gpt-image-1.52 quota/ image
API request

Headers and submit parameters

Use the endpoint below with your TTAPI key and the request fields shown.

GeneratePOST
/openai/gpt/generations

Submit an unofficial GPT Image generation task.

Official reference
POSThttps://api.ttapi.io/openai/gpt/generations

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

promptstringrequired

Text description of the image.

modelenumrequired

gpt-image-1.5, gpt-image-2, or gpt-image-2-plus.

referImagesstring[]optional

Reference image URLs for image-guided generation.

aspect_ratioenumconditional

Aspect ratio control supported by gpt-image-2.

sizestringconditional

WIDTHxHEIGHT output size supported by gpt-image-2-plus.

hookUrlstringoptional

Callback URL for asynchronous completion.

Open the official TTAPI documentation
Integrate

From key to first result

Copy the resolved endpoint, authentication headers, and request body for this model.

curl --request POST \
  --url https://api.ttapi.io/openai/gpt/generations \
  --header 'TT-API-KEY: $TTAPI_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"minimal product photograph on a warm gray background","model":"gpt-image-2","aspect_ratio":"1:1","hookUrl":"https://example.com/webhooks/openai-image"}'