Grok

xAI: Grok 4.5Chat

grok/grok-4.5

SpaceXAI's frontier model for coding, agentic tasks, and knowledge work.

500K context window
33K max output tokens
Released: 2026-07-08
Protocols:Grok
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb Search

Pricing

PriceRate 0.15x
HaoAI
Official
Input
$0.3/M
$2/M
Output
$0.9/M
$6/M
Cache read
$0.075/M
$0.5/M

Code Examples

from openai import OpenAI

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

response = client.chat.completions.create(
    model="grok/grok-4.5",
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

print(response.choices[0].message.content)

Frequently asked questions

HaoAI bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.