Providers - TypeScript SDK

Providers method reference

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Overview

Provider information endpoints

Available Operations

  • list - List all providers

list

List all providers

Example Usage

Standalone function

The standalone function version of this method:

Parameters

ParameterTypeRequiredDescription
optionsRequestOptionsUsed to set various options for making HTTP requests.
options.fetchOptionsRequestInitOptions that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retriesRetryConfigEnables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.ListProvidersResponse>

Errors

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