APIrove

Home / Models / Grok / Grok 4.7

MODEL · GROK · TEXT

Grok 4.7 API

Sample outputs

用三条要点说明:给团队写周报时,怎样让领导一眼看到重点?请用纯文本回答,不用 Markdown,总共不超过 120 字。

grok-4.7

一、结论前置,开篇用一两句话写明本周核心成果和关键数据。二、结构清晰,按成果、进展、风险、计划分段,每段短句。三、重点突出,将需决策事项和异常单独列出并放在醒目位置。

Give three short tips for writing a clear bug report that a developer can act on quickly. Plain text, no Markdown, under 80 words.

grok-4.7

Describe the expected result and what actually happened. Give exact steps that reliably reproduce the bug. Include the version, environment, and any error messages or logs.

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.7", "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.7",
    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.7", "messages": [{"role": "user", "content": "Describe a paper boat on a lake."}]})
});
console.log(response.status, await response.json());

On sale

Correction notices

Draft a correction from an editor-confirmed before-and-after pair. Keep the affected passage visible so readers can see exactly what changed.

Model IDgrok-4.7

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

  • Label the old and corrected text separately in the prompt.
  • Keep the section name so readers can locate the correction.
  • Limit the notice to confirmed changes and leave an unknown cause open.
Six pale strips of different lengths on a graphite grey gradient, with a disc at upper right

Use cases

  • Draft bulletin corrections
  • Correct a caption
  • Log a tutorial amendment

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.7",
  "messages": [
    {
      "role": "user",
      "content": "The Hours section said Tuesday. The editor confirmed Wednesday. Write a one-sentence correction naming the section and both days."
    }
  ]
}'

FAQ

Must the notice explain why the error happened?

When only the corrected fact is available, state the change and its location. Have the editor verify any explanation separately.

How should I compare a draft with Grok 4.6?

Use a one-word correction. Check both versions for the old value, new value and location, then look for unverified consequences.

Which settings does a chat client need?

Set the base URL to https://apirove.com/v1 and the model to grok-4.7. 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.6. The related entries show the request format for each model.

Get an API key See pricing