Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 Starrise AI API 调用 xAI Grok 4 Fast Non-Reasoning 模型。Grok 4 非推理版。
curl https://ai.alad.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-4-fast-non-reasoning", "messages": [ { "role": "user", "content": "用简单的话解释量子纠缠。" } ] }'
from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://ai.alad.com/v1" ) response = client.chat.completions.create( model="grok-4-fast-non-reasoning", messages=[ {"role": "user", "content": "用简单的话解释量子纠缠。"} ] ) print(response.choices[0].message.content)
model
grok-4-fast-non-reasoning
messages
{ role, content }
max_tokens
temperature
0
2
1
stream
false
top_p