APIrove

Home / Models / Grok / Grok 4.6

MODEL · GROK · TEXT

Grok 4.6 API

Sample outputs

把这句话改得更礼貌、简洁,适合发给客户:“你们的资料还没交,项目没法往下做。”请给出两个版本,用纯文本,不用 Markdown,总共不超过 100 字。

grok-4.6

版本1:您好,资料尚未提交,项目无法继续,请尽快提供,谢谢。 版本2:尊敬的客户,尚未收到资料,项目暂无法推进,请尽快提交。

Explain the difference between a list and a tuple in Python in three plain-text sentences, with one short example each. No Markdown, under 80 words.

grok-4.6

Lists in Python are mutable so they can be changed after creation for example mylist = [1, 2, 3] can have items added. Tuples are immutable so they cannot be altered once made such as mytuple = (1, 2, 3). The main difference is mutability which lets lists change while tuples stay fixed for safer constant data.

Sign in to get a trial allowance

Send your first request

Replace YOUR_API_KEY with your API key.

curl https://apirove.com/v1/chat/completions \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model": "grok-4.6", "messages": [{"role": "user", "content": "Describe a paper boat on a lake."}]}'
python -m pip install openai
from openai import OpenAI

client = OpenAI(base_url="https://apirove.com/v1", api_key="YOUR_API_KEY")
print(client.chat.completions.create(
    model="grok-4.6",
    messages=[{"role": "user", "content": "Describe a paper boat on a lake."}],
))
Node.js · .mjs
const response = await fetch("https://apirove.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({"model": "grok-4.6", "messages": [{"role": "user", "content": "Describe a paper boat on a lake."}]})
});
console.log(response.status, await response.json());

On sale

Interview excerpts

Select interview excerpts with their speaker and context attached. Verify every quote against the transcript before it reaches the published piece.

Model IDgrok-4.6

Verified in production on 2026-11-12 (Beijing time)

Endpoints

  • Base URL: https://apirove.com/v1
  • POST /v1/chat/completions
  • Auth: Authorization: Bearer YOUR_API_KEY

Public price

Billing itemUSD rateOfficial priceSavingsUnit
Input · ≤ 199,999 tokens$1$2Save 50%1M tokens
Output · ≤ 199,999 tokens$3$6Save 50%1M tokens
Cache read · ≤ 199,999 tokens$0.25$0.50Save 50%1M tokens
Input · > 199,999 tokens$2$4Save 50%1M tokens
Output · > 199,999 tokens$6$12Save 50%1M tokens
Cache read · > 199,999 tokens$0.50$1Save 50%1M tokens

Public USD retail rates. The server renders the public price list of 2026-11-24; the page refreshes them on load. Actual charges are on the Usage page.

Official prices: xAI pricing page (checked 2026-11-24). Savings = 1 − our rate ÷ official price, rounded down to a whole percent.

Highlights

  • Number transcript passages so editors can verify quote boundaries.
  • Keep summaries outside quotation marks.
  • Retain qualifiers such as possibly and only when excerpting an answer.
Six pale strips of different lengths on a graphite grey gradient, with a disc at upper right

Use cases

  • Select interview quotes
  • Index lecture questions
  • Verify profile excerpts

How to call it

Replace YOUR_API_KEY and send this request.

bash
APIROVE_API_KEY='YOUR_API_KEY'

curl -X POST https://apirove.com/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $APIROVE_API_KEY" \
  -d '{
  "model": "grok-4.6",
  "messages": [
    {
      "role": "user",
      "content": "Speaker A: I only walk to work on weekends. Extract the quote, preserving the speaker and the time qualifier."
    }
  ]
}'

FAQ

Can two distant sentences be combined?

Keep both passage references. If an editor combines them, mark the omission and verify that the original meaning survives.

How should I compare nearby Grok versions?

Search the transcript for each exact quote, then check speaker attribution and qualifiers separately.

Which settings does a chat client need?

Set the base URL to https://apirove.com/v1 and the model to grok-4.6. Put the prompt in a user message inside the messages array and use Chat Completions.

What should I check if the example fails?

Check POST /v1/chat/completions and Bearer authentication, then verify that messages is an array and each message has role and content.

Where can I check current rates for this model?

Find the exact model ID in the public pricing table. Read the input, output and any listed cache rates with the unit shown for each.

Try the same sample with grok-4.5. The related entries show the request format for each model.

Get an API key See pricing