Elon Musk’s Grok AI Model Now Supports Files in API

The xAI API, powered by Grok AI models, now supports various file formats, including text, PDF, CSV, JSON, and more.

Advertisement
Written by Akash Dutta, Edited by Ketan Pratap | Updated: 11 November 2025 18:10 IST
Highlights
  • The maximum file size supported by the xAI API is 48MB
  • Only Grok 4 and Grok 4 Fast support file processing
  • Users can attach multiple files and chat about them

The xAI API also supports multi-turn conversations with files

Photo Credit: xAI

Elon Musk's xAI has now added file support in its Grok-powered application programming interface (API). With this, developers can now offer this capability in the artificial intelligence (AI) apps and tools they develop and release. While most major AI companies already offer this feature, xAI has now joined the ranks as well. The company says that the API will now support a wide range of file formats, and it will also allow users to attach multiple files and have conversations about them.

File Support Comes to xAI API

xAI has been rapidly expanding its features. Recently, the company upgraded the Grok Imagine feature to allow users to type detailed prompts and generate videos based on them. Both instruction following, complex prompt understanding, and the output fidelity has been improved. Now, the Musk-led company is offering file support to developers via its Files API.

On Tuesday, Musk reshared a post on X (formerly known as Twitter) highlighting that the new Files API will allow developers to offer the ability to upload and attach a document and answer queries based on it. To analyse files, the API uses an agentic tool calling function. This is why the feature is only available with Grok 4 and Grok 4 Fast AI models.

Advertisement

At present, the API supports a large number of file formats, including plain text, markdown, Python, JavaScript, CSV, JSON, PDF, and more. However, the maximum file size it accepts has been limited to 48MB. Also, batch requests are not possible while pulling a request from files.

Advertisement

Coming to the features, it supports multi-file support and multi-turn conversations. Additionally, the code execution tool has been integrated to enable the underlying AI model to perform advanced data analysis, statistical computations, and more. The model can also write and execute Python code that processes your files directly.

Notably, the Files API charges $10 (roughly Rs. 885) per 1,000 tool invocations. Each time the model searches the documents, it counts as one tool invocation. These charges are applied in addition to standard token costs. File-based chats use prompt tokens, reasoning tokens, completion tokens, and cache tokens (for repeated document content).

 

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. Oppo Reno 15 Lineup Could be Powered by This MediaTek Dimensity Chipset
  2. Xbox Cloud Gaming Launched in India: Here's How You Can Start Playing
  3. Acerpure Nitro Z Series 100-Inch QLED TV Debuts: Price in India
  4. WhatsApp May Let You Reserve Same Usernames Used on Facebook, Instagram
  5. This AI Model Can Outperform GPT-5, Gemini 2.5 Pro in Spatial Intelligence
  6. iPhone 20 Series Could Launch With This Camera Upgrade in 2027
  7. Lava Agni 4 Key Specifications Leak Ahead of India Launch Next Week
  1. Sony Announces State of Play Japan Broadcast for This Week: What to Expect
  2. GoPro Max 2, Lit Hero Launched in India With Up to 8K Video Recording, Along With Fluid Pro AI Gimbal: Price, Specifications
  3. Elon Musk's Grok AI Recognises Lord Ganesha, Wows the Internet
  4. Elon Musk’s Grok AI Model Now Supports Files in API
  5. Ghost of Yotei Sells 3.3 Million Copies in a Month, PS5 Sales Near 85 Million Units
  6. Microsoft Discovers Vulnerability That Lets Hackers See ChatGPT and Gemini’s Conversation Topics
  7. iPhone Pocket, a Limited Edition 3D Knitted iPod Sock-Style Accessory, Launched in Select Markets
  8. YouTube's New 'Ask' Button Uses Gemini to Get Instant Video Answers
  9. Oppo, OnePlus Start Global Android 16 Rollout with ColorOS 16 and OxygenOS 16 Updates
  10. Samsung Galaxy S26 Series Could Launch With Faster Wireless Charging Support; Display Sizes Leaked
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.