New users get free credits - no credit card required Get started
APIAny logoAPIAny
AI Models
PricingFree API
Resources
Sign InGet Started
Text Generation

xAI logoxAI

Grok 4.6 API

Grok 4.6 is an advanced AI model designed to deliver fast, writing, coding, research, data analysis, and creative problem-solving through natural conversation

24H Status Monitor
24h success rate: 100%
G

Model:

grok-4.6
Price: 1.2 credits per 1K input tokens · ≈ $0.0006-$0.0012 · 2.4 credits per 1K output tokens · ≈ $0.0012-$0.0024High stability with detailed usage records on the APIAny platform.
PlaygroundHistoryPricingAPI
grok-4.6
62 (suggested: 2,000)
0.7
02

Sampling temperature. Lower is more deterministic.

1024
168192
->

USD estimate $0.0015-$0.003: highest recharge package uses $1 = 2,000 credits; entry package uses $1 = 1,000 credits.

Preview
No Task Running
G
LLMResult preview

History

Saved locally in this browser

0 running · 0 completed

Your generation history will appear here

Input

1.2 credits/1K

≈ $0.0006-$0.0012

Output

2.4 credits/1K

≈ $0.0012-$0.0024

Cache

1.2 credits/1K

≈ $0.0006-$0.0012

Context

-

Max output

-
View API usage
Pricing
Model ID
Type
Quality
Price
grok-4.6
Text Generation
Input tokens
1.2 credits per 1K input tokens · ≈ $0.0006-$0.0012
grok-4.6
Text Generation
Cache read tokens
1.2 credits per 1K cached input tokens · ≈ $0.0006-$0.0012
grok-4.6
Text Generation
Output tokens
2.4 credits per 1K output tokens · ≈ $0.0012-$0.0024
grok-4.6
Text Generation
Minimum request
0.8 credits minimum · ≈ $0.0004-$0.0008
Model IDgrok-4.6
TypeText Generation
QualityInput tokens
Price1.2 credits per 1K input tokens · ≈ $0.0006-$0.0012
Model IDgrok-4.6
TypeText Generation
QualityCache read tokens
Price1.2 credits per 1K cached input tokens · ≈ $0.0006-$0.0012
Model IDgrok-4.6
TypeText Generation
QualityOutput tokens
Price2.4 credits per 1K output tokens · ≈ $0.0012-$0.0024
Model IDgrok-4.6
TypeText Generation
QualityMinimum request
Price0.8 credits minimum · ≈ $0.0004-$0.0008

API Reference

Call this model through a standard REST API. Authenticate with your API key, then pick an endpoint below to see its parameters and examples.

Authentication

Every request needs a Bearer token in the Authorization header. Create an API key in the console.

Authorization: Bearer YOUR_API_KEY
POSThttps://apiany.ai/v1/chat/completions

Request parameters

ParameterTypeRequiredNotes
modelstringRequiredModel identifier to invoke. Use this model's ID.
messagesarrayRequiredConversation history in OpenAI chat format (role + content).
streambooleanOptionalWhen true, the response streams back as server-sent events.

Request example

curl "https://apiany.ai/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-4.6",
  "messages": [
    {
      "role": "user",
      "content": "Summarize the following text in three concise bullet points:"
    }
  ],
  "temperature": 0.7,
  "max_tokens": 1024
}'

Response example

{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "grok-4.6",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 18,
    "total_tokens": 30
  }
}

More models

Explore all models

GLM-5.2

GLM logoText Generation

Gemini 3.5 Flash

Google logoText Generation

MiniMax M3

MiniMax logoText Generation

DeepSeek V4

DeepSeek logoText Generation

APIAny API gateway for every production AI model.

Popular Models

  • Seedance 2.0
  • GPT Image 2
  • Nano Banana 2
  • Z-Image
  • Gemini Omni

Collections

  • All Collections
  • GPT API Family
  • Seedance API Family
  • Gemini API Family
  • GPT Image API

Model Types

  • Text Generation
  • Image Generation
  • Video Generation
  • Audio Generation

Platform

  • Models
  • Pricing
  • Docs
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
© 2026 APIAny. All rights reserved.
support@apiany.ai
English
Français
Deutsch
中文
日本語
한국어
Español
APIAny logoAPIAny