Product
Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing
Developers

GET STARTED

API DirectoryBrowse 10,000+ APIs Ready For AI Agent IntegrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI Readiness using our scorecardArazzo UIVisualize Arazzo Workflows As Interactive DocumentationArazzo EditorBuild And Edit Multi-Step API Workflows Visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
Resources
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
Resources
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
Switch to light modeSwitch to dark mode
APIs / AI/ML / OpenRouter API
OpenRouter API logo

OpenRouter API

Agent-ready OpenAPI document · curated by JenticAI/MLLanguage Modelsbearer36 EndpointsREST

Know of an official OpenAPI document? Contribute it →

For Agents

Send chat, responses, messages, and embedding requests to a unified OpenAI-compatible API that routes across many language model providers.

Use for: Generate a chat completion using a specific model on OpenRouter, Send an Anthropic-style messages request through OpenRouter, Create text embeddings for a list of documents, List the embedding models I can call

Not supported: Does not handle image generation, speech synthesis, or fine-tuning workflows in this surface - use for chat, responses, messages, and embeddings routing only.

Jentic publishes the only available OpenAPI specification for OpenRouter API, keeping it validated and agent-ready. OpenRouter exposes an OpenAI-compatible inference surface that fans out to many language model providers behind a single bearer-token API, including chat completions, the responses API, the messages format, and embeddings. The 36-endpoint surface also covers credits, activity, and account management so applications can route, meter, and observe LLM traffic without negotiating contracts with each underlying provider.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the OpenRouter API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the OpenRouter API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fopenrouter.ai%2Fopenrouter" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fopenrouter.ai%2Fopenrouter" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with OpenRouter API.

Generate chat completions across providers via the OpenAI-compatible /chat/completions endpoint

Use the /responses endpoint for stateful, structured agent loops

Send Anthropic-format /messages requests through the same gateway

Create text and code embeddings via /embeddings with selectable models

List available embedding models with /embeddings/models

Inspect remaining account credits via /credits and top up via /credits/coinbase

Pull request-level activity history for cost and usage reporting

Use Cases

Patterns agents use OpenRouter API for, with concrete tasks.

★ Provider-agnostic chat completions

An application that already speaks the OpenAI Chat API can switch to OpenRouter by changing the base URL and key, then specify any supported model - Anthropic, Mistral, Llama, Gemini, and so on - by name. This avoids vendor lock-in and lets the team A/B different models for cost and quality without rewriting client code.

POST to /chat/completions with model='anthropic/claude-3.5-sonnet' and a messages array, then read choices[0].message.content.

Embeddings for retrieval pipelines

A retrieval pipeline calls /embeddings to convert documents into vectors, choosing among models listed by /embeddings/models. Keeping embeddings on OpenRouter lets the team swap to a cheaper model later without touching the storage layer, and keeps billing in one place.

Call GET /embeddings/models to pick a model, then POST /embeddings with input=['doc1','doc2'] and model=that_id and store the returned vectors.

Cost observability and credit top-up

Operations teams use the /credits and /activity endpoints to monitor spend per model and top up via /credits/coinbase before traffic spikes exhaust the balance. This makes spend predictable across many underlying providers, reading from one consolidated ledger instead of multiple vendor invoices.

Call /credits to read the balance, then list /activity for the last 7 days and roll up total tokens by model.

Agent-driven multi-model routing through Jentic

An AI agent that needs different models for different sub-tasks (cheap classification on one model, careful reasoning on another) calls OpenRouter via Jentic. Jentic isolates the bearer key and exposes the chat, responses, messages, and embeddings operations as discoverable tools so the agent can pick the right call without leaking credentials.

Search Jentic for 'send a chat completion via OpenRouter', load /chat/completions, and execute it specifying a different model per task within the same agent run.

Key Endpoints

36 endpoints — jentic publishes the only available openapi specification for openrouter api, keeping it validated and agent-ready.

METHOD

PATH

DESCRIPTION

POST

/chat/completions

Generate a chat completion (OpenAI-compatible)

POST

/responses

Use the stateful responses API

POST

/messages

Send an Anthropic-format messages request

POST

/embeddings

Create text or code embeddings

GET

/embeddings/models

List available embedding models

GET

/credits

Read remaining account credits

GET

/activity

Pull recent usage activity

POST

/chat/completions

Generate a chat completion (OpenAI-compatible)

POST

/responses

Use the stateful responses API

POST

/messages

Send an Anthropic-format messages request

POST

/embeddings

Create text or code embeddings

GET

/embeddings/models

List available embedding models

GET

/credits

Read remaining account credits

GET

/activity

Pull recent usage activity

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Setup

Wiring the OpenRouter API by hand means sending your bearer key on every request, selecting a model per call, and picking the right OpenAI-compatible operation for chat, responses, messages, or embeddings. Through Jentic you install once, import the OpenRouter API from the API Directory, store the key once, and your agent calls it.

Permission scoping

Permission scoping

You limit the agent to the operations it needs, such as sending a chat completion or creating embeddings. You choose which operations it may call, so account operations like reading credits or activity are not included unless you add them.

Credential management

Credential isolation

Your OpenRouter bearer key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.

Intent-based discovery

Intent-based discovery

Agents search Jentic by intent such as 'send a chat completion via OpenRouter' or 'create text embeddings', and Jentic returns the matching OpenAI-compatible operation with its input schema, including model selection, so the agent calls the right endpoint without browsing the reference docs.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Alternative

OpenAI API

→

Direct OpenAI inference rather than a routed gateway

Choose OpenAI directly when you only need OpenAI models and want first-party feature access on day one.

Alternative

Anthropic Messages API

→

Direct Anthropic Claude API

Choose Anthropic directly when you exclusively use Claude and want native messages-API features without an intermediary.

Complementary

Replicate API

→

Image, video, and specialised model hosting alongside text inference

Use Replicate for non-text models (image, video) and OpenRouter for text-LLM routing.

Alternative

Mistral API

→

Direct Mistral inference

Choose Mistral directly when you have a contractual commitment to Mistral or need first-party European data residency guarantees.

FAQs

Specific to using OpenRouter API through Jentic.

Why is there no official OpenAPI spec for OpenRouter API?

OpenRouter does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call OpenRouter API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

What authentication does the OpenRouter API use?

OpenRouter uses bearer-token authentication: the API key is sent in the Authorization header on every request. Through Jentic the key is held in the encrypted vault and injected at execution time, so it never appears in agent prompts.

Can I use OpenRouter as a drop-in for the OpenAI API?

Yes for the chat completions surface. POST /chat/completions accepts the OpenAI-compatible request shape, with the model field naming any supported provider+model combination. The /messages endpoint additionally accepts the Anthropic format directly.

What are the rate limits for the OpenRouter API?

OpenRouter enforces account-tier rate limits that vary by model and provider. The OpenAPI spec does not encode these per-model limits, so check the dashboard at openrouter.ai for your account's current ceilings, particularly when calling premium frontier models.

How do I send a chat completion through Jentic?

Run pip install jentic, search 'send a chat completion via OpenRouter', load the /chat/completions operation, and execute it with model and messages parameters. Jentic supplies the bearer token and returns the parsed completion.

Does the API expose embeddings as well as chat?

Yes. POST /embeddings creates vectors using a chosen model, and GET /embeddings/models lists which embedding models are currently available on the account, so retrieval pipelines can pick a model and budget without leaving the same gateway.

Can I limit what my agent is allowed to do with the OpenRouter API?

Yes. Because Jentic One runs self-hosted on your own infrastructure, your rules decide exactly which OpenRouter operations the agent may call. You can allow only the operations it needs, such as sending a chat completion via /chat/completions or creating embeddings via /embeddings, while withholding account operations like reading /credits or pulling /activity unless you explicitly add them. Your OpenRouter bearer key is stored once and injected at execution time, so the agent can only exercise the operations you have granted.

GET STARTED

Start building with OpenRouter API

Explore with Jentic One
View OpenAPI Document