qwen-bg
max-ico04
In
$2.6 / 1M
Out
$7.8 / 1M
max-ico02
Chat
max-ico03
Grok 4.6
xAI's large language model for text generation and reasoning, with a 500K token context window and prompt caching support.
Text to Speech
                                        const { OpenAI } = require('openai');

const api = new OpenAI({
  baseURL: 'https://api.ai.cc/v1',
  apiKey: '',
});

const main = async () => {
  const result = await api.chat.completions.create({
    model: 'x-ai/grok-4-6',
    messages: [
      {
        role: 'system',
        content: 'You are an AI assistant who knows everything.',
      },
      {
        role: 'user',
        content: 'Tell me, why is the sky blue?'
      }
    ],
  });

  const message = result.choices[0].message.content;
  console.log(`Assistant: ${message}`);
};

main();
                                
                                        import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.ai.cc/v1",
    api_key="",    
)

response = client.chat.completions.create(
    model="x-ai/grok-4-6",
    messages=[
        {
            "role": "system",
            "content": "You are an AI assistant who knows everything.",
        },
        {
            "role": "user",
            "content": "Tell me, why is the sky blue?"
        },
    ],
)

message = response.choices[0].message.content

print(f"Assistant: {message}")
Docs

300+ AI Models for OpenClaw & AI Agents

qwenmax-bg
Grok-2.svg
Grok 4.6

Developer Access Slip
MODEL: grok-4.6
Grok 4.6 API Pricing§ 01
Inputper 1M tokens · ≤200K ctx
$2.60
Outputper 1M tokens · ≤200K ctx
$7.80
RATE CARDUSD / 1M tok
Tiered Pricing Detail
≤ 200K contextInput $2.6 · Output $7.8 / 1M
> 200K contextInput $5.2 · Output $15.6 / 1M
Cached Input ≤200K$0.65 / 1M
Cached Input >200K$1.3 / 1M
Grok 4.6 vs Other Models§ 02
Model Input Output Context Best For
Grok 4.6This page $2.6/1M $7.8/1M 500K tok Reasoning + agents with long context
Grok 4.5 $2.6/1M $7.8/1M 500K tok Reasoning + agents with long context
GPT-5.5 $6.5/1M $39/1M 1.05M tok Reasoning + agents
Claude Opus 4.8 $6.5/1M $32.5/1M 1M tok Chat + assistants
* KEEP RECEIPT FOR YOUR RECORDS *
THANK YOU FOR CALLING THE API
WWW.AI.CC · GROK-4.6

AI Playground

Test all API models in the sandbox environment before you integrate. We provide more than 300 models to integrate into your app.
contact us
api-right-1

300+ AI Models for
OpenClaw & AI Agents

Save 20% on Costs