x-aiChat
xAI: Grok Code Fast 1
x-ai/grok-code-fast-1
256KContext Window
10KMax Output
Supported Protocols:reasoninginclude_reasoningstructured_outputsresponse_formatmax_tokenstemperaturetop_pseedlogprobstop_logprobsstoptoolstool_choice
Normal
Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding. With reasoning traces visible in the response, developers can steer Grok Code for high-quality work flows.
Capabilities
🧠 Reasoning🔧 Function CallingText GenerationCode GenerationAnalysis & ReasoningReasoning
Technical Specs
Input Modality
Text
Output Modality
Text
Arch
—
Default Temperature
0.7
Default Top_P
1
Pricing
Pay per use, no monthly fees| Billing Type | Unit | Price |
|---|---|---|
| Text Input | — | $0.2000/M tokens |
| Text Output | — | $1.5000/M tokens |
| Cache Read | — | $0.0200/M tokens |
| Web Search | — | $0.0050/次 |
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.uniontoken.ai/v1",
api_key="YOUR_UNIONTOKEN_API_KEY",
)
response = client.chat.completions.create(
model="x-ai/grok-code-fast-1",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)FAQ
xAI: Grok Code Fast 1
x-ai/grok-code-fast-1
In< ¥0.001/1K
Out< ¥0.001/1K
Context Window256K
Max Output10K
Related Models
View All → →Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →