Files
openrouter-python-sdk-retry…/docs/sdks/parameters/README.md
T
Matt Apperson 5fc522c72f Initial commit: OpenRouter Python SDK
Auto-generated Python SDK for OpenRouter API, providing comprehensive client library with:
- Chat completions and streaming support
- Embeddings API
- Model and provider information
- API key management
- Analytics and usage tracking
- OAuth authentication flows
- Full type hints and error handling
2025-11-13 10:56:25 -05:00

3.8 KiB
Raw Blame History

Parameters

(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

from openrouter import OpenRouter, models
import os


with OpenRouter() as open_router:

    res = open_router.parameters.get_parameters(security=models.GetParametersSecurity(
        bearer=os.getenv("OPENROUTER_BEARER", ""),
    ), author="<value>", slug="<value>")

    # Handle response
    print(res)

Parameters

Parameter Type Required Description
security models.GetParametersSecurity ✔️ N/A
author str ✔️ N/A
slug str ✔️ N/A
provider Optional[models.GetParametersProvider] N/A
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.GetParametersResponse

Errors

Error Type Status Code Content Type
errors.UnauthorizedResponseError 401 application/json
errors.NotFoundResponseError 404 application/json
errors.InternalServerResponseError 500 application/json
errors.OpenRouterDefaultError 4XX, 5XX */*