ChatxAI
Grok 4.7
xAI’s Grok 4.7: a reasoning model for code and agentic work, with function tools.
- Model ID
xai/grok-4.7- Endpoint
POST /v1/chat/completions
Price
| per 1M tokens | Minu | Official price | vs official price |
|---|---|---|---|
| Input tokens | $0.66 | $2 | 67% less |
| Cached input tokens | $0.16 | $0.50 | 68% less |
| Output tokens | $2 | $6 | 66% less |
Chat is billed per token, for input and output, after each response.
The official price is the list price the vendor of the model publishes for the same model and settings, as recorded in our catalog. It can change; check the vendor's own pricing page for the current figure.
Request example
The official OpenAI SDKs work as they are: set baseURL to https://api.minu.ai/v1 and use your Minu key.
curl https://api.minu.ai/v1/chat/completions \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/grok-4.7",
"messages": [
{
"role": "user",
"content": "Write a haiku about queues."
}
]
}'import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const completion = await client.chat.completions.create({
model: 'xai/grok-4.7',
messages: [
{
role: 'user',
content: 'Write a haiku about queues.',
},
],
});
console.log(completion.choices[0].message.content);import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
completion = client.chat.completions.create(
model="xai/grok-4.7",
messages=[
{
"role": "user",
"content": "Write a haiku about queues.",
},
],
)
print(completion.choices[0].message.content)Input parameters
Send the standard OpenAI chat completions body: model, messages and the usual options.