Model market
xAI

Grok Chat Fast

Language model128K contextTool calling
Input$0.20per 1M tokens
Output$0.80per 1M tokens
Official price待确认 / 待确认input / output · OpenRouter 公开目录价
1 route

About this model

Grok 网页版快速对话,支持函数工具调用

Request parameters

Chat · POST /v1/chat/completions

ParameterAccepted valuesDefaultDescription
modelRequiredModel ID—This page’s model ID
messagesMessage array—Messages with system, user, assistant, or tool roles
nInteger,fixed at 1—Must be 1
streamtrue / false—Return as an SSE stream
stream_optionsObject—Only include_usage is supported
toolsFunction tool array—Function tools with type=function
tool_choiceObject—auto, none, required, or a named function
parallel_tool_callstrue / false—Whether parallel tool calls are allowed
response_formatObject—Only {"type":"text"} is supported
frequency_penaltyIgnoredNumber,-2 to 2—Accepted; Web models do not use this value
max_completion_tokensIgnoredInteger,1 to 32768—Accepted; the Web model controls output length upstream
max_tokensIgnoredInteger,1 to 32768—Accepted; the Web model controls output length upstream
metadataIgnoredObject—Accepted; does not affect the result
presence_penaltyIgnoredNumber,-2 to 2—Accepted; Web models do not use this value
seedIgnoredInteger,-9007199254740991 to 9007199254740991—Accepted; Web models do not use this value
storeIgnoredtrue / false—Accepted; does not affect the result
temperatureIgnoredNumber,0 to 2—Accepted; Web models do not use this value
top_pIgnoredNumber,0 to 1—Accepted; Web models do not use this value
userIgnoredString,1–256 characters—Accepted; does not affect the result

Message content supports: text。

Parameters outside this list return HTTP 400 with the field name and supported parameters. Parameters marked “Ignored” are accepted but unused by Web models.

Quick call

quickstart.py
from openai import OpenAI

client = OpenAI(api_key="$TPOOL_API_KEY", base_url="https://tpool.dev/v1")

reply = client.chat.completions.create(
    model="x-ai/grok-chat-fast",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)