OpenAI-compatible API for frontier open models
DeepSeek V4.1 · GLM 5.3 · Qwen 3.8
Up to 60% off upstream pricing · VietQR · prepaid
No credit card · billed per real token · works with the OpenAI SDK unchanged
curl https://api.clfaigateway.dev/v1/chat/completions \ -H "Authorization: Bearer sk-gw-..." \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.3", "messages": [{"role": "user", "content": "Hello!"}], "stream": true }'Models & pricing
Prices in USD per 1M tokens. Upstream model IDs are public — you know exactly what runs.
| Model | Capabilities | Context | Input | Cached input | Output |
|---|---|---|---|---|---|
| glm-5.360% off@cf/zai-org/glm-5.3 | toolsreasoningjson | 1M | |||
| deepseek-v4.1-flash60% off@cf/deepseek-ai/deepseek-v4.1-flash-1017 | toolsvisionreasoningfast | 1M | |||
| qwen3.8-27b60% off@cf/qwen/qwen3.8-27b | toolsreasoningvision | 262K | |||
| glm-4.7-flash60% off@cf/zai-org/glm-4.7-flash | toolsreasoningfast | 131K | — |
Full cache hits are billed at 10% of the normal price. Prices as of 2026-11-23 — dashboard shows live rates.
HTTP/2 200content-type: text/event-streamx-gw-provider: cloudflare-workers-aix-gw-model: glm-5.3x-gw-cache: missx-ratelimit-limit: 60Response headers from a real request, content omitted.
You know exactly what you buy
CLF AI Gateway runs on Cloudflare Workers AI — and says so on the tin. Every model's upstream ID is public, and every response tells you which model actually ran.
- Upstream IDs public: every model page shows its @cf/… identifier
- Every response carries x-gw-provider and x-gw-model headers
- Performance numbers are published with their measurement conditions
- System status is public — no login required
Up and running in three steps
Create an account
Sign up and get your sk-gw-… API key. No credit card, about 30 seconds.
sk-gw-****************Top up credits
VietQR bank transfer auto-confirms in ~15 s. International cards work too.
topup.confirmed · ~15 sPoint your SDK at us
Change base_url, keep your OpenAI SDK. Streaming, tools and JSON mode included.
base_url = "https://api.clfaigateway.dev/v1"What you get
VN-first payments
Top up by VietQR bank transfer, auto-confirmed in ~15 s, or by international card via Dodo Payments.
Frequently asked questions
Open-weight frontier families: DeepSeek (DeepSeek), GLM (Z.ai) and Qwen (Alibaba). DeepSeek V4.1 Flash and GLM 5.3 bring 1M-token context windows, GLM 5.3 is the flagship for coding and agentic tool use, and DeepSeek V4.1 Flash and Qwen 3.8 accept image input; all models in the catalog support tool calls and streaming.
See all models →You can — the model IDs are public. The gateway adds prepaid USD billing, VietQR top-ups, per-request cost logs, automatic caching discounts and one OpenAI-compatible endpoint, at 13.6 ms p95 measured overhead.
You top up prepaid credits; each request deducts its exact token cost at the model's current price. At zero balance new requests fail fast with a clear error — no subscriptions, no surprise invoices.
Billing docs →Tokens already generated and delivered are charged. A request that failed before producing any output costs $0 — that is the zero-completion insurance.
Billing docs →No. Logs are metadata-only: token counts, cost, latency, model. Prompt and response content is processed in memory and discarded — the privacy policy is written to match.
Privacy policy →Each organization gets requests-per-minute, tokens-per-minute and concurrency limits, and every response reports them in x-ratelimit-* headers. Need more headroom? Email us.
Used credits are not refundable. Unused credits can be refunded case-by-case within 14 days of purchase, and billing errors on our side are always made whole.
Terms →VietQR bank transfer, auto-confirmed in about 15 seconds, or international cards through Dodo Payments as Merchant of Record. Purchased credits don't expire.