API Free WeekHundreds of APIs are free to call this week.Browse free APIs

Grok Imagine Image Quality Text to Image

xai/grok-imagine-image/quality

Grok Imagine Image Quality by xAI - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Base price
$0.05USD / run
Execution
async
Model type
image
Input fields
3
Production route

Try the model

Playground

Open playground
Input
Text description of the desired image.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution. Allowed values: 1k, 2k.
OutputExample

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.05 / run

Context & modalities

Input
Schema-defined
Output
image

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
xAI
Model ID
xai/grok-imagine-image/quality
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

Human preference

Arena

Elo ratings from blind side-by-side votes, compared with other image and video models.

Rankings sourced from Artificial Analysis Arena

Leaderboard
Text to Image
Rank
#17 of 166
Elo
1045 ±7
Gap to #1
−152

Text-to-image arena: people pick the better of two images generated from the same prompt, without seeing the model names.

  1. #12MAI-Image-2.5-ProMicrosoft AI1100±7
  2. #13Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)GoogleOn SandBase1096±8
  3. #14Qwen-Image-3.0-ProAlibaba1090±10
  4. #15Seedream 5.0 ProByteDance SeedOn SandBase1081±8
  5. #16Qwen-Image-3.0AlibabaOn SandBase1076±10
  6. #17grok-imagine-image-qualitySpaceXAIThis model1045±7
  7. #18Qwen-Image-2.1Alibaba1036±10
  8. #19MAI-Image-2.5-FlashMicrosoft AI1033±9
  9. #20Qwen Image 2.0 Pro (2026-04-22)Alibaba1031±9
  10. #21Seedream 4.0ByteDance SeedOn SandBase1029±9

API README

Grok Imagine Image Quality Text to Image

Grok Imagine Image (Quality) generates detailed images at 1K or 2K.

Fields

FieldTypeDefaultNotes
promptstring, required—Up to 8,000 characters.
aspect_ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16—Output shape.
resolution1k / 2k1kSets the per-image rate.

Billing

$0.05 per image at 1K and $0.07 at 2K.

Request1k2k
One image$0.05$0.07

Failed runs are not charged.

Prompting

  • Quote any text that must appear.

Limits

  • One output image per request.

Also on SandBase

Other Grok Imagine Image endpoints: xai/grok-imagine-image/quality/edit, xai/grok-imagine-image/edit, xai/grok-imagine-image/2.0/text-to-image, xai/grok-imagine-image/2.0/edit.

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
xai/grok-imagine-image/quality
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "xai/grok-imagine-image/quality",
  "prompt": "Abstract human silhouette, golden particles ready to burst outward representing joy, data visualization style, emotional expression through particles, artistic scientific",
  "resolution": "1k"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
xAIImage$0.05 / runMay 7, 2026
xAIImage$0.06 / runAug 11, 2026
xAIImage$0.06 / runAug 11, 2026
xAIImage$0.05 / runMay 7, 2026
xAIImage$0.02 / runJan 29, 2026

Questions

FAQ

How do I call xAI Grok Imagine Image Quality Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "xai/grok-imagine-image/quality" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate xAI account?

No. One SandBase API key and balance gives you access to xAI Grok Imagine Image Quality Text to Image and the other models in the catalog; you do not need to sign up with xAI separately.