Skip to content
English

Switch theme

// Models · API access

API relays vs official APIs

What relays are, the real risks (with the official terms quoted), and legitimate ways to get cheaper or unified access.

8 platforms with verified pricesofficial terms quotedchecked 2026-10-22

01Four ways to reach a model API

WayWho holds the keyWho sees your dataTerms
Official APIYouThe model vendorFully allowed
Licensed aggregator / cloud platformOpenRouter, Alibaba Model Studio, Volcano Ark, SiliconFlow…You (platform account)Platform + vendorAllowed under the platform’s agreements
Self-hosted gatewayLiteLLM, One API, New API, Portkey…You (your own keys)You + vendorFine for your own use
Unofficial relay / resold keysThe relay operatorRelay + vendorBreaches OpenAI §3.3(g) and Anthropic resale terms

02Risks of unofficial relays

AIMap does not list or link services that resell API keys or shared subscriptions.

03Legitimate aggregators & inference platforms

Platforms whose prices we verify (data from their official pricing pages or API). “Cheapest” = lowest blended text-model price we track there.

PlatformTypeModels trackedCheapest model hereBlended $/1MPrice source
OpenRouterAggregator126 Llama 3.1 8B Instruct0.025 official ↗2026-10-22
SiliconFlowInference platform25 Ling-mini-2.00.131 official ↗2026-10-10
TogetherInference platform16 DeepSeek V4 Flash 07310.175 official ↗2026-10-10
DeepInfraInference platform16 DeepSeek-V4-Flash-07310.09 official ↗2026-10-10
FireworksInference platform9 NVIDIA Nemotron 3.5 Lightning 30B A3B0.087 official ↗2026-10-10
阿里云百炼Inference platform6 MiniMax-M3 (on 百炼)1.1 official ↗2026-10-10
GroqInference platform3 GPT-OSS 20B0.131 official ↗2026-10-10
MistralInference platform1 GLM 5.3 (hosted by Mistral)2.15 official ↗2026-10-10

04Chinese vendors’ official APIs (CNY pricing)

The cheapest official text model per vendor, per 1M tokens.

VendorModelInputOutputSource
Alibaba (Qwen)Qwen3.7-Flash¥0.2¥0.8 official ↗2026-10-10
Zhipu (Z.ai)GLM-4.6V-FlashX¥0.15¥1.5 official ↗2026-10-10
ByteDance (Doubao)Doubao-Seed-2.0-mini¥0.2¥2 official ↗2026-10-10
Tencent (Hunyuan)Hunyuan-A13B¥0.5¥2 official ↗2026-10-10
StepFun (阶跃星辰)Step-3.5-Flash¥0.7¥2.1 official ↗2026-10-10
Baidu (ERNIE)ERNIE 4.5 Turbo 128K¥0.8¥3.2 official ↗2026-10-10
MiniMaxMiniMax-M3.1-Flash¥1¥4 official ↗2026-10-20
DeepSeekDeepSeek V4.1 Flash 1017 (deepseek-flash)¥2¥8 official ↗2026-10-19
Moonshot (Kimi)Kimi K2.6¥6.5¥27 official ↗2026-10-10

05Self-hosted gateways (your own keys)

One OpenAI-compatible endpoint in front of all your providers, with routing, budgets and logs – without handing keys or data to a third party.

litellm The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM] ★ 62k new-api A unified AI model hub for aggregation & distribution. It supports cross-converting various LLMs into OpenAI-compatible, Claude-compatible, or Gemini-compatible formats. A centralized gateway for personal and enterprise model management. ★ 50k one-api LLM API 管理 & 分发系统,支持 OpenAI、Azure、Anthropic Claude、Google Gemini、DeepSeek、字节豆包、ChatGLM、文心一言、讯飞星火、通义千问、360 智脑、腾讯混元等主流模型,统一 API 适配,可用于 key 管理与二次分发。单可执行文件,提供 Docker 镜像,一键部署,开箱即用。LLM API management & key redistribution system, unifying multiple providers under a single API. Single binary, Docker-ready, with an English UI. ★ 37k Portkey-AI/gateway A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API. ★ 13k higress 🤖 AI Gateway | AI Native API Gateway ★ 9.5k bifrost Fastest enterprise AI gateway (50x faster than LiteLLM) with adaptive load balancer, cluster mode, guardrails, 1000+ models support & <100 µs overhead at 5k RPS. ★ 9.0k any-llm Communicate with an LLM provider using a single interface ★ 2.2k Cloudflare AI Gateway Model gateways, routing & usage kong 🦍 The API and AI Gateway ★ 44k apisix The Cloud-Native API Gateway and AI Gateway ★ 17k

FAQ

What is an AI API relay (中转站)?

A third-party server that exposes an OpenAI-compatible endpoint and forwards your requests to upstream models (OpenAI, Claude, Gemini…) using keys or accounts it controls, charging you its own price. Technically it is a proxy; what matters is whose keys it uses and whether the upstream allows resale.

Are API relays reliable / legal?

Reselling keys breaches the upstream terms: OpenAI’s Services Agreement §3.3(g) forbids customers to “buy, sell, or transfer API keys from, to, or with a third party”, and Anthropic’s Commercial Terms forbid customers to “resell the Services except as expressly approved by Anthropic”. Keys can be revoked at any time, and the relay can read and log all your prompts and outputs. Whether it is illegal depends on your jurisdiction – this page does not give legal advice.

Why are relays so cheap?

Common reasons reported by the community include pooled or shared subscription accounts, promotional credits, keys bought in bulk under terms that forbid resale, or silently routing to a cheaper model. You usually cannot verify which one applies – that is the risk.

How do people in China use the OpenAI or Claude API officially?

OpenAI and Anthropic only serve the countries on their official lists (OpenAI: https://platform.openai.com/docs/supported-countries; Anthropic: https://www.anthropic.com/supported-countries), and OpenAI’s agreement (§16.12) forbids access from outside them. Within China, the compliant route is a domestic vendor’s official API (DeepSeek, Qwen, GLM, Kimi, Doubao…) – most offer OpenAI-compatible endpoints – or a licensed cloud platform.

Is OpenRouter a relay?

OpenRouter is a commercial aggregator with its own agreements with model providers, public per-endpoint pricing and its own terms. We track 333 OpenRouter-listed prices for 126 models. Check whether your country and use case are allowed by its terms.

Cheapest LLM APIs → · LLM API price table → · Free LLM APIs → · All AI gateways →

Data updated: Model API prices · HF model metadata(UTC+8)