Underwater AI researchExample 01dall-e-2
dall-e-2 is available through TTAPI. OpenAI image generation through TTAPI, with fixed-price GPT Image models and official-channel DALL·E 2 and DALL·E 3 support.
Underwater AI researchExample 01
Robot artistExample 02
Monkey astronautExample 03
Terrarium observatoryExample 04Prompt to image, in context
Teddy bears working on new AI research underwater with 1990s technology
A photo of a robot hand drawing, digital art
A close-up portrait of a monkey astronaut in a white spacesuit, floating against a deep blue star field
What you can build with dall-e-2
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 OpenAI 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.
Headers
TT-API-KEYstringrequiredYour TTAPI API key.
Content-TypestringrequiredUse application/json.
Body
promptstringrequiredImage description, up to 1,000 characters.
modelenumrequiredUse dall-e-2.
nintegeroptionalNumber of images to generate, from 1 to 10. Defaults to 1.
qualityenumoptionalDALL·E 2 supports standard quality.
response_formatenumoptionalReturn url or b64_json. Generated URLs remain valid for 60 minutes.
sizeenumoptional256x256, 512x512, or 1024x1024.
userstringoptionalA unique identifier for the end user, used for abuse monitoring.
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/v1/images/generations \
--header 'TT-API-KEY: $TTAPI_KEY' \
--header 'Content-Type: application/json' \
--data '{"prompt":"Teddy bears working on new AI research underwater with 1990s technology","model":"dall-e-2","n":1,"quality":"standard","response_format":"url","size":"1024x1024","user":"ttapi-demo"}'