Grok Image

by xAIImage

Fast image generation with a minimal request shape and flexible aspect ratios.

InputPrompttext
Models1available
FlowAsyncresult URL
Price2 quotaper image
Misty green hillside in a dreamlike vintage digicam styleMisty hillsideExample 01
Albino woman in an acrobatic pose against a dark backgroundAcrobatic portraitExample 02
Ethereal female figure combining futuristic and retro elementsRetro-futurist figureExample 03
Man and woman sharing a moment in a retro convertible car — crop 4Grok image examplesCrop 4
Examples

Prompt to image, in context

01 · Misty hillsideGrok Image
Prompt

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.

02 · Acrobatic portraitGrok Image
Prompt

A photograph of an albino woman in an acrobatic pose, wearing a tracksuit against a dark background.

03 · Retro-futurist figureGrok Image
Prompt

An ethereal female figure with futuristic and retro elements, in a serene, vintage photographic style.

Capabilities

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.

Pricing

Per-action, in quota

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

Image workflowOfficial pricing
OperationPriceUnit
Generate image2 quota/ image
Fetch resultFree/ request
API request

Headers and submit parameters

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

POSThttps://api.ttapi.io/grok/image

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

promptstringrequired

Image generation prompt.

enable_probooleanoptional

Enable the higher-quality generation path.

aspect_ratioenumoptional

Requested output aspect ratio.

nintegeroptional

Number of images to generate.

hook_urlstringoptional

Callback URL for job 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/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}'