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
Online
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 & Reasoningmodels.reasoning
Technical Specs
Input Modality
Text
Output Modality
Text
Arch
—
Pricing
Pay per use, no monthly feesInput Token< ¥0.001/1K Token
Output Token< ¥0.001/1K Token
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 →