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[] | ➖ | ISO 3166-1 Alpha-2 country codes of the provider datacenter locations | [ “US”, “IE” ] |
headquarters | operations.Headquarters | ➖ | ISO 3166-1 Alpha-2 country code of the provider headquarters | US |
name | string | ✅ | Display name of the provider | OpenAI |
privacyPolicyUrl | string | ✅ | URL to the provider’s privacy policy | https://openai.com/privacy |
slug | string | ✅ | URL-friendly identifier for the provider | openai |
statusPageUrl | string | ➖ | URL to the provider’s status page | https://status.openai.com |
termsOfServiceUrl | string | ➖ | URL to the provider’s terms of service | https://openai.com/terms |