Choose a free AI model
Open the model directory, compare context length and modalities, then copy the exact model ID. Use an exact ID when you need predictable behavior.
Browse free modelsGuide
Pick a model, create an API key, paste the base URL and model ID into your app, then run a small test request.
Fact checked July 15, 2026
Most setup problems come from one missing value: the wrong model ID, the wrong base URL, or an API key pasted into the wrong place.
Open the model directory, compare context length and modalities, then copy the exact model ID. Use an exact ID when you need predictable behavior.
Browse free modelsIf you do not have an OpenRouter account yet, create one first. Then sign in, create an API key, and keep it server-side or in your local environment.
Open API keysPaste the base URL, API key, and model ID into the place where your app or SDK asks for OpenAI-compatible API settings.
Send a short prompt first. If the request works, then increase tokens, add real prompts, and handle quota or rate-limit errors.
These are the three values most apps, SDKs, and workflow tools need.
https://openrouter.ai/api/v1Use this where a tool asks for an OpenAI-compatible base URL.
OPENROUTER_API_KEYStore the key as an environment variable or server-side secret.
openrouter/freeReplace this with the exact free model ID you choose from the directory.
Use a specific free model ID when you care which model answers. Use the free router only when any compatible free model is acceptable.
publisher/model:freeBest for coding, testing, comparisons, and any workflow where model identity matters.
openrouter/freeBest for quick experiments where the upstream service can choose a currently available free model for you.
Run a short request before wiring this into a real workflow.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openrouter/free",
"messages": [
{"role": "user", "content": "Reply with exactly: setup-ok"}
],
"max_tokens": 16
}'Most first-run failures are configuration errors, not model problems.