Grok 3 API

Access Grok 3 from xAI using Puter.js AI API.

Get Started

Model Card

Grok 3 is xAI's flagship model launched February 2025, trained with 10x more compute on the Colossus supercluster with 200,000 GPUs. It features advanced reasoning through reinforcement learning, deep domain knowledge in finance/healthcare/law/science, and a 131K token context window.

Context Window

131K

tokens

Max Output

131,072

tokens

Input Cost

$3

per million tokens

Output Cost

$15

per million tokens

API Usage Example

Add Grok 3 to your app with just a few lines of code.
No API keys, no backend, no configuration required.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms", {
            model: "x-ai/grok-3"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

Add Grok 3 to your app without worrying about API keys or setup.

Read the Docs View Tutorials