Search

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
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
xAI Launches New Grok API for Developers With Image Generation Capability

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.

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.

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.

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.

 
Show Full Article
Please wait...
Advertisement

Related Stories

Popular Mobile Brands
  1. OnePlus 13s Set to Launch in India Tomorrow: Know Price, Specifications
  2. Vivo T4 Ultra to Launch in India on This Date
  3. iOS 26 to Arrive With These Upgrades for Messages, Apple Music and CarPlay
  4. Samsung Galaxy S26 Could Drop Gemini in Favour of This AI Assistant
  5. The Witcher 4 Unreal Engine 5 Tech Demo Shows Stunning Open World
  1. Google Opens Access to Gemini 2.5 Native Audio Dialog and Controllable Speech Generation in Preview
  2. Vi, Vivo Partner to Offer Vivo V50e Buyers in India an Exclusive 5G Bundled Plan
  3. Google Weather in Search Reportedly Testing AI-Powered Summaries In Some Cities
  4. iPhone 18 Pro, iPhone 18 Pro Max and iPhone 18 Fold Said to Debut With 2nm A20 Chipset in 2026
  5. Perplexity Could be Default AI Assistant on Samsung Galaxy S26 as Part of 'Wide-Ranging' Deal: Report
  6. OnePlus 13s Key Specifications Revealed via Amazon Listing Ahead of June 5 Launch
  7. Nizharkudai Now Streaming on Aha Tamil: What You Need to Know About Tamil Family Drama
  8. Sony's State of Play Broadcast Announced for June 4: How to Watch, What to Expect
  9. OnePlus 13s India Launch Tomorrow: Expected Price, Specifications and How to Watch Livestream
  10. Apple Vision Pro to Get Native Support for PlayStation, Xbox and Spatial Controllers With visionOS 26: Report
Gadgets 360 is available in
Download Our Apps
App Store App Store
Available in Hindi
App Store
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.
Trending Products »
Latest Tech News »