Grok

xAI: Grok Composer 2.5 FastChat

grok/grok-composer-2.5-fast

Text-only coding model for Grok Build workflows.

200K context window
33K max output tokens
Released: 2026-06-01
Protocols:Grok
Capabilities:Function Calling

Pricing

PriceRate 0.15x
HaoAI
Official
Input
$0.45/M
$3/M
Output
$2.25/M
$15/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-composer-2.5-fast",
    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.