Appearance
Grok4.5 接口文档
支持的模型
grok-4.5
1. Chat
bash
curl https://apiok.cc/v1/chat/completions \
-H "Authorization: Bearer $APIKEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.5",
"messages": [
{
"role": "user",
"content": "who are you?"
}
],
"stream": false
}'2. Responses
bash
curl 'https://apiok.cc/v1/responses' \
-H "Authorization: Bearer $APIKEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.5",
"input": "你好"
}'3. Claude
bash
curl https://apiok.cc/v1/messages' \
-H 'Authorization: $APIKEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "grok-4.5",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'