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.

Advertisement

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.

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.

 

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. Samsung Galaxy Unpacked 2026 LIVE: What Samsung Might Launch Today
  2. Here's How Much the Redmi Note 17 Could Cost in India
  3. Redmi Note 17 Pro Max Listed on NBTC Website Ahead of Imminent Launch
  4. Garmin Cirqa Smart Band With a Screen-Free Design Arrives at This Price
  5. Gemini 3.6 Flash, 3.5 Flash-Lite Launched With Focus on Faster, Cheaper Agents
  1. Google Launches Gemini 3.6 Flash and Gemini 3.5 Flash-Lite, Reveals Gemini 4 to Be in Training
  2. Garmin Cirqa Smart Band Launched With a Screen-Free Design, Sleep Tracking Functionality: Price, Features
  3. Instagram Now Lets Users Swap Music on Published Feed Posts and Carousels
  4. Redmi Note 17 Price in India and Key Specifications Tipped Ahead of Launch
  5. TSMC Plans Up to 10 Percent Chip Price Hike Amid Soaring Production Costs: Report
  6. Samsung to Reportedly Showcase Smart Glasses With Snapdragon AR1 Gen 1 Chip at Galaxy Unpacked
  7. Vivo S2 India Launch Reportedly On the Horizon as Promotional Poster Leaks
  8. Samsung Galaxy Unpacked Event Today: How to Watch Galaxy Z Fold 8 Ultra, Galaxy Z Flip 8, Galaxy Watch 9 Launch Live
  9. Offline UPI Payments With NFC Support Could Launch in India Soon
  10. Samsung Galaxy S26 Ultra's Privacy Display Feature Gets a Major Upgrade in One UI 9 Beta
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.