These providers expose an OpenAI-compatible endpoint (openai_compatible: true), so migrating is usually a one-line change: keep the OpenAI SDK, swap base_url and api_key. Grab each provider’s exact base URL from its linked docs.
31 of 67 tracked providers match.
| Provider | OpenAI base URL | What's free | The catch | Verified |
|---|---|---|---|---|
| Google Gemini API (AI Studio) no cardno phonecommercial OKOpenAI-compat | https://generativelanguage.googleapis.com/v1beta/openai/ | Gemini 2.5 Flash, 2.5 Flash-Lite, 2.5 Pro (limited), embeddings, TTS models | Free-tier prompts/outputs may be used by Google to improve its products outside the UK/CH/EEA/EU. Since the 2026-03-23 terms, only Paid Services may serve API clients to end users in the EEA/CH/UK | 2026-08-02 |
| Groq no cardphonecommercial OKOpenAI-compat | https://api.groq.com/openai/v1 | Open-weight models (Llama, Qwen, GPT-OSS) plus Whisper, no credit card required | Limits apply at the organization level, not per API key. Phone verification required at signup | 2026-08-02 |
| OpenRouter no cardno phonecommercial OKOpenAI-compat | https://openrouter.ai/api/v1 | A rotating set of models with a :free suffix (~14 today; count fluctuates), single API across many providers | ToS (Jul 2026) prohibits reselling API access or building a competing service — platform-wide, not just the free models; per-model terms still apply | 2026-08-02 |
| Cloudflare Workers AI no cardno phonecommercial OKOpenAI-compat | https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1 | 10,000 Neurons/day, all account plans | Resets daily at 00:00 UTC; overage on a Workers Paid plan bills at $0.011/1,000 Neurons. A few models (e.g. Kimi K2.6/K2.7-code, GLM-5.2) now require a Workers Paid plan | 2026-08-02 |
| Cohere no cardno phoneeval onlyOpenAI-compat | see docs | Trial (evaluation) API keys covering chat, embed and rerank | Explicitly for evaluation only — Cohere's terms prohibit production/commercial use on a trial key | 2026-07-30 |
| Cerebras cardcommercial OKOpenAI-compat | https://api.cerebras.ai/v1 | $5 in free credits for new accounts, usable across all public models | A verified payment method is required to activate Playground/API access (no charge until you buy credits). Credits expire 30 days after grant; whether any free access persists past expiry is not stated | 2026-08-02 |
| HuggingFace no cardOpenAI-compat | https://router.huggingface.co/v1 | Free CPU Basic + ZeroGPU for Spaces; Inference Providers has a monthly credit ($0.10/mo on Free plan, $2.00/mo on PRO/Team/Enterprise) | Credits only apply with "Routed by Hugging Face" billing, not with a Custom Provider Key | 2026-07-30 |
| SiliconFlow phoneOpenAI-compat | https://api.siliconflow.com/v1 | Several models permanently free (e.g. Qwen2.5-7B-Instruct and others) at $0 cost, plus a $1 welcome credit for paid models | Signup requires SMS phone verification. Full "real-name authentication" (needed for recharging/billing) requires a mainland China, Hong Kong/Macao, or Taiwan ID document — this may limit full access for users without one, though basic use of free models appears reachable with standard account verification | 2026-07-30 |
| Z.ai (Zhipu AI / GLM) no phonecommercial OKOpenAI-compat | https://api.z.ai/api/paas/v4/ | GLM-4.5-Flash, GLM-4.7-Flash (text), and GLM-4.6V-Flash (vision) are officially listed as $0 cost (input, cached input, and output) on a permanent basis | Terms of Use prohibit using the service to "develop, train, or improve" competing algorithms or models — otherwise general use, including commercial, isn't restricted | 2026-07-30 |
| IBM watsonx.ai (Lite plan) cardOpenAI-compat | see docs | Lite plan: 300,000 tokens/month for foundation model inference, 20 CUH/month for ML tooling, 100 pages/month of document text extraction | Lite plan doesn't support fine-tuning of foundation or custom models; 1-day idle deployment timeout. Never expires or bills while inside quota, but a payment method (with a nominal ~$1 authorization hold) is required at signup | 2026-07-11 |
| OVHcloud AI Endpoints cardOpenAI-compat | https://oai.endpoints.kepler.ai.cloud.ovh.net/v1 | Two Qwen3Guard models (Gen-8B and Gen-0.6B) are currently listed as Free in the catalog; access is available anonymously or with an API key tied to a Public Cloud project | European provider (France), relevant for EU data-sovereignty/GDPR-conscious use. The authenticated tier needs a valid payment method on the project (though "Free" models themselves don't charge); anonymous access needs neither an account nor a card. A separate general $200 Public Cloud trial voucher also exists but is unrelated to this free-model tier | 2026-08-03 |
| Fireworks AI no cardOpenAI-compat | https://api.fireworks.ai/inference/v1 | $1 trial credit | Fireworks uses prepaid credits. After the $1 credit is exhausted, add a payment method and credits (or enable auto top-up) to continue; account limits can rise with spend | 2026-08-03 |
| Baseten OpenAI-compat | https://inference.baseten.co/v1 | New accounts receive free credits; Baseten's current pricing page does not state the amount | Basic is $0/month, pay as you go. Current pricing confirms new-account credits but does not publish an amount or expiration date | 2026-08-03 |
| Nebius AI Studio cardno phonecommercial OKOpenAI-compat | https://api.tokenfactory.nebius.com/v1 | $1 trial credit, valid for 30 days | Product renamed to "Nebius Token Factory"; a bank card is required to set up billing | 2026-07-30 |
| Novita AI no cardeval onlyOpenAI-compat | see docs | $100 Sandbox credits, valid for 90 days | Official signup advertises $100 Sandbox credits valid for 90 days; no credit card required. Novita Terms of Service state that the Site and Marketplace Offerings may not be exploited for any commercial purpose without express prior written permission. | 2026-08-10 |
| Alibaba Cloud (Model Studio) no cardOpenAI-compat | https://dashscope-intl.aliyuncs.com/compatible-mode/v1 | 1,000,000 tokens (example figure, varies by model), international/Singapore region only | Excludes batch processing, context caching, fine-tuning, and dedicated deployment | 2026-07-30 |
| SambaNova Cloud no cardcommercial OKOpenAI-compat | https://api.sambanova.ai/v1 | Rate-limited free tier (applies when no payment method is linked) across all models | Free Tier applies when no payment method is linked to the account; SambaCloud ToS grants a commercial license (no evaluation-only clause). The previously-listed "$5 / 3 months" trial could not be re-confirmed on official pages (2026-07-30). | 2026-07-30 |
| Scaleway Generative APIs OpenAI-compat | https://api.scaleway.ai/v1 | 1,000,000 tokens free + 60 min Whisper transcription; billing starts at token 1,000,001 | European provider (France). Free allowance is a one-time token bucket, not time-limited | 2026-07-30 |
| NVIDIA NIM phoneeval onlyOpenAI-compat | https://integrate.api.nvidia.com/v1 | Trial credit, phone verification required | "Evaluation only, not production" per NVIDIA's own Trial Terms of Service — NVIDIA may discontinue the trial at any time with no continuity obligation | 2026-07-11 |
| Vercel AI Gateway no cardOpenAI-compat | https://ai-gateway.vercel.sh/v1 | Free tier with a monthly free credit covering a subset of models at lower rate limits | Free tier and its monthly-credit behaviour are confirmed in Vercel's own docs; the specific "$5/month" figure circulating in community posts is not stated there. Once you purchase credits, your account moves to the paid tier and the monthly free credit no longer applies. | 2026-07-30 |
| Jina AI no cardno phonecommercial OKOpenAI-compat | https://api.jina.ai/v1 | 10M free tokens (one-time) across all models — embeddings (v3/v4), rerankers, classifier; plus a keyless Reader (r.jina.ai) for basic use | The 10M-token balance is a one-time grant that does not replenish; the keyless Reader is genuinely ongoing. Hosted API is commercial-OK and data is not used for training. No card required. | 2026-07-30 |
| AssemblyAI no cardno phonecommercial OKOpenAI-compat | https://llm-gateway.assemblyai.com/v1 | $50 free credit on signup (no card) — pre-recorded & streaming speech-to-text, Speech Understanding, and an OpenAI-compatible LLM Gateway (25+ models) | One-time credit, not renewing. Catch: the default model differs between free and paid accounts — set speech_models explicitly to avoid cost jumps on upgrade. Only the LLM Gateway is OpenAI-compatible. | 2026-07-30 |
| Clarifai no cardphoneOpenAI-compat | https://api.clarifai.com/v2/ext/openai/v1 | One-time $5 credit across serverless models (GPT-OSS-120B, Claude, Llama), vision, embeddings and image generation | Catch: SMS phone verification is required to claim the $5. Credit is one-time and expires 30 days after grant; a card is required to recharge afterward. Checked ToS (clarifai.com/company/terms, effective 2025-10-01) and billing docs (docs.clarifai.com/control/account-billing/) for commercial/production-use language. No clause restricts the $5 trial credit / Pay-As-You-Go tier to evaluation-only. The 'evaluation purposes only, not for production' language in §7.3 applies specifically to Beta Releases, not this plan. No explicit statement either way, so left null per contribution guidelines. | 2026-08-11 |
| Arli AI OpenAI-compat | https://api.arliai.com/v1 | Free plan ($0): access to all text LLMs (Gemma, Qwen, etc.), capped at ~5 requests per 2-day window, 12K context, 1 request at a time | Free tier is for testing only — very restrictive. Provider advertises zero-log / no data retention. Card requirement for the free tier is not stated on the pricing page. | 2026-07-30 |
| Ollama Cloud no cardno phonecommercial OKOpenAI-compat | https://ollama.com/v1 | $0 Free plan: access to cloud-hosted open models (Qwen, GPT-OSS, DeepSeek, etc.) via API | First-party — Ollama hosts the cloud models. Requires an ollama.com account + API key (`ollama signin`); the free plan is for light usage, Pro ($20/mo) raises limits. No card required. | 2026-07-30 |
| ModelScope (API-Inference) no cardeval onlyOpenAI-compat | https://api-inference.modelscope.cn/v1 | ~2,000 free API calls/day across open-weight models (Qwen3, DeepSeek, GLM, Llama, etc.) via API-Inference | Alibaba's model hub — a different product from Alibaba Model Studio. Requires a ModelScope account bound to an Alibaba Cloud account with real-name (ID) verification — a practical barrier for non-China users. Explicitly non-commercial ("for developers to experience"). No card. | 2026-07-30 |
| Moondream Cloud OpenAI-compat | https://api.moondream.ai/v1 | $5/month usage credits in every workspace (Free plan) for the Moondream vision model — caption, query (VQA), detect, point | Recurring $5/month credit; card requirement not stated on the pricing page; commercial terms not specified. OpenAI-compatible endpoint. | 2026-07-30 |
| Sarvam AI OpenAI-compat | https://api.sarvam.ai/v1 | ₹100 in free credits on signup, usable across all APIs including the Sarvam-M chat/LLM API and speech (STT/TTS) | One-time signup credit shared across all APIs; card/phone requirement not stated on the docs. India-focused provider (pricing in INR), strong Indic-language models. | 2026-07-30 |
| Tencent Hunyuan OpenAI-compat | https://api.hunyuan.cloud.tencent.com/v1 | 1,000,000 free tokens for Hunyuan text LLMs (hunyuan-a13b, turbos, translation & vision models), plus a separate 1,000,000-token allotment for hunyuan-embedding | Free resource package valid 1 year from activation; unused tokens expire. Tencent Cloud generally requires mainland-China real-name ID verification to activate — a practical barrier for non-China users. Commercial-use terms not stated on the free-quota page. | 2026-07-30 |
| Poolside OpenAI-compat | https://inference.poolside.ai/v1 | Laguna XS 2.1 (33B) and Laguna S 2.1 (118B) are free in Preview via a self-serve developer API key | Coding-focused models. Free access is Preview-stage and may change at general availability. Self-serve: create a free API key at platform.poolside.ai. OpenRouter is offered only as an alternative route. | 2026-07-31 |
| Upstage no cardcommercial OKOpenAI-compat | https://api.upstage.ai/v1 | $10 in free credit on signup (no card) — Solar LLM (chat + embeddings) plus Document Parse / OCR / information extraction | No credit card required to receive the $10 credit; Studio agents also include 10 free runs. A separate institutional grant (up to 1 year of free Solar + Document Parse) exists for eligible organizations only. Credit validity period not stated. | 2026-07-31 |
Quickstart — reuse the OpenAI SDK
Point base_url at the provider (URLs in the table above) and use its free key. Example: Groq.
from openai import OpenAI
client = OpenAI(base_url="https://api.groq.com/openai/v1", api_key="<YOUR_FREE_API_KEY>")
resp = client.chat.completions.create(
model="llama-3.1-8b-instant",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)curl https://api.groq.com/openai/v1/chat/completions \
-H "Authorization: Bearer $YOUR_FREE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "llama-3.1-8b-instant", "messages": [{"role": "user", "content": "Hello!"}]}'