Grok Imagine Image 2.0 via the Tokenator API
What the model is for
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 medium quality modes.
Specification
| Full name | Grok Imagine Image 2.0 |
| API ID | grok-imagine-image-2.0 |
| Model vendor | xAI |
| Type | Image generation |
| Context window | — |
| Max output | — |
| Image input | yes |
| Tokenator usage multiplier | 3× |
| Input modalities | text, image |
| Supported API formats | /v1/images/generations /v1/images/edits |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-08-23 |
Upstream providers
| Provider | Multiplier |
|---|---|
| Unified LLM API | 3× |
A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.
Example request
curl https://api.tokenator.top/v1/images/generations \ -H "Authorization: Bearer sk-your-tokenator-key" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-imagine-image-2.0", "prompt": "an isometric illustration of a server rack", "n": 1 }'
See also
FAQ about Grok Imagine Image 2.0
What is the API ID of Grok Imagine Image 2.0?
grok-imagine-image-2.0 — put this into the model field of your request.
What does a generation request look like?
POST to /v1/images/generations, /v1/images/edits with model, prompt and optionally n and size. The format matches the OpenAI Images API — only the base URL and the key change.
How do I set the image size?
With the size field, for example 1024x1024. The available set depends on the model; 2048x2048 is not supported everywhere, and even there the result sometimes comes back smaller — check the actual image.
What does one image cost?
Generations are taken from the key's image quota: one picture — 3×, and with n images per request it is n × the multiplier. See the documentation for details.
Can I edit an existing image?
Yes. Send the source image to /v1/images/edits together with a prompt describing the change, and the response carries a link to the edited picture. Both multipart uploads and base64 JSON are accepted.
What comes back in the response?
A data array where each item holds a link to the finished image in the url field. Download the picture and store it on your side — the link is not meant for permanent hosting.