OpenRouter

Base URL
Card required๐Ÿ“ง Email
Free credits$0 USD (never)
NotesFree models available; $10 topup unlocks Anthropic models
Last verified2026-06-28
Advertisement

Free Models

Model IDContextModalitiesRPMRPD
meta-llama/llama-3.1-70b-instruct:free 131K text โ€” โ€”
mistralai/mistral-7b-instruct:free 33K text โ€” โ€”

Quick Start

Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY",  # get at https://openrouter.ai/workspaces/default/keys
)
response = client.chat.completions.create(
    model="meta-llama/llama-3.1-70b-instruct:free",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
curl
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta-llama/llama-3.1-70b-instruct:free",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Advertisement