Grok โ
Endpoint: https://mmu.vod-qcloud.com/v1Authentication: VOD ApiToken / Bearer
Grok is a text generation / chat model called through an OpenAI-compatible API, with JSON and SSE streaming responses. It supports the Chat Completions, Responses, and Messages protocols, with both reasoning and non-reasoning versions.
Basic Information โ
| Item | Value |
|---|---|
| Call endpoint | https://mmu.vod-qcloud.com |
| Authentication | VOD Application-issued ApiToken / Bearer |
| Output | Text / Structured response |
| Response mode | JSON / SSE |
Supported Protocols โ
| Spec | Path | Target |
|---|---|---|
| Chat Completions | POST /v1/chat/completions | All models below |
| Responses | POST /v1/responses | All models below |
| Messages | POST /v1/messages | All models below |
The model IDs below use the corresponding spec. Authentication and common fields follow API Reference.
Sampling Options โ
Commonly applies to all models listed in this document.
| Parameter | Setting |
|---|---|
temperature | Configurable |
top_p | Configurable |
temperature specifies the sampling temperature, and top_p specifies the cumulative probability range. Adjust centered on one method.
Per-Version Reasoning Settings โ
| Model ID | Configuration | Disable |
|---|---|---|
gk-4.6 | reasoning_effort | No dedicated disable option |
gk-4.3 | reasoning_effort | No dedicated disable option |
gk-4.1-fast-non-reasoning | Non-reasoning model | Selected by model ID |
gk-4-20-reasoning | reasoning_effort | Selected by model ID |
gk-4-20-non-reasoning | Non-reasoning model | Selected by model ID |
gk-4-1-fast-reasoning | reasoning_effort | Selected by model ID |
Based on Chat Completions. Reasoning content is read from reasoning_content, and the final answer from content. Do not pass a disable option to versions that cannot be disabled.
Request Parameters โ
| Parameter | Required | Type | Description |
|---|---|---|---|
model | Required | String | A model ID from the per-version options table |
messages | Required | Array | Conversation input for Chat Completions / Messages |
input | Required | String / Array | Input for Responses. Used instead of messages |
max_tokens | Optional | Integer | Generation limit for Chat Completions / Messages. Required in Messages |
max_output_tokens | Optional | Integer | Generation limit for Responses |
stream | Optional | Boolean | true: SSE / false: JSON |
Request Examples โ
Chat Completions โ
{
"model": "gk-4.6",
"messages": [
{
"role": "user",
"content": "Reply with exactly OK and nothing else."
}
],
"max_tokens": 2048,
"stream": false,
"reasoning_effort": "low"
}Response โ
{
"id": "01a0de40-a5ff-78b0-ba00-93d96f5698c7",
"object": "chat.completion",
"model": "grok-4.6",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "OK"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0,
"text_tokens": 12
},
"prompt_cached_tokens_details": {
"audio_tokens": 0
},
"completion_tokens": 1,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 114,
"rejected_prediction_tokens": 0
},
"total_tokens": 127
}
}Responses โ
{
"model": "gk-4.6",
"input": "Reply with exactly OK and nothing else.",
"max_output_tokens": 512,
"stream": false
}Response โ
{
"id": "resp_0c703ed2c27d9a19006ab7dc7cd99481949e814740a80465ed",
"object": "response",
"model": "grok-4.6",
"status": "completed",
"output": [
{
"id": "msg_0c703ed2c27d9a19006ab7dc80bf7481948c2eaf253c24e43e",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": ,
"logprobs": ,
"text": "OK"
}
],
"role": "assistant"
}
],
"usage": {
"input_tokens": 8,
"input_tokens_details": {
"cache_write_tokens": 0,
"cached_tokens": 0
},
"output_tokens": 116,
"output_tokens_details": {
"reasoning_tokens": 115
},
"total_tokens": 124
}
}Messages โ
{
"model": "gk-4.6",
"messages": [
{
"role": "user",
"content": "Reply with exactly OK and nothing else."
}
],
"max_tokens": 512,
"stream": false
}Response โ
{
"id": "01a0de33-5952-783e-9e51-bb6ca79ca5b8",
"model": "grok-4.6",
"type": "message",
"role": "assistant",
"content": [
{
"text": "OK",
"type": "text"
}
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 12,
"output_tokens": 1
}
}Special Settings โ
In Chat Completions, use reasoning_effort to specify the reasoning effort. Reasoning tokens are included in the output token usage. In responses that return reasoning content, reasoning_content and the final content are handled separately.