• Source:JND

Elon Musk’s xAI has rolled out a significant update to its Grok-powered API, introducing file support — a long-awaited feature that now allows developers to upload, attach, and interact with documents directly through the API. This upgrade brings xAI in line with major competitors like OpenAI, Anthropic and Google DeepMind that already provide document analysis and file-based interactions as part of their AI platforms.

xAI's update represents an essential step toward making Grok more capable, context-aware, and developer-friendly.

File Support Comes to xAI’s API

Announced earlier this week, xAI’s new Files API enables developers to build AI tools and applications that can read, interpret, and answer queries based on uploaded documents.

ALSO READ: New Phishing Scam Targets iPhone Users Through Fake ‘Found Device’ Messages, Warns Swiss Cyber Agency

Elon Musk reshared the announcement post on X (formerly Twitter), confirming that developers can now integrate document-based capabilities directly into their products using Grok’s models.

The feature leverages xAI’s agentic tool-calling function, which allows Grok to intelligently analyse uploaded files and perform multi-step reasoning or computation tasks. As a result, this feature is currently available only for Grok 4 and Grok 4 Fast models, which are the company’s most advanced reasoning systems.

Supported File Types and Features

According to xAI, their API supports an extensive variety of file formats that make it suitable for both developers and enterprise applications.

Supported file types include:

- Text and documentation: TXT, Markdown, PDF

- Data files: CSV, JSON

- Programming files: Python (.py), JavaScript (.js)

- Structured text and code formats for technical and analytical use cases

Maximum file sizes supported per file is 48MB; multiple files can be uploaded during one upload session but batch processing for simultaneous multi-file requests is currently unavailable.

Developers can now build apps where users can:

- Upload reports, code files, or research papers

- Ask detailed questions about the content

- Have multi-turn conversations across multiple files

- Request summaries, insights, or explanations

- Use the code execution tool to perform data analysis or calculations directly on the uploaded files

This integration makes Grok capable of running Python code, performing statistical computations, and even generating visual outputs based on user data.

Pricing and Usage Model

xAI’s Files API introduces a tool invocation-based pricing system. Developers are charged $10 (roughly ₹885) for every 1,000 tool invocations — where each document query or lookup counts as one invocation.

These costs are in addition to standard token usage fees, which include:

- Prompt tokens (for user input)

- Reasoning tokens (for internal model thinking)

- Completion tokens (for final responses)

- Cache tokens (for reusing previously analysed document content)

This pricing structure ensures developers only pay for active file-based interactions, making it scalable for both small apps and enterprise platforms.

Grok’s Expanding Capabilities

The file support update follows several recent improvements to xAI’s ecosystem. Earlier this month, the company upgraded Grok Imagine, its video generation feature, enabling users to type detailed prompts and generate short videos with enhanced instruction-following and visual fidelity.

Together, these updates reflect xAI’s broader goal — to transform Grok into a multimodal, agentic AI platform capable of not just text and image understanding, but also data analysis, code execution, and autonomous reasoning.

ALSO READ: YouTube Rolls Out New ‘Ask’ Button Powered by Gemini AI: Watch, Learn, And Interact Smarter

What This Means for Developers

The introduction of file support opens the door to a variety of new AI applications across industries:

- Developers can create intelligent coding assistants that analyse project files.

- Businesses can automate report analysis, compliance checks, and data audits.

- Researchers and students can use Grok-based tools to summarize academic papers or parse datasets.

With its new Files API, xAI is positioning Grok as a developer-first alternative to other large language model APIs — one that combines high performance, affordable scaling, and direct integration with the X ecosystem.

Final Thoughts

Elon Musk’s xAI continues to expand Grok’s ecosystem at a rapid pace, and the introduction of file handling capabilities represents a major milestone. With support for multiple formats, multi-file conversations, and integrated code execution, Grok now has the technical versatility needed to power advanced enterprise and consumer-grade AI tools.

As competition intensifies in the generative AI space, xAI’s strategy is clear — make Grok not just conversational, but deeply functional. This update pushes the company one step closer to that goal, giving developers more flexibility than ever to build the next generation of intelligent, document-aware AI applications.

Also In News