Grok Beta API

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

Get Started

Model Card

Grok Beta was xAI's initial public API model released in late 2024, offering foundational chat and reasoning capabilities with 131K context window. It served as the enterprise API beta preview before being superseded by versioned Grok 2 models.

Context Window

131K

tokens

Max Output

131,072

tokens

Input Cost

$5

per million tokens

Output Cost

$15

per million tokens

API Usage Example

Add Grok Beta 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-beta"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

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

Read the Docs View Tutorials