Functionsยง
- create_
api_ key - Creates a new API key. Requires a Provisioning API key.
- delete_
api_ key - Deletes an API key. Requires a Provisioning API key.
- get_
api_ key - Returns details about a specific API key. Requires a Provisioning API key.
- get_
credits - Retrieves the total credits purchased and used for the authenticated user.
- get_
current_ api_ key - Retrieves information on the API key associated with the current authentication session.
- get_
generation - Retrieves metadata about a specific generation request.
- is_
model_ enabled - Checks if a specific model is enabled.
- list_
api_ keys - Returns a list of all API keys associated with the account. Requires a Provisioning API key.
- list_
model_ endpoints - Returns details about the endpoints for a specific model.
- list_
models - Returns a list of models available through the API.
- send_
chat_ completion - Sends a chat completion request.
- send_
completion - Sends a completion request.
- set_
api_ key - Sets the API key for the OpenRouter client.
- stream_
chat_ completion - Streams chat completion events.
- update_
api_ key - Updates an existing API key. Requires a Provisioning API key.