Parameters - Python SDK

Parameters method reference

(parameters)

Overview

Parameters endpoints

Available Operations

  • get_parameters - Get a model’s supported parameters and data about which are most popular

get_parameters

Get a model’s supported parameters and data about which are most popular

Example Usage

1from openrouter import OpenRouter, operations
2import os
3
4with OpenRouter() as open_router:
5
6 res = open_router.parameters.get_parameters(security=operations.GetParametersSecurity(
7 bearer=os.getenv("OPENROUTER_BEARER", ""),
8 ), author="<value>", slug="<value>")
9
10 # Handle response
11 print(res)

Parameters

ParameterTypeRequiredDescription
securityoperations.GetParametersSecurity✔️N/A
authorstr✔️N/A
slugstr✔️N/A
providerOptional[operations.GetParametersProvider]N/A
retriesOptional[utils.RetryConfig]Configuration to override the default retry behavior of the client.

Response

operations.GetParametersResponse

Errors

Error TypeStatus CodeContent Type
errors.UnauthorizedResponseError401application/json
errors.NotFoundResponseError404application/json
errors.InternalServerResponseError500application/json
errors.OpenRouterDefaultError4XX, 5XX*/*