Misty hillsideExample 01Grok Image
Fast image generation with a minimal request shape and flexible aspect ratios.
Misty hillsideExample 01
Acrobatic portraitExample 02
Retro-futurist figureExample 03
Grok image examplesCrop 4Prompt to image, in context
A surrealist, dreamlike masterpiece of a lush, misty green hillside enveloped in thick, ethereal fog. The aesthetic is defined by a vintage 2000s CCD digicam texture, featuring characteristic digital grain, slight motion blur, and a soft-focus glow. Low-contrast, dreamy pastel color palette with muted greens and hazy whites. The lighting is diffused and atmospheric, as if captured during a foggy dawn. Masterful composition, ethereal and calm, high-art photography style, 4k, cinematic atmosphere, nostalgic filmic quality.
A photograph of an albino woman in an acrobatic pose, wearing a tracksuit against a dark background.
An ethereal female figure with futuristic and retro elements, in a serene, vintage photographic style.
What you can build with Grok 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 Grok 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.
/grok/imageSubmit a Grok text-to-image task.
Official reference/grok/image/editsEdit an existing image with Grok.
Official reference/grok/image/fetchRetrieve the generated Grok image result.
Official referenceHeaders
TT-API-KEYstringrequiredYour TTAPI API key.
Content-TypestringrequiredUse application/json.
Body
promptstringrequiredImage generation prompt.
enable_probooleanoptionalEnable the higher-quality generation path.
aspect_ratioenumoptionalRequested output aspect ratio.
nintegeroptionalNumber of images to generate.
hook_urlstringoptionalCallback URL for job 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/grok/image \
--header 'TT-API-KEY: $TTAPI_KEY' \
--header 'Content-Type: application/json' \
--data '{"prompt":"A surrealist, dreamlike masterpiece of a lush, misty green hillside enveloped in thick, ethereal fog.","aspect_ratio":"16:9","n":1}'