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.

Advertisement

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.

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.

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. Amazon Great Freedom Sale 2026: Top Deals on Ink Tank, All-in-One Printers
  2. Amazon Great Freedom Sale 2026: Best Deals on Soundbars
  3. Amazon Freedom Sale 2026: Best Deals on Microwave Oven and OTGs
  4. Best Gaming-Focused Smartphones Under Rs. 50,000 in India
  5. Amazon Great Freedom Sale 2026: Best Deals on Tablets From Xiaomi and More
  6. Amazon Freedom Sale 2026: Best Deals on Premium OLED and QLED TVs
  1. Amazon Freedom Sale 2026: Best Deals on Home Security Cameras from CP Plus, Qubo and More Brands
  2. Tom Clancy's Ghost Recon: Future Soldier Is Free to Claim on Ubisoft Store for a Week
  3. Amazon Great Freedom Sale 2026: Best Deals on Refrigerators from Haier, LG, Samsung and More Brands
  4. Samsung 200MP ISOCELL HPC Camera Sensor Announced With Better HDR and Low-Light Performance
  5. Samsung Galaxy S26 FE Design Revealed in Fresh Leak Ahead of Launch
  6. iQOO Z11 Colourways, Key Specifications Teased; Confirmed to Feature MediaTek Dimensity 7500 Turbo Chipset
  7. Pova AI Buds Pro India Launch Date Announced; Design, Key Features, Amazon Availability Confirmed
  8. iQOO Neo 11 Ultra Launch Date Announced as Key Specifications, Features Surface Online
  9. Huawei MatePad SE 11, MatePad 11.5 PaperMatte Edition Now Available on Flipkart: Price, Specifications
  10. Samsung Says More Galaxy Z Flip Users Are Upgrading to Galaxy Z Fold 8
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.