APIrove

Home / Models / Grok / Grok 4.5

MODEL · GROK · TEXT

Grok 4.5 API

Sample outputs

我每天通勤 40 分钟,想利用这段时间学英语。请给一个可执行的一周安排,用纯文本,不用 Markdown,不超过 120 字。

grok-4.5

周一:听力播客。周二:单词记忆。周三:新闻听力。周四:跟读练习。周五:口语录音。周六:内容复习。周日:视频观看。每天40分钟。

Write a friendly two-sentence reminder email asking a colleague to review my pull request by Friday. Plain text, no Markdown.

grok-4.5

Hi [Colleague's Name], Just a friendly reminder to please review my pull request by Friday when you have a moment. Thanks so much for your help with this!

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

On sale

Question grouping

Group reader questions by the answer they need. Similar wording can hide different actions, while completely different phrases can describe the same task.

Model IDgrok-4.5

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.15$0.30Save 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.30$0.60Save 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

  • Keep the original question references after merging duplicates.
  • Include a counterexample where similar wording calls for different answers.
  • Keep candidate categories for ambiguous questions so an editor can decide.
Six pale strips of different lengths on a graphite grey gradient, with a disc at upper right

Use cases

  • Merge duplicate FAQs
  • Organize tutorial queries
  • Separate how-to and troubleshooting questions

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.5",
  "messages": [
    {
      "role": "user",
      "content": "A: How do I save a draft? B: How can I keep unfinished writing? C: How do I delete a draft? Group by answer and preserve the letters."
    }
  ]
}'

FAQ

Is a shared keyword enough to merge questions?

Write the answer each question needs. A request to save and a request to delete belong in different entries.

How do I compare grouping with Grok 4.6?

Use editor-labeled duplicates and near misses. Record incorrect merges as well as unnecessary splits.

Which settings does a chat client need?

Set the base URL to https://apirove.com/v1 and the model to grok-4.5. 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