mnfst/awesome-free-llm-apis

free-llm-apis

Guide users through obtaining and configuring free API keys for LLM providers.

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/mnfst/awesome-free-llm-apis --skill free-llm-apis

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Free LLM API Setup

Help users pick a free LLM provider and configure their API key. Every provider here has a permanent free tier, no credit card needed.

Provider Selection

Ask the user what matters most, then recommend accordingly:

PriorityBest picks
Fastest inferenceGroq (LPU hardware; ~1,000 RPD on chat models)
Largest model selectionNVIDIA NIM (100+ models), Cloudflare Workers AI (60+), Hugging Face (thousands, small credit)
Strongest proprietary modelsGoogle Gemini, Cohere (non-commercial only)
Free frontier open-weight modelsOpenRouter (:free models), Kilo Code, NVIDIA NIM
European provider / EU hostingOVHcloud AI Endpoints (FR, EU data centers), LLM7.io (UK)
No signup or key requiredOVHcloud AI Endpoints (2 RPM/IP), Kilo Code (200 req/hr/IP), LLM7.io (anonymous tier)
Privacy-sensitive promptsAvoid Gemini free tier outside the EEA, Switzerland and the UK, OpenRouter/Kilo free routes, NVIDIA trial endpoints

Provider categories

<!-- providers:start --> Provider APIs -- run by the companies that train the models:

Inference providers -- third-party platforms hosting open-weight models:

  • AxForge, Cloudflare Workers AI, Gonka Broker, Groq, Kilo Code (no key needed), LLM7.io (no key needed), ModelScope, NVIDIA NIM, OpenRouter, OVHcloud AI Endpoints (no key needed), SiliconFlow
  • See references/inference-providers.md for setup instructions.

<!-- providers:end -->

Workflow

  1. Ask what models, rate limits, or features the user cares about. If they already know which provider they want, skip to step 3.
  2. Match their priorities against the table above. Suggest 1-2 options with a short reason.
  3. Load the right reference file and walk through the setup steps for that provider (API key, code example, env var).
  4. Offer a quick test script or curl command so they can confirm the key works.

Quick Test Template

After setup, use this to verify any provider:

python
from openai import OpenAI

client = OpenAI(api_key="KEY", base_url="BASE_URL")

response = client.chat.completions.create(
    model="MODEL_NAME",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
    max_tokens=50
)
print(response.choices[0].message.content)

Replace KEY, BASEURL, and MODELNAME with values from the provider's setup guide.

Key Notes

  • All endpoints work with the OpenAI SDK unless noted.
  • RPM = requests per minute. RPD = requests per day.
  • Google Gemini's free tier works in the EEA, UK, and Switzerland, but its terms require paid services if you ship an app to users there.
  • Free tiers, model lists, and limits change often. The reference files are generated from data.json; check the provider's own docs before relying on a limit.
  • "Limits undocumented" = the provider doesn't publish rate limits.
  • Don't hardcode API keys. Use environment variables or a secrets manager.