xAI Launches New Grok API for Developers With Image Generation Capability

The grok-2-image-1212 AI model is now available via API and can be used to generate images natively.

Advertisement
Written by Akash Dutta, Edited by Siddharth Suvarna | Updated: 20 March 2025 19:42 IST
Highlights
  • Developers can generate up to 10 images in one request
  • The API currently does not support output customisation
  • xAI’s new API reportedly charges $0.07 per image

The API revises the prompt using a chat model before sharing it with the image generation model

Photo Credit: X/Grok

xAI, the Elon Musk-led artificial intelligence (AI) firm behind Grok, released a new application programming interface (API) on Wednesday. The new API is unique as it is the first developer tool that supports image generation. The company has lately been focused on developers and has released as many as five APIs since the first one arrived in November 2024. The pricing is said to be slightly on the steeper end, and the company is currently not letting users customise the output.

xAI Introduces New API With Image Generation Capability

Before the latest addition, xAI offered four customised AI models as API. Two were based on the first iteration of the Grok large language model (LLM) and two were based on Grok 2. While the company offered the image understanding feature, there was no way to generate images using the API.

Advertisement

This was likely because xAI was outsourcing the image generation capability available via its chat platform. Till last year, image generation on Grok was handled by the AI startup Black Forest Labs. However, in December, the AI firm announced the release of Aurora, an image generation model built on the mixture of experts (MoE) network. It appears the company is now expanding the model to developers as well.

In its documentation page, xAI now lists a new API model dubbed ‘grok-2-image-1212' which comes with image generation capability. The functionality is straightforward. Once a text prompt is sent, a chat model takes the instruction and revises the prompt for better clarity. The revised prompt is shared with the image generation model and the output is generated.

Advertisement

Currently, developers can generate up to 10 images with a single request by adjusting the parameter. There is a limit of five requests per second, crossing which will return an error message. The images are shared in JPEG format. A TechCrunch report claimed that xAI will charge $0.07 (roughly Rs. 6) per image.

The pricing places the service on the higher end, given that Black Forest Labs' Flux API costs $0.05 (roughly Rs. 4) per image and Google's Imagen 3 costs $0.03 (roughly Rs. 2.5) per image. However, Ideogram is still more expensive at $0.08 (roughly Rs. 7) per image.

Advertisement

Additionally, xAI highlighted that the API currently does not support output customisation such as changing the quality, size, or style of the images. Notably, the API's endpoint is compatible with OpenAI SDK and users can use the same base_url. However, it is not compatible with the Anthropic SDK.

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement

Related Stories

Popular Mobile Brands
  1. OTT Releases This Week: 24, Band Melam, Nukkad Naatak, Prathichaya, and More
  2. Vivo Y6 5G Debuts With 7,200mAh Battery, 6.75-Inch Screen at This Price
  3. Redmi Note 17 Pro Max Leak Reveals Chipset, Camera Details
  4. Xbox Chief Asha Sharma Sets New Strategy, Says Will Reevaluate Exclusives
  5. Vivo X300 Ultra Content Creation Features Showcased Ahead of India Launch
  6. Honor Earbuds 4 With Up to 46 Hours of Total Battery Life Debut Globally
  7. Detailed Oppo Find X9 Ultra Teardown Video Shows Us What's Inside
  8. Vivo X500 Series Screen Sizes Leaked, Could Arrive With 144Hz Displays
  1. Microsoft Gaming Rebrands to Xbox, Debuts New Logo as Xbox Chief Says Company Reevaluating Exclusive Games
  2. Instagram Launches Instants App With Disappearing Photos to Rival Snapchat, BeReal
  3. Prathichaya (2026) Now Streaming Online: What You Need to Know
  4. Vivo X500 Series Tipped to Launch With 144Hz Displays, Ultrasonic Fingerprint Scanners
  5. Kelp Exploit Aftermath: DeFi Protocols Join Hands to Restore rsETH Following $293 Million Hack
  6. Microsoft Makes Copilot’s Agentic Features in Word, Excel and PowerPoint Generally Available
  7. OnePlus Ace 6 Ultra Battery Capacity Revealed as Company Teases ‘Energy Concentration’ Chip
  8. Mension House Mallesh Now Available for Streaming Online: Where to Watch This Telugu Romantic Comedy Drama Online?
  9. Redmi A7 4G, Redmi A7 Pro 4G With Unisoc T7250 Chip, 13-Megapixel Rear Camera Go on Sale in India
  10. Xiaomi Mix Fold 5 Reportedly in Development With In-House Xring O3 Chip
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.