Elon Musk's xAI Launches New API With Function Calling Capability, Available With Grok-Beta AI Model

The API version of Grok AI model can be accessed via the xAI Console.

Advertisement
Written by Akash Dutta, Edited by Siddharth Suvarna | Updated: 22 October 2024 16:48 IST
Highlights
  • Currently only the grok-beta AI model is available via API
  • It is priced at $5 (roughly Rs. 420) per million input tokens
  • Per million output tokens are priced at $15 (roughly Rs. 1261)

The Grok API currently only supports text generation

Photo Credit: xAI

Elon Musk's's xAI launched an application programming interface (API) for Grok on Monday. The billionaire entrepreneur promised to turn the native artificial intelligence (AI) chatbot developed by xAI into an API in August, and now, users can access and use it. The API key can be generated using the xAI console and users can further customise how to use it. Notably, the pricing for input and output tokens have been kept higher than competitors. Currently, only one AI model is available to use via the API.

xAI API Launched

In a post on X (formerly known as Twitter), Musk announced that the API version of the AI model is now live for all users. An API is essentially a set of rules that allow different systems to communicate with each other. The tool is useful for developers who can then build apps and platforms by using data and other information from APIs.

In this particular case, the Grok API can allow developers to create various kinds of chatbot-style apps (or integrate the chatbot capability within an app) which are all powered by the Grok AI models.

Advertisement

Currently, only one large language model (LLM) dubbed “grok-beta” is available via the API. Notably, no details around the AI model is available. It is also not certain if it is a distilled model derived from the recently released Grok-2 or not. The AI model only supports text generation.

The xAI API costs $5 (roughly Rs. 420) per million input tokens and $15 (roughly Rs. 1261) per million output tokens. Notably, one million tokens is approximately 7,50,000 words. Notably, the pricing is kept on the higher end compared to rivals such as OpenAI's ChatGPT and Google's Gemini. Those interested in trying out the new xAI API can do so via the xAI Console.

The API supports function calling which is essential for any AI model-based API. Function calling allows users to make clear requests to the system and the interface fetches the required data. In xAI's case, the API can connect with Grok AI model which is an Internet-enabled chatbot, and find responses to specific prompts and queries.

 

Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2026 hub.

Advertisement

Related Stories

Popular Mobile Brands
  1. Here's How Much the Realme P4 Power Could Cost in India
  2. Samsung Galaxy S26 Ultra Colourways Spotted in Leaked SIM Tray Images
  3. Vivo V70 FE Reportedly Spotted on Geekbench With This Chipset
  4. Top Deals on Home Appliances During Amazon Great Republic Day Sale
  5. Redmi Turbo 5 Max Will Launch Soon With This Battery and MediaTek Chipset
  6. Top Deals on iQOO 15, iPhone Air During Amazon Great Republic Day Sale
  7. Sarvam Maya OTT Release: Know Everything About This Malayalam Fantasy Drama Film
  8. Oakley Meta HSTN Smart Glasses Review
  1. Preparation for the Next Life Now Streaming on Prime Video: Everything You Need to Know About American Drama Film
  2. Lava Blaze Duo 3 Launched in India With 1.6-Inch Rear Display, 5,000mAh Battery: Price, Specifications
  3. Vivo V70 FE Reportedly Surfaces on Geekbench With MediaTek Dimensity Chipset
  4. Salliyargal Now Available for Streaming Online: What You Need to Know About This Tamil Film
  5. Realme P4 Power 5G Price in India Leaked; Company Teases Design and Colour Options
  6. Samsung Galaxy S26 Ultra Leaked SIM Trays Hint at Four Colourways
  7. A Knight of the Seven Kingdoms Streaming Now on JioHotstar: Know Everything About Game of Thrones Prequel
  8. Mark OTT Release Date: When and Where to Watch Sudeep Sanjeev’s Action Thriller Online?
  9. Sarvam Maya OTT Release: Know Everything About This Malayalam Fantasy Drama Film
  10. Valve Changes AI Disclosure Guidelines on Steam for Game Developers
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.