"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"
}
{ "error": { "code": 400, "message": "Invalid request parameters" } }
{ "error": { "code": 401, "message": "Missing Authentication header" } }
{ "error": { "code": 403, "message": "Only management keys can perform this operation" } }
{ "error": { "code": 429, "message": "Rate limit exceeded" } }
{ "error": { "code": 500, "message": "Internal Server Error" } }
Authorizations
​
Authorization
string
header
required
API key as bearer token in Authorization header
Body
application/json
​
name
string
required
Name for the new API key
Minimum string length:
1
Example
:
"My New API Key"
​
creator_user_id
string | null
Optional user ID of the key creator.

Images
Interns
API Keys
GET
Get current API key
GET
List API keys
POST
Create a new API key
GET
Get a single API key
DEL
Delete an API key
PATCH
Update an API key
Anthropic Messages
Models
Observability
Organization
Presets
Private Endpoints
Providers
Rerank
Responses
SCIM
SystemOne
Tools
Vault
Video Generation
Workspaces
Create a new API key
cURL
curl
--request
POST
\
--url
https://openrouter.ai/api/v1/keys
\
--header
'Authorization: Bearer <token>'
\
--header
'Content-Type: application/json'
\
--data
'
{
"expires_at": "2027-12-31T23:59:59Z",
"include_byok_in_limit": true,
"limit": 50,
"limit_reset": "monthly",
"name": "My New API Key"
}
'
