Grok 4.6
xAI's Grok 4.6: code, document analysis and multi-step tasks, the previous Grok generation. You can attach pictures.
~$0.0023 average request
Fewer words and photos cost less
You pay for the actual tokens counted by the model: your question, instruction and pictures are input, the answer with its reasoning is output. A reserve for your question and up to 16384 answer tokens is held at start; after the answer only the actual amount is charged and the rest returns to your balance at once.
For developers →How to get a better result
Instead of "write a text" say "write a Telegram post about walking, 3 paragraphs".
"Explain how a neural network works to a schoolchild".
Say what to change and press "Create" again.
Pass this model in the request grok-4.6
1. Create a task POST /api/v1/jobs/createTask
curl -X POST https://mixmedia.tech/api/v1/jobs/createTask \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-123" \
-d '{
"model": "grok-4.6",
"callBackUrl": "https://your-app.example/callback",
"input": {
"prompt": "Explain what this code does and suggest how to simplify it",
"input_urls": [],
"reasoning": "medium",
"response_format": "text"
}
}'import time, requests
API = "https://mixmedia.tech/api/v1"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
task = requests.post(f"{API}/jobs/createTask", headers=HEADERS, json={
"model": "grok-4.6",
"callBackUrl": "https://your-app.example/callback",
"input": {
"prompt": "Explain what this code does and suggest how to simplify it",
"input_urls": [],
"reasoning": "medium",
"response_format": "text"
}
}).json()
task_id = task["data"]["taskId"]
while True:
info = requests.get(f"{API}/jobs/recordInfo", headers=HEADERS, params={"taskId": task_id}).json()["data"]
if info["state"] in ("success", "fail"):
break
time.sleep(4)
print(info["state"], info.get("resultJson") or info.get("failMsg"))const API = "https://mixmedia.tech/api/v1";
const headers = { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
const { data } = await fetch(`${API}/jobs/createTask`, {
method: "POST", headers,
body: JSON.stringify({
"model": "grok-4.6",
"callBackUrl": "https://your-app.example/callback",
"input": {
"prompt": "Explain what this code does and suggest how to simplify it",
"input_urls": [],
"reasoning": "medium",
"response_format": "text"
}
}),
}).then((r) => r.json());
let info;
do {
await new Promise((r) => setTimeout(r, 4000));
info = (await fetch(`${API}/jobs/recordInfo?taskId=${data.taskId}`, { headers }).then((r) => r.json())).data;
} while (!["success", "fail"].includes(info.state));
console.log(info.state, info.resultJson ?? info.failMsg);Response: data.taskId. callBackUrl and Idempotency-Key are optional.
2. Status and result GET /api/v1/jobs/recordInfo
curl "https://mixmedia.tech/api/v1/jobs/recordInfo?taskId=TASK_ID" \
-H "Authorization: Bearer YOUR_API_KEY"
data.state: waiting, queuing, generating, success, fail. On success data.resultJson is a JSON string with resultUrls.
3. Upload a file POST /api/v1/files/upload
curl -X POST https://mixmedia.tech/api/v1/files/upload \
-H "Authorization: Bearer YOUR_API_KEY" -F "file=@photo.jpg"
The response has data.url. Pass that URL in the file field. Any public https URL works too.
About the model
Grok 4.6 is an xAI model (August 2026 release): programming, reading documents, analysis and long multi-step tasks. It thinks before it answers. You pay for the actual tokens (reasoning counts as answer tokens). Up to 200,000 characters per prompt and up to 10 pictures.
Similar models
All models →
Gemini Flash
Google's newest fast Gemini Flash model: instant answers and picture analysis at a low price.

Grok
xAI's flagship Grok 4.7: code, document analysis and hard multi-step tasks. You can attach pictures.
HeyGen Decision 1 Turbo
Classify and score content using named questions and return JSON answers.