Private docs unlock with Pro and Max

Grok Imagine API

Bring Grok Imagine into your product with one integration layer for Text to Image, Image to Image, Text to Video, and Image to Video workflows.
Unlock private docs, generate API keys, and automate creative pipelines from your own backend.

Designed for server-to-server automation, internal tools, and creative products

Grok Imagine API overview

Who the Grok Imagine API is for

Use the API when you need Grok Imagine generation inside your own product, workflow, or internal tool without sending people back to the website UI.

AI product teams

Embed image and video generation into your own customer flows while keeping your frontend and backend under your control.

Creative automation teams

Automate campaign assets, content experiments, and batch creative requests from internal tools or scheduled jobs.

Founders shipping fast

Move from prompt to generated media without building and maintaining your own model orchestration stack.

Agencies and studios

Route repeatable generation requests through one API key and keep media production flows consistent across client work.

How access works

The public page stays lightweight. Full request details live in the private docs inside API Keys.

1

Choose a Pro or Max plan

Private docs and API key usage unlock after an eligible purchase.

2

Open API Keys

Sign in and open Settings โ†’ API Keys to create and manage production keys.

3

Read the private docs

Use the private docs to copy English request examples, upload flow instructions, and polling guidance.

4

Integrate the category you need

Start with one of the four categories: Text to Image, Image to Image, Text to Video, or Image to Video.

Four Grok Imagine API categories

Each workflow is documented separately in the private docs so your team can copy only the section it needs.

Text to Image

Generate still images from prompts with aspect ratio controls.

Image to Image

Upload one reference image and transform it with an optional prompt.

Text to Video

Generate short videos from prompts with duration, mode, and resolution settings.

Image to Video

Animate one uploaded image into a short video sequence.

Grok Imagine API FAQ

Answers before you unlock access.

Is the full developer documentation public?

No. This public page explains the API at a high level. Full request details, examples, and raw Markdown docs live inside API Keys after an eligible purchase.

Which plans unlock API access?

Grok Imagine Pro and Grok Imagine Max unlock the private docs and API key usage.

What can I automate with this API?

You can automate Text to Image, Image to Image, Text to Video, and Image to Video workflows from your own backend.

Do I need to upload reference media first?

Yes for Image to Image and Image to Video. The private docs include the upload flow and request examples.

Does the first release include webhooks?

No. The first release focuses on authenticated uploads, task creation, and polling task results.

Unlock Grok Imagine API

Get private docs, create API keys, and start integrating Grok Imagine generation into your own product.