Console

Grok Imagine Image Quality

proprietary
Max size
2K
Input → output
text, image → image
Weights
Proprietary
Providers
1
01

Providers

1 provider · price, latency and uptime
ProviderPer imageLatency p50Uptime 24hRetention
1
MachGen
$0.05–$0.071– – may retain
Listed price
$0.05–$0.071 / image
Most per image
$0.083
Precision
–
Regions
default
Headquarters
–
Data retention
May retain prompts
Supported parameters
naspect_ratioresolutionimage_urlsenhance_prompt

By default the router tries our listings in routing order and fails over before the first byte — never mid-answer. Uptime is our own 24h measurement; a dash means too few requests to measure yet. Open the row for the provider's specs and policies.

02

Quickstart

any SDK — only the base URL changes
curl --max-time 630 https://api.routerplus.com/v1/images/generations \
  -H "Authorization: Bearer $TM_API_KEY" -H "content-type: application/json" \
  -d '{"model":"machgen/grok-imagine-image-quality","prompt":"a red dot","aspect_ratio":"1:1"}'
03

Pricing

billed at the cost MachGen reports · at most $0.083 per image
output image$0.05 / image · 1K
output image$0.071 / image · 2K

Every billed response carries usage.cost — recompute your bill from the wire.

04

Parameters

n — integer 1–1 (default 1)
aspect_ratio — 1:1 · 16:9 · 9:16 · 4:3 (default 1:1) · default "1:1"
resolution — 1K · 2K (default 1K) · default "1K"
image_urls — array · up to 3 items · Up to 3 reference images to edit or combine, as public https URLs (PNG, JPEG or WebP). MachGen fetches each one; inline data URIs are not accepted.
enhance_prompt — supported

Values outside these are refused with a 400 that names the field.