Module command

Source

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.