Skip to content

docs(openrouter): document native openrouter provider - #366

Open
faizan-185 wants to merge 2 commits into
masterfrom
faizan/pro-248-integrate-openrouter-as-a-first-class-provider
Open

docs(openrouter): document native openrouter provider#366
faizan-185 wants to merge 2 commits into
masterfrom
faizan/pro-248-integrate-openrouter-as-a-first-class-provider

Conversation

@faizan-185

Copy link
Copy Markdown
Contributor

Summary

OpenRouter is now a first-class native provider in PromptLayer (official OpenRouter SDK, native API key, and chat/image/video/speech). The docs still described it as an OpenAI-compatible custom provider, so this updates them:

  • features/openrouter-integration.mdx — rewritten for the native integration:
    • Configure the OpenRouter key like any other native provider key (no custom base-URL setup)
    • Capability matrix by API type: Chat (streaming + non-streaming), Images, Video (async job), Speech / TTS
    • Playground API-type selector + speech voice notes
    • Structured outputs, function calling, and server (built-in) tools
    • Python + JS run() examples (one call works across all api types)
    • Keeps a note that the legacy custom-provider approach still works
  • features/supported-providers.mdx — added a native OpenRouter entry under Provider Details and repointed the OpenAI tip + OpenAI-compatible examples from custom-providers#openrouter to the native page.

No dangling custom-providers#openrouter links remain; <CodeGroup> is an already-used Mintlify component.

Linear

Part of PRO-248 — Integrate OpenRouter as a first-class provider
Related: backend promptlayer-app#1457, SDKs prompt-layer-library#336, prompt-layer-js#190, promptlayer-mcp#41

Test plan

  • Page already in docs.json nav; no nav changes needed
  • Internal links resolve to existing pages
  • Mintlify preview renders the two pages

Rewrite the OpenRouter page for the first-class native integration
(chat, image, video, speech/TTS, server tools, SDK usage) and update
supported-providers references away from the OpenAI-compatible workaround.
@mintlify

mintlify Bot commented Jul 28, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
promptlayer 🟢 Ready View Preview Jul 28, 2026, 4:18 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6609320262

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


## Setting Up OpenRouter as a Custom Provider
<Note>
OpenRouter is now a native provider — you no longer need to set it up as an OpenAI-compatible custom provider. The legacy [custom provider](/features/custom-providers) approach still works, but the native integration is recommended because it uses the official OpenRouter SDK and unlocks image, video, and speech capabilities.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Move native OpenRouter guide out of Custom Providers

This page now tells users OpenRouter is a native provider and no longer needs custom-provider setup, but docs.json still lists features/openrouter-integration only under Providers > Custom Providers (docs.json:139-145). In the published sidebar, users will still find the native setup guide in the custom-provider bucket, which contradicts the new guidance and makes the provider setup harder to discover; move the page to the main Providers section while keeping the existing slug.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved features/openrouter-integration to the main Providers section in docs.json (kept the same slug). Also updated the Custom Providers page so it no longer lists OpenRouter as a custom-provider guide.

@hasaan21 hasaan21 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see codex comment

List the OpenRouter page in the main Providers section instead of
Custom Providers, and update the custom-providers cross-link.

@faizan-185 faizan-185 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the Codex/review feedback in 30b0e85: OpenRouter guide now lives under Providers, not Custom Providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants