Skip to content

OpenRouter API

API keyHTTPSCORSMachine Learning
Open documentation ↗

Overview

Unified API for 300+ LLMs from OpenAI, Anthropic, Meta, Mistral and more, with a free tier

OpenRouter is a machine learning API. Requests are authenticated with an API key. It is served over HTTPS and allows browser requests (CORS).

At a glance

Authentication
API key
HTTPS
Yes
CORS
Yes

Questions

Does the OpenRouter API need an API key?

Yes. The OpenRouter API uses API key authentication; the documentation explains how to get credentials.

Can I call the OpenRouter API from the browser?

Yes. The OpenRouter API sends CORS headers, so a web page can call it directly with fetch().

Does the OpenRouter API support HTTPS?

Yes, the OpenRouter API is served over HTTPS.

What are alternatives to the OpenRouter API?

Other Machine Learning APIs include Dialogflow, OpenAI, Hugging Face, WolframAlpha, Laya Decision Gateway.

Compare alternatives →

Listed from public-apis (MIT).