Grok Imagine API Prompts — 6 Recipes With Outputs and Costs
$0.015 per image, edits included — one OpenAI-compatible endpoint at https://api.apimart.ai/v1, no monthly plan required. (observed 2026-09-17)
Get an API key · Live pricing · Model page · ⚡ 60-second quickstart
Why teams call Grok Imagine 1.5 (grok-imagine-1.5-apimart) through APIMart
- One key, entire catalog. The same
https://api.apimart.ai/v1 base URL and Authorization header reach Grok Imagine 1.5 (grok-imagine-1.5-apimart) and 300+ other image, video and language models — switch the model field, not your client.
- $1 minimum, pay as you go. No subscription and no prepaid plan to size up front: top up from $1 and spend it on calls. There is no free quota to burn through first, so the price in this table is the price you pay.
- The charge comes back in the response. Every call reports the amount billed (
cost / credits_cost), so a spend number is read per call instead of guessed at month end.
- Async by design. Submit, take the
task_id, poll GET /v1/tasks/{id} — batching and retries are ordinary queue work, not a bespoke integration.
Six Grok Imagine API recipes with the output each one produced, the aspect ratio, the measured cost per image, and the request shape for both text-to-image and reference-based editing.
- Model:
grok-imagine-1.5-apimart
- Recipes: 6 (machine-readable in
data/prompts.json, table in PROMPTS.md)
- Measured cost of the whole set: $0.09
What Grok Imagine rewards in a prompt
Grok Imagine responds well to scene-first prompts: describe the world, then the camera. Across the recipes here,
three patterns did the work:
- World before subject. “Neon-lit underpass, rain on asphalt” before “a motorbike” gives the lighting for free.
- Two colour anchors. Naming a palette pair (“magenta and cyan rim lights”, “warm sunset blocks”) keeps a series
visually consistent, which matters when you generate variations with
n=10.
- State the output use. “Poster”, “commercial product photography”, “concept art” pull different framing habits
out of the model.
Prompt structure cheat-sheet
| Slot |
What to write |
Example |
| World |
environment and weather |
neon-lit underpass, rain on asphalt |
| Subject |
one hero element |
a parked motorbike |
| Light |
sources and colour anchors |
magenta and cyan rim lights |
| Camera |
distance, lens, mood |
cinematic still, shallow depth of field |
| Use |
what the image is for |
poster / product shot / concept art |
The gallery
Each row is one API call: output, category, ratio, reported cost and the exact prompt.
| Output |
Recipe |
Ratio |
Cost |
Prompt |
 |
Product |
1:1 |
$0.015 |
Two frosted glass cosmetics bottles on a pale sand surface, hard afternoon light casting long shadows, minimal styling, commercial product photography |
 |
Cinematic |
16:9 |
$0.015 |
Cyberpunk motorbike parked in a neon-lit underpass, rain on asphalt, magenta and cyan rim lights, cinematic still, shallow depth of field |
 |
Concept art |
3:2 |
$0.015 |
Mythic forest creature concept art, antlered guardian covered in moss and small flowers, soft volumetric light through trees, painterly detail |
 |
Poster / graphic |
3:4 |
$0.015 |
Retro travel poster illustration of a coastal train route, flat colour blocks, textured paper grain, warm sunset palette, bold graphic composition |
 |
Food |
4:3 |
$0.015 |
Gourmet chocolate dessert with gold leaf on a dark ceramic plate, moody side light, shallow depth of field, fine dining food photography |
 |
Environment |
16:9 |
$0.015 |
Aerial view of a fantasy cliff city carved into stone terraces above a turquoise sea, tiny bridges and hanging gardens, cinematic haze, epic scale |
Run a recipe yourself
export APIMART_API_KEY=...
python examples/run_recipes.py --dry-run # list the recipes, no network
python examples/run_recipes.py --limit 2 # generate two of them
python examples/run_recipes.py --category "Food" # filter by category
curl --request POST --url https://api.apimart.ai/v1/images/generations \
--header "Authorization: Bearer $APIMART_API_KEY" --header 'Content-Type: application/json' \
-d '{"model":"grok-imagine-1.5-apimart","prompt":"<paste a prompt>","size":"1:1","resolution":"1K","n":1}'
Result links expire, so store the outputs; the completed task carries cost for reconciliation.
What that costs at scale
| Spend |
Cost |
| 100 images |
$1.50 |
| 1000 images |
$15.00 |
| 10000 images |
$150.00 |
Linear at the observed per-unit rate, no volume discount assumed. Snapshot 2026-09-17; re-check the live table before committing a budget.
First-call troubleshooting
| Symptom |
Likely cause |
Fix |
401 / invalid api key |
key missing, truncated, or a stray newline pasted into the header |
Re-copy it from the console; the header is Authorization: Bearer $APIMART_API_KEY |
| balance / credit error |
the account has no balance |
Top up from $1 in the console — there is no free quota to fall back on |
429 |
concurrent requests on one key |
Back off, then retry the same request with the same Idempotency-Key |
400 / model not found |
wrong route for the id: the per-unit alias needs its version, the official id must not send one |
Copy the exact model value from the route table above |
task ends failed |
prompt rejected by the filter, or a reference image URL expired |
Re-submit with a new Idempotency-Key and re-host the reference image |
| result URL stops working |
result links expire |
Download the file as soon as the task reports completed |
FAQ
What is the Grok Imagine model id?
grok-imagine-1.5-apimart (alias grok-imagine-1.5-ext). The same endpoint also documents grok-imagine-image and grok-imagine-image-quality.
Can I get several variations in one call?
Yes — this route accepts n between 1 and 10, so exploring a scene costs one request instead of ten.
How do I edit an existing image?
Send 1–5 publicly reachable image URLs in image_urls and describe what to preserve and what to change. Local files must be uploaded to public storage first.
Are these recipes free to reuse?
The prompt text is MIT licensed; the outputs and any marks inside them are your responsibility, and vendor terms still apply to commercial use.
grok imagine api
grok imagine prompts
grok image api
ai image prompts
concept art prompts
product photography prompts
cinematic image prompts
Start with $1. Get an API key → check live pricing → open Grok Imagine 1.5 (grok-imagine-1.5-apimart) in the model library. The first call is three steps: submit, poll task_id, read the charged amount off the response.
Attributed links (how this repository is measured)
Outbound APIMart links are minted through the promo link API; hand-made tracking parameters are rejected by
tools/check_links.py in CI.
Disclosure
Grok Imagine is a third-party model served through APIMart. This repository publishes prompts, real outputs and
measured costs; it does not claim official status for any vendor, and model names and documentation belong to their
owners.
Repository map
README.md gallery, prompt structure and FAQ
PROMPTS.md every recipe in one table
data/prompts.json machine-readable recipes with measured cost
examples/run_recipes.py batch runner (dry-run safe for CI)
tools/check_links.py attribution guard
assets/ real renders (JPEG, resized for the README)
.github/workflows/ validation
License
MIT — see LICENSE.
评论