Text model API

Grok 4.5 API

x-ai/grok-4.5 is xAI's most advanced large language model, purpose-built for coding, agentic workflows, and professional knowledge work. Optimized for intelligent reasoning, software engineering, and autonomous task execution, Grok 4.5 delivers fast, high-quality responses while efficiently handling complex, multi-step workflows. It is designed to assist developers, researchers, analysts, and businesses with challenging technical and productivity tasks. Built with large-scale reinforcement learning and extensive training across science, engineering, mathematics, and real-world coding datasets

Model id
grok-45
Takes
Text (required)
Makes
Text
Endpoint
POST /api/v1/chat/completions
Made by
xAI
Mode
Synchronous

Call Grok 4.5

Base URL https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.

Model grok-45

POST /api/v1/chat/completions

curl https://payload.rentprompts.com/api/v1/chat/completions \
  -H "Authorization: Bearer rp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-45",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about APIs."
    }
  ],
  "max_tokens": 256
}'

Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →

What a typical call costs

Worked out from Grok 4.5's published price (0.4 J in · 0.8 J out / 1K tokens). You pay only for successful results, from your Joule balance.
  • 1,000 input + 500 output tokens0.8 Joules
  • 10,000 input + 2,000 output tokens5.6 Joules

Send requests to POST /api/v1/chat/completions. Grok 4.5 answers synchronously: the result comes back in the response to the same request. Token counts come from the model's own usage report, so a real call may use more or fewer tokens than this example.

Settings

Optional parameters this model accepts (pass them in settings on /v1/run, or as top-level fields where OpenAI defines them).

This model has no extra settings. Send the standard fields shown in the example.

Grok 4.5 API — Pricing & Code Examples | RentPrompts