← All models
xAI logo

Grok 3

Chat

x-ai:grok-3

Added April 4, 2025

Usage

import OpenAI from "openai";

const client = new OpenAI({
    baseURL: "https://api.tributary.cc/openai/v1",
    apiKey: "<TRIBUTARY_API_KEY>",
});

const completion = await client.chat.completions.create({
    model: "x-ai:grok-3",
    messages: [
        { role: "user", content: "Hello!" }
    ],
});

console.log(completion.choices[0].message.content);

Providers

Provider Model Context Output Input $/M Output $/M
xAI grok-3 131K 8K $3.00 $15.00
Context/output in tokens. Prices in USD per 1M tokens.