Futuristic corridorCrop 1GPT Image
OpenAI image generation through TTAPI, using a compact request body with prompt, size, quality, and image count.
Futuristic corridorCrop 1
Futuristic corridorCrop 2
Futuristic corridorCrop 3
Futuristic corridorCrop 4Prompt to image, in context
a futuristic corridor with violet and red light geometry
- Size
- 1536×1024
- Quality
- high
Futuristic corridor
A symmetrical neon corridor with strong perspective, violet falloff, and precise red light geometry.
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.
Per-action, in quota
Usage is metered in quota by model, action, and output settings.
Headers and submit parameters
Use the endpoint below with your TTAPI key and the request fields shown.
/openai/gpt/generationsSubmit an unofficial GPT Image generation task.
Official reference/openai/gpt/fetchRetrieve an unofficial GPT Image task result.
Official referenceHeaders
TT-API-KEYstringrequiredYour TTAPI API key.
Content-TypestringrequiredUse application/json.
Body
promptstringrequiredText description of the image.
modelenumrequiredgpt-image-1.5, gpt-image-2, or gpt-image-2-plus.
referImagesstring[]optionalReference image URLs for image-guided generation.
aspect_ratioenumconditionalAspect ratio control supported by gpt-image-2.
sizestringconditionalWIDTHxHEIGHT output size supported by gpt-image-2-plus.
hookUrlstringoptionalCallback URL for asynchronous completion.
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"}'