xAI: Grok Imagine Image 2.0: image generation model
Grok Imagine Image 2.0 is xAI's image generation and editing model, with two quality tiers. Served through Hormouz.
- Pricing:
- $0.04 - $0.08 / image
- Type:
- image
- Image generation
Grok Imagine Image 2.0 is xAI's image generation and editing model. It creates images from text and can generate or edit from up to three reference images.
It offers two quality tiers (low and medium) and two resolutions (1K and 2K); the combination sets the price. Omit them and the model runs at medium and 2K.
Pricing is per output image: $0.04 for low/1K, $0.06 for low/2K, $0.06 for medium/1K and $0.08 for medium/2K. Each reference image you supply adds $0.01.
On Hormouz it is served on the same asynchronous prediction path: you submit a request and collect the result when it is ready. Reachable from inside Iran with no foreign credit card required.
Grok Imagine Image 2.0 is an image generation and editing model from xAI. It is suited for creating images from text prompts and editing images from references, with low and...
Quickstart
# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":"x-ai/grok-imagine-image-2.0","input":{"prompt":"A beautiful sunset"}}'Specs
| Vendor | xAI |
|---|---|
| Type | Image |
| Context window | — |
| Pricing | $0.04 - $0.08 / image |
| API | predictions |
Code example
# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":"x-ai/grok-imagine-image-2.0","input":{"prompt":"A beautiful sunset"}}'import requests
BASE = "https://api.hormouz.net/v1"
H = {"Authorization": "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json"}
r = requests.post(f"{BASE}/predictions", headers=H,
json={"version": "x-ai/grok-imagine-image-2.0", "input": {"prompt":"A beautiful sunset"}})
print(r.json()["id"])const BASE = "https://api.hormouz.net/v1";
const res = await fetch(`${BASE}/predictions`, {
method: "POST",
headers: { Authorization: "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ version: "x-ai/grok-imagine-image-2.0", input: {"prompt":"A beautiful sunset"} }),
});
const { id } = await res.json();Buy the xAI: Grok Imagine Image 2.0 API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches xAI: Grok Imagine Image 2.0 and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- What is Grok Imagine Image 2.0 and what is it good for?
- It is xAI's image generation and editing model, suited to creating images from text and to editing from several reference images.
- How much does it cost?
- You are billed by the quality and resolution you pick: $0.04 (low/1K), $0.06 (low/2K or medium/1K) and $0.08 (medium/2K). Each reference image adds $0.01.
- What happens if I do not specify quality and resolution?
- The model runs at its own defaults — medium and 2K — and is billed at that rate ($0.08). Set `quality` to low and `resolution` to 1K for the cheapest tier.
- How do I access this model from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides a stable path from inside Iran, with no foreign credit card required.
Updated 2026-10-13