The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { ListProvidersData } from "@openrouter/sdk/models/operations";
let value: ListProvidersData = {
name: "OpenAI",
privacyPolicyUrl: "https://openai.com/privacy",
slug: "openai",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
datacenters | operations.Datacenter[] | :heavy_minus_sign: | ISO 3166-1 Alpha-2 country codes of the provider datacenter locations | [ “US”, “IE” ] |
headquarters | operations.Headquarters | :heavy_minus_sign: | ISO 3166-1 Alpha-2 country code of the provider headquarters | US |
name | string | :heavy_check_mark: | Display name of the provider | OpenAI |
privacyPolicyUrl | string | :heavy_check_mark: | URL to the provider’s privacy policy | https://openai.com/privacy |
slug | string | :heavy_check_mark: | URL-friendly identifier for the provider | openai |
statusPageUrl | string | :heavy_minus_sign: | URL to the provider’s status page | https://status.openai.com |
termsOfServiceUrl | string | :heavy_minus_sign: | URL to the provider’s terms of service | https://openai.com/terms |