The key to OpenRouter is understanding three things first: it is not a model, but a model gateway; free models cost nothing but have a request limit; paid models are billed at each provider's list price per token, and OpenRouter only takes a 5.5% fee when you top up credits. Get these three points straight before you start, and you will avoid detours around keys and billing.
Get a key and send your first request in three steps
- Sign up, open the Keys page and create an API key. Keys start with sk-or-v1-, are shown only once, so copy and save yours immediately.
- Point your code at OpenRouter's API endpoint and write the model name as vendor/model, for example anthropic/claude-sonnet-4.6.
- Try openrouter/free first: this special model name automatically picks a free model, so you can check whether your key works without spending anything.
How far do the free models go?
Free model names end in :free, their tokens cost $0, and you can call them without topping up. The request limit depends on how much you have topped up in total: under $10 it is 50 requests a day and 20 a minute; once you reach $10 the daily limit rises to 1,000. The provider itself says free models are usually not suitable for production: speed and stability are not guaranteed, but they are ideal for practice and small tools.
Three easy mistakes
No spending limit on the key: the provider recommends setting a limit on every key, so a leak or a runaway program cannot drain your balance. Ignoring the privacy settings: for sensitive data, turn off the training opt-in and choose your data-retention setting before you send anything. Thinking top-up means buying models: topping up is only prepaying; you are actually billed per request by token count, and the terms reserve the right to let unused credits expire one year after purchase.
Q: Can I use an OpenRouter key directly in tools like Claude Code?
A: Yes, as long as the tool lets you change the request address and model name. Point the address at OpenRouter's endpoint, enter your key, and write the model name the way OpenRouter spells it.