Start with the right format.
Chat Completions, Responses, Messages, images, async video, speech, transcription, embeddings, and rerank.
Starters cover selected chat/image routes. Other APIs have focused guidance and samples.
A community skill for coding agents
OpenRouter has grown beyond chat. Give your agent the API choices, working patterns, and failure cases it needs—without starting over in every project.
Open source · MIT · Independent of OpenRouter
“Add a read-aloud button.”
A wider map. Clear boundaries.
A skill is a set of instructions, references, and reusable code your coding agent can load. It helps decide what to build; it does not turn on services or change your account.
Chat Completions, Responses, Messages, images, async video, speech, transcription, embeddings, and rerank.
Starters cover selected chat/image routes. Other APIs have focused guidance and samples.
Client functions, hosted tools, deferred tool search, Agent SDK, MCP, and state across turns.
A hosted tool record must not become a command on your application host.
Model routing, endpoint discounts, response caching, budgets, Guardrail Policies, identity, regions, and trace exports.
Preferences are not hard caps. Feature discovery is not account verification.
Real code to start from
Every command defaults to dry-run. The sample functions run in offline tests with injected responses. Paid model behavior is a separate check.
Use the speech endpoint, check its status, and save audio bytes. Choose a model and voice that support MP3.
Not every voice supports every format. A live Kokoro MP3 sample passed on 12 Nov 2026.
Open the actual source ↗npx --yes tsx examples/run.ts speech \
--model SPEECH_MODEL_ID --voice SUPPORTED_VOICE \
--text "Your export is ready." --out reply.mp3
Evidence you can inspect
Unit tests check code. Documentation checks check selected contracts. Behavioral trials check what an agent recommends. We report them separately.
35 tests cover install safety, streaming, request/response samples, local tool execution boundaries, and inventory drift.
Synthetic fixtures, actual functions113 checks passed against selected official contracts and a reviewed inventory of 552 indexed pages and 174 API operations.
Read-only network checks · 11 Nov 2026Seven live flows passed: streaming, MP3 speech, completed video, embeddings, rerank, client tools, and image. Eight inference requests cost $0.22931826. One selected model per flow. Read the redacted results and billing evidence ↗
Actual paid requests · 12 Nov 2026Paired behavior evaluation
Previous release, no skill, and candidate. Three trials per case, with hidden gates and a grader blinded to the variant.
Loading the published evaluation record…
This measures bounded integration recommendations. It does not certify end-to-end app behavior or performance on every model.
Inspect the results and limits ↗The runner receives the task and available reference text, but not the grading gates. Skill auto-discovery, tools, network, and account writes are disabled in the run. A separate clean model context grades shuffled answers against outcome gates. The grader uses the same model family, so this is blind grading, not a cross-model or human certification. Three trials are an early signal, not a broad reliability guarantee.
Cases include representative tasks, failure cases, scope boundaries, and held-out tasks. Development failures and retests stay in the release record; an average cannot erase a failed hard gate. No-skill and previous-release results are kept alongside the candidate.
Carry it into the next project
Use it with coding agents that support the skills format. Keep the generated code in your app, and choose the parts that fit.
Community-maintained. No bundled key, paid account, or tracking.
npx skills add bnishit/skills \
--skill openrouter-integration --global
Then ask your agent:
Use $openrouter-integration to add a resumable video flow. Start with the dry-run sample and show what still needs live verification.Read the setup and verification guide ↗
Before you use it
No. The references map 30 capability areas. The supplied Next.js/Express starters implement selected chat and image routes. Worked samples cover narrower server/CLI patterns. New product surfaces still need their own implementation and checks.
The SDK gives you typed calls and client behavior. This skill helps choose the API, preserve state, handle failure, and audit cost. The Client SDK and Agent SDK have different jobs; the skill explains that boundary.
Focused checks verify selected official assumptions. The inventory check flags added or removed indexed pages and API operations. Existing page/schema changes can still need manual review. The capability map includes source links and dated migration notes.
The samples are not an authentication, quota, or tenant-isolation system. Add those controls for your app and test with your account before exposure. Keys belong on the server; account and admin changes need their own authorization.