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.

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.

Advertisement

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.

 

For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

Advertisement

Related Stories

Popular Mobile Brands
  1. iPhone 17 Price: US vs UAE vs India - Where Is It Cheapest to Buy?
  2. Pixel 9 for Under Rs. 36,000? Flipkart's Big Billion Days Deal Revealed
  3. Apple Launches iPhone 17 Pro, 17 Pro Max With These Massive Upgrades
  4. All the Key Differences Between iPhone 17 and iPhone 17 Pro
  5. Apple Watch Series 11, Ultra 3, SE Launched With These Health Features
  6. Who Is Abidur Chowdhury, the Designer Who Introduced the iPhone Air?
  7. iPhone 17 Price in India: See the Full Price List for All New Devices
  8. Apple Launches iPhone 17 at 'Awe Dropping' Event With These Upgrades
  9. iPhone 16, 16 Plus Price in India Slashed: Check New Prices
  10. iPhone 17 Pro Max vs Galaxy S25 Ultra: The Ultimate Flagship Showdown
  1. Apple's iOS 26 RC Update Adds Icon Tinting Feature to Match Your iPhone or MagSafe Case
  2. Nothing OS 4.0 With Android 16 Confirmed to Launch Soon, Design Teased Ahead of Rollout
  3. Google AI Plus Subscription Plan Launched With Affordable Pricing, Access to Veo 3 Fast
  4. GTA 6 Delay Led to Celebrations at Sucker Punch, Ghost of Yotei Director Says
  5. OnePlus 15 Tipped to Launch in Three Colour Options Ahead of Anticipated Debut
  6. Apple's AirPods Pro 3 Has a Live Translation Feature That Will Come to the AirPods Pro 2, AirPods 4
  7. iPhone 17 vs iPhone 16: Here Is a Quick Comparison of Advertised Video Playback Times
  8. The New AirPods Lineup for 2025: AirPods Pro 3 Arrives, Pro 2 Departs
  9. Bitcoin Price Drops to $111,700 as Traders Await CPI, ECB Signals
  10. Apple Announces Final Cut Camera 2.0, Adds ProRes RAW and Genlock Support for iPhone 17 Pro
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.