xAI Grok API gateway details

xAI's official Grok API; ideal as a candidate to test apps needing Grok's text, vision, and real-time information.

Small amounts
Trial first

Overview

xAI's official Grok API; ideal as a candidate to test apps needing Grok's text, vision, and real-time information.

Best for: For developers wanting to include Grok in multi-model evaluations or needing xAI's native capabilities.

Availability and latency

Current status
Test yourself
Latency reference
Not tested
/models check
See the platform docs
Last verified
Not verified yet
Status notes
Test plain responses, streaming, error codes, and rate limits yourself before launch.

Supported models

Grok

Pricing and multipliers

Pricing mode
Official list price, pay-as-you-go; prices, rate limits, and available models per the xAI docs.
Price tags
Standard price, Pay-as-you-go
Free quota
Refer to the official console.

Payment methods

Credit card

How to call the API

Usually you create an API key in the platform console, then replace the SDK's baseURL, model name, and auth details per the docs. Test streaming, function calling, error codes, and rate limits before launch.

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.AI_GATEWAY_API_KEY,
  baseURL: "see the platform docs"
});

const response = await client.chat.completions.create({
  model: "Grok",
  messages: [{ role: "user", content: "Test one call through an AI gateway." }]
});

Pros

  • Supported models: Grok.
  • Capabilities: OpenAI-compatible, Streaming, Image generation.
  • Documentation completeness: High; editorial stability score 4.3 / 5.

Cons

  • Models, region, and API policy change fast; recheck rate limits, price, and data terms before launch.
  • Third-party relay pricing, models, and availability can change, so re-check them periodically.

Alternatives

AggregatorPrepaid

A third-party multi-model API relay built on New API, aimed mainly at Chinese-speaking developers. Codex and OpenAI-compatible clients use https://api.linktoagi.com/v1 (Codex uses the Responses protocol), while Claude Code and Gemini CLI use https://api.linktoagi.com without /v1. The public model catalog lists GPT / Codex, Claude, Gemini, Grok, DeepSeek, and GLM models plus gpt-image image models, with available models determined by the key's group. The docs include setup guides for Codex, Claude Code, Gemini CLI, CC Switch, and Cherry Studio.

Models
OpenAI, Claude, Gemini, Grok, DeepSeek, GLM
Payment
Alipay, WeChat
Price
Charged per token from a CNY balance, with the actual cost equal to the model's base billing times the key group's multiplier; image models are billed per request. On 2026-11-05 the public pricing API showed Codex Sale / Plus / Pro group multipliers of 0.10 / 0.15 / 0.25, Grok 0.2, DeepSeek 0.3, GLM 0.4, Gemini 0.6, and Claude groups ranging from 0.4 to 2. When rechecked on 2026-11-10, the API showed 0.08 for the Codex Sale group, while the operator's promotion post and message still state 0.10; check the model hub before paying. Group multipliers are the site's own billing coefficients, not USD-per-million-token prices or official discounts; check the model hub for unit prices. The docs list Alipay and WeChat Pay; the submitter says the wallet accepts custom top-ups from CNY 1.
Aggregator

A third-party multi-model API relay where one key works across three protocols: OpenAI-compatible endpoints (Chat Completions and Responses at https://tokenbuddy.cc/v1), Anthropic Messages, and the native Gemini API (at https://tokenbuddy.cc). Its public model marketplace lists chat models including GPT, Claude, Gemini, Grok, DeepSeek, GLM, and Kimi, plus gpt-image image generation and Seedance video models; the docs cover setup for clients such as Codex, Claude Code, Gemini CLI, OpenCode, and WorkBuddy. Group names and model attributions are platform-reported and do not establish official authorization.

Models
OpenAI, Claude, Gemini, Grok, DeepSeek, GLM and more
Payment
Price
Billed per token; the model marketplace lists prices in CNY per 1M tokens, and video models are billed per request. GPT and Claude models come in an economy group and a -full stable / full-strength group at different prices. For example, on 2026-10-28 the page showed gpt-5.6-sol (economy) at CNY 0.693 input / CNY 4.158 output, claude-sonnet-5 (economy) at CNY 1 / CNY 5, and claude-sonnet-5-full (full-strength group) at CNY 4 / CNY 20. Prices change; check the marketplace. Top-up codes are redeemed for credit on the website's Redeem page. When the service was listed on 2026-10-28, a separate public top-up code shop at shop.tokenbuddy.cc offered only "Epay - Alipay" as a payment method and sold a $100 code for CNY 100; on the 2026-11-04 recheck that shop redirected to a sign-in-gated purchase page on the main site, so the current payment methods and prices could not be rechecked.
Aggregator

Flow7's prepaid multi-model API gateway provides Responses, Chat Completions, and Anthropic Messages compatibility, request spend limits, locked price versions, and completed-response charge receipts. Public model-family labels do not establish verified upstream supplier or model-weight provenance.

Models
OpenAI, Claude, Gemini, DeepSeek, Grok, Moonshot
Payment
Credit card
Price
Pay-as-you-go from a prepaid USD wallet. First funding starts at $20; later reloads start at $50, with applicable tax potentially added. The maximum estimated cost is reserved before dispatch, then settled with usage, the locked price version, final charge, and a receipt. Current model and policy-selector prices come from the public catalog.
Aggregator

A multi-model routing platform for developers; switch models by changing the base_url with the OpenAI SDK, ideal for teams comparing the quality and price of many models at once.

Models
OpenAI, Claude, Gemini, DeepSeek, Grok, Qwen and more
Payment
Credit card, Stripe, Free trial
Price
Billed per model and provider; some models offer free routing or free quota.

FAQ

Is xAI Grok API compatible with the OpenAI API?
This entry is marked as supporting the OpenAI-compatible format, but the exact base_url, model names, and parameters still follow the official docs.
Is xAI Grok API ready for production?
Run a small-traffic load test, rate-limit test, and error-code test first, and confirm the billing rules; keep a backup provider for important workloads.

Risk

Risk notice

This site only organizes information about AI API relay services; it makes no guarantee about third-party platforms' stability, price, data security, or availability. Judge the risk yourself before use, and avoid uploading sensitive data, personal privacy, trade secrets, or core API keys to unknown platforms.