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.

Advertisement

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.

 

For details of the latest launches and news from Samsung, Xiaomi, Realme, OnePlus, Oppo and other companies at the Mobile World Congress in Barcelona, visit our MWC 2025 hub.

Advertisement

Related Stories

Popular Mobile Brands
  1. Realme Narzo Power 5G With 10,001mAh Battery Launched in India: Price, Specifications
  2. Nothing Phone 4a, Phone 4a Pro Launched in India at This Price
  3. Moto Watch Review: The Best Smartwatch Under Rs. 6,000 in 2026?
  4. Nothing Launches Headphone (a) With Adaptive ANC, Spatial Audio Support
  5. Vivo T5x 5G AnTuTu Score Exceeds 1 Million Points, Will Launch in India Soon
  6. Lava Bold 2 5G India Launch Teased; Company Teases Design Ahead of Debut
  7. Just a Day After Releasing GPT-5.3 Instant, OpenAI Teases GPT-5.4 Model
  8. OnePlus 15T Confirmed to Launch With a Larger Battery, Faster Charging
  9. Honor 600 Lite Launched With 6,520mAh Battery and This Dimensity Chipset
  10. Nothing Phone 4a vs Phone 3a: Price in India, Specifications Compared
  1. ISS Crew Prepares to Send Japan’s HTV-X1 Cargo Spacecraft Back to Earth After Four Months
  2. OpenAI’s Codex App Is Now Available on Windows, Can Be Downloaded via Microsoft Store
  3. OpenAI Teases GPT-5.4 AI Model Launch Just a Day After Releasing GPT-5.3 Instant
  4. Nothing Headphone (a) Launched With Adaptive ANC, Customisable Controls: Price, Specifications
  5. Granny OTT Release Date: When and Where to Watch the Village Mystery Thriller Online?
  6. Andhaka OTT Release: Where to Watch the Telugu Drama-Thriller Online?
  7. Pookie OTT Release: When and Where to Watch Vijay Antony’s Romantic Drama Online?
  8. WhatsApp Plus Paid Subscription Reportedly in Development With Additional Customisation Options, Up to 20 Pinned Chats
  9. Samsung Patent Hints at Potential Clamshell-Style Foldable With Two Cover Displays
  10. Google Introduces Gemini 3.1 Flash-Lite as Its Fastest and Most Cost-Efficient AI Model
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.