Grok Imagine on Twelver

Grok Imagine 2.0: a frame like a photo
from one sentence

The new generation of xAI’s image model: light, textures and lettering look like a photograph. Text-to-image, editing your own photo and building one frame from several — in one chat, on a Twelver account, no X Premium subscription.

  • Image 2.0 — a frame that looks like a photo, not an illustration
  • Edits keep the source proportions; combine 2–5 photos into one
  • Grok Imagine Video sits next to it — animate your own frame

Three ways to use Grok Imagine

One subscription, three channels: the chat, your own AI client over MCP, and your code. Shared tokens — you only pay for what you generate.

Grok Imagine right in the Twelver chat

The agent is already wired to this model: write a prompt or drop a photo and the result lands in the thread. Then just say “darker”, “drop the caption”, “same but vertical”.

  • A ready-made agent — the model is already selected
  • Refine with words instead of rewriting the prompt
  • History, inputs and outputs all stay in the thread

Every model is included in one Twelver subscription — cheaper than paying each service separately. Start on free tokens, no card needed.

Grok Imagine inside Claude, Cursor, LM Studio and other AI clients

A remote MCP server over HTTP: tick the tools you want, paste the connector URL, and the model shows up in your assistant. No npm, no local servers, OAuth sign-in.

No keys: paste the URL into your client and sign in — Claude, Cursor and any other OAuth client.

1

Open Claude → Settings → Connectors

2

Add custom connector → paste the URL

3

Sign in via OAuth — done


Build your server

Check the tools — URLs and config update themselves.


Connector URLs

Image Generation (Grok)

https://twelver.ru/api/mcp/v1/grok-image-generation

Grok Imagine from your own app

Three calls: upload the source (if there is one), create the task, fetch the result. The request schema and the tool list are served by the API itself.

Key and config

Create a config and a key right here — the samples below fill in your real config id.

1. Set up config

2. Get API key

  1. 1

    Upload a source fileoptional

    Only needed when editing an existing photo or animating a frame. Skip it when generating from scratch.

    curl -X POST https://twelver.ru/api/ai/<config-id>/v1/media/files \
      -H "Authorization: Bearer $TWELVER_API_KEY" \
      -F "file=@source.jpg"
    
    # → { "url": "https://twelver.ru/api/files/u/<id>/url?token=…",
    #     "content_type": "image/jpeg" }
  2. 2

    Create the generation task

    A prompt, the toolsets, and optionally the source file URLs. You get a task id back immediately.

    curl -X POST https://twelver.ru/api/ai/<config-id>/v1/media/generations \
      -H "Authorization: Bearer $TWELVER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "prompt": "A retro sci-fi poster of a cat piloting a spaceship, bold colors",
        "toolsets": ["grok-image-generation"],
        "files": [{ "url": "<url from step 1>" }]
      }'
    
    # → 202 { "id": "<task-id>", "status": "running" }
  3. 3

    Retrieve the result

    Poll the task until its status is completed — the output carries the text and the URLs of the finished files.

    curl https://twelver.ru/api/ai/<config-id>/v1/media/generations/<task-id> \
      -H "Authorization: Bearer $TWELVER_API_KEY"
    
    # → { "status": "completed",
    #     "output": { "text": "…",
    #                 "files": [{ "url": "…", "content_type": "image/png" }] } }

API schema

A separate endpoint returns the available toolsets with their tools and the exact request/response shape — the same contract the backend runs on.

curl https://twelver.ru/api/ai/<config-id>/v1/media/generations/schema \
  -H "Authorization: Bearer $TWELVER_API_KEY"

# → { "toolsets": [{ "id": "grok-image-generation", "tools": [...] }, ...],
#     "request": {"prompt":"string","toolsets":["string"],"files":[{"url":"string","content_type":"string","description":"string"}]},
#     "response": { ... } }

API generations spend the same tokens as the chat — there is no separate plan to buy.

More about the API →

What Grok Imagine is best at

When you want a lifelike, photographic frame — from scratch or from your own shot.

📷

A frame like a photo

Image 2.0 renders light, materials and textures naturally — and spells lettering right, Cyrillic included.

📐

The right format

A 9:16 story, a 3:4 product card, a 16:9 cover or a wide 21:9 banner — set the format up front.

🖌️

Edit your own image

Upload a photo and ask for a change — the source proportions are kept. Up to five shots combine into one scene.

🎬

Pairs with the video model

Generate a frame and animate it right away with Grok Imagine Video — in the same thread.

Specs

Exactly what you get when you call Grok Imagine on Twelver.

Model
Grok Imagine Image 2.0 (xAI) — image generation
Aspect ratios
From portrait 9:16 and 2:3 to wide 16:9 and 21:9
Inputs
Text, one photo, or several references
Tools
Text-to-image, image-to-image, reference blending

Earn free tokens

Complete onboarding goals to top up your free balance.

  • Create an account

    +150,000

    Sign up to save your chats, agents, and preferences across devices.

  • Run your first web search

    +20,000

    Ask a question that needs fresh information — the AI will search the web and cite its sources.

  • Create your first document

    +20,000

    Generate a structured document — article, report, plan — right from chat and keep editing it collaboratively.

  • Upload your first image

    +20,000

    Drop an image into the chat and the AI can see it — ask questions about its contents or request edits.

  • Generate your first audio clip

    +20,000

    Generate speech, a voice-over, or a sound effect from a text prompt.

  • Generate your first video

    +20,000

    Pick a video-capable agent (or create one tailored for video), then describe the scene you want to bring to life.

  • Generate your first image

    +20,000

    Ask the chat to generate an image — try different styles, aspect ratios, and detailed prompts for best results.

  • Create your first agent

    +50,000

    Design a custom AI agent with its own persona, tools, and instructions.

  • Share something you made

    +20,000

    Send a track, picture or clip you made to someone. They get a page with your work on it — no account needed to look.

  • Top up your balance

    +100,000

    Top up your balance to unlock premium models and tools. Tokens stay available for as long as your subscription is active — they expire when the subscription ends.

  • Top up your balance twice

    +100,000

    Your second paid top-up unlocks an extra bonus on top of the tokens you purchased.

  • Bring a friend who stays

    +200,000

    When someone who arrived through your link makes their first purchase, you get tokens.

  • Bring three friends who stay

    +500,000

    Three friends who stayed. This one is the milestone, and it pays like one.

Other image models

They all come with the same subscription — switch between them inside one chat.

Everything Twelver does with images →

FAQ

No. The model runs through the Twelver backend — a Twelver account is all you need.
Grok is strongest when the frame will be animated next: Grok Imagine images and video are one family, so the style carries over. Seedream for photorealism and for people who will later move in Seedance video, Nano Banana for 1K drafts and precise edits.
Yes — Grok Imagine Video is a separate agent for text-to-video and animating a photo. Both are in the same subscription.
The REST generation endpoint with toolsets: ["grok-image-generation"] — see the example in “Three ways to use”. The same engine is also an MCP server.
Yes — the images you generate are yours, commercial use included.

Make your first frame with Grok Imagine 2.0

One subscription covers every model on Twelver — cheaper than paying each service separately. Start on free tokens, no card needed.