Ploba logo

Find the right AI tool for the job: apps, agents, APIs, MCP servers and datasets, explained plainly.

Get the AI Digest

Discover

  • Explore
  • Top Charts
  • Categories
  • Agents
  • MCP servers
  • Developer tools

Learn & community

  • Learn AI
  • AI Glossary
  • Blog
  • Hackathons
  • People
  • AI Digest

For makers

  • List your tool
  • Docs
  • Claim a listing
  • Advertise
  • Write for us

Company

  • About
  • Careers
  • Changelog
  • Trust
  • Security
  • Contact

© 2026 Ploba. All rights reserved.

  • Privacy
  • Terms
  • Cookies
  • Advertising
  • All policies
llms.txt
Ploba logo
DiscoverHackathonsPeopleLearnAI Digest
Sign inGet started
HomeTop ChartsExploreCategories
TypesWeb apps1,894Agents585Plugins416APIs376Mobile apps152Datasets85
AdvertisingYour product hereReach people browsing AI tools on Ploba.Advertise hereAdvertisingYour product hereReach people browsing AI tools on Ploba.Advertise here
  1. Explore
  2. /
  3. Developer Tools
  4. /
  5. Grok Imagine API
Developer Tools
Grok Imagine API icon

Grok Imagine API

by xAI

The Grok Imagine API generates, edits and restyles images and video through one API. It supports text-to-video and image-to-video, with clips up to 15 seconds.

API·Usage-based

View documentation(opens in a new tab)

About Grok Imagine API

Key features of Grok Imagine API

  • Text-to-video and image-to-video with clips up to 15 seconds
  • Images up to 2K resolution, 10 per request
  • Virtual try-on video from a person photo and a clothing item
  • Precision edits to colors, materials and objects
  • Creative restyle of source video
  • Product placement and restaging from one product photo
  • Python SDK, OpenAI-compatible SDKs and REST access
  • Playground for trying it before building

Who Grok Imagine API is for

  • Developers adding image or video generation to apps
  • E-commerce and fashion teams building product and try-on visuals
  • Marketing and creative teams making ad and product content
  • Designers turning sketches and mockups into polished output

How to use Grok Imagine API

  1. 1

    Step 1: Create an account at console.x.ai and load it with credits.

  2. 2

    Step 2: Generate an API key on the API Keys page and set it as XAI_API_KEY.

  3. 3

    Step 3: Install the xAI Python SDK, or the OpenAI SDK with the xAI base URL.

  4. 4

    Step 4: Send a prompt to the video or image endpoint with options such as duration, aspect ratio and resolution.

  5. 5

    Step 5: For video, poll the returned request ID until the result is ready.

  6. 6

    Step 6: Try prompts first in the Playground if you want to experiment without code.

Grok Imagine API FAQ

What can the Grok Imagine API do?

It generates images and video from text or images, edits them, and restyles video. Video clips run up to 15 seconds and images go up to 2K resolution.

How do I get access?

Create an account at console.x.ai, load it with credits and generate an API key.

Can I use the OpenAI SDK?

Yes. The page shows the OpenAI SDK configured with the xAI base URL and your xAI API key.

How is it billed?

Billing is usage-based, charged against credits on your account, with video priced per second and images per image.

Details

Pricing
Usage-basedUsage-based API billing. You create an account at console.x.ai and load it with credits. Image and video generation are priced per image and per second of video; see the xAI pricing page for current rates.
Type
API
Platforms
  • API
Categories
Developer ToolsDesignVideo
Added
Oct 1, 2026

Links

  • Documentationdocs.x.ai
xAI iconPublisherxAI

Built from public sources

We put this page together from Grok Imagine API’s own website and docs so you can compare it with other tools. Ploba isn’t affiliated with Grok Imagine API.

Work at Grok Imagine API? Claim the listing to manage it yourself.

Something wrong here?

More from xAI

View publisher
Grok API iconGrok APIxAI · Usage-basedThe Grok API gives developers access to Grok models for text, code, reasoning, image and video generation, voice, and live web and X search. It is for developers and companies building apps and agents on Grok.Developer Tools · Usage-basedGrok Voice API iconGrok Voice APIxAI · Usage-basedGrok Voice API provides real-time speech-to-speech voice agents, text-to-speech and speech-to-text through one API. It supports tool calling, custom cloned voices and 25+ languages.Developer Tools · Usage-basedGrok DeepSearch iconGrok DeepSearchxAI · SubscriptionGrok DeepSearch uses AI for AI research mode for searching online information and synthesizing multi-source answers.Productivity · Subscription

Related tools

See more
Rask AI API iconRask AI APIRask AI · Usage-basedRask AI translates and dubs video and audio into 135+ languages, with voice cloning and lip-sync. It is available in the app and through an API.Developer Tools · Usage-basedBria AI iconBria AIBria · Usage-basedBria AI uses AI for commercially oriented visual generative AI APIs for image creation, editing, background operations, and brand workflows.Developer Tools · Usage-basedremove.bg API iconremove.bg APICanva · Usage-basedremove.bg API uses AI for AI background-removal API for automatically isolating people, products, animals, and objects from images.Developer Tools · Usage-based