-
Notifications
You must be signed in to change notification settings - Fork 0
Split API Keys into its own HPP Hub page #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| --- | ||
| title: API Keys | ||
| --- | ||
|
|
||
| # API Keys | ||
|
|
||
| The **API Keys** page is where you create keys for **HPP Router** — HPP's AI model | ||
| gateway — and browse the models you can call from your own code. | ||
|
|
||
| ## Create an API key | ||
|
|
||
| 1. Open **API Keys** from the left sidebar. | ||
| 2. Select **Create Key** and give it a name. | ||
| 3. Copy the key and store it somewhere safe. | ||
|
|
||
| You can create several keys and revoke any of them at any time. Treat a key like a | ||
| password — keep it server-side and never commit it to source control. | ||
|
|
||
| > **Note:** API usage and the Playground draw from the same **Credits**. Top up on the | ||
| > [Wallets](./wallets) page. | ||
|
|
||
| ## Browse available models | ||
|
|
||
| The page lists every model HPP Router can route to, in two tables: | ||
|
|
||
| - **Text models** — chat and code models from providers such as Anthropic (Claude), | ||
| OpenAI (GPT), and Moonshot AI (Kimi), plus free open models. Each shows its input and | ||
| output price per million tokens (MTok). | ||
| - **Image models** — image-generation models, priced the same per-use way. | ||
|
|
||
| The list and prices shown in the Hub are always current, so check there for the | ||
| definitive catalog. | ||
|
|
||
| ## Make a request | ||
|
|
||
| Your key works with any OpenAI-compatible client. Point the base URL at HPP Router and | ||
| send the key as a Bearer token: | ||
|
|
||
| ```bash | ||
| curl https://router.hpp.io/llm/v1/chat/completions \ | ||
| -H "Authorization: Bearer YOUR_API_KEY" \ | ||
| -H "Content-Type: application/json" \ | ||
| -d '{ | ||
| "model": "hpprouter/auto", | ||
| "max_tokens": 1024, | ||
| "messages": [{"role": "user", "content": "Hello!"}] | ||
| }' | ||
| ``` | ||
|
|
||
| The virtual `hpprouter/auto` model lets HPP Router pick a cost-appropriate model for each | ||
| request. To call a specific model, use its full id (for example `anthropic/claude-sonnet-4-6`). | ||
|
|
||
| ## Full HPP Router guide | ||
|
|
||
| API keys are issued for **HPP Router**, HPP's OpenAI-compatible model gateway. For the | ||
| complete reference — authentication, streaming, the model catalog and pricing, smart | ||
| routing, and SDKs — see the dedicated guide: | ||
|
|
||
| - [HPP Router overview](/hpp-router) | ||
| - [Quickstart](/hpp-router/quickstart) | ||
| - [Authentication](/hpp-router/authentication) | ||
| - [Models & Pricing](/hpp-router/models-and-pricing) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.