Skip to content

Providers

The providers Lykia connects to directly, with the ids used in routing preferences and responses.

Markdown
On this page
GET/v1/providers

Returns the providers Lykia connects to directly, sorted by name. The slug values here are the ids you use in the provider object of a POST /chat/completions request (order, only, ignore), the ones you see in the provider field of responses, and the ones you pick when you add a provider key to a project. If Lykia has no key of its own at a listed provider, that provider's models can be used only once you add your own key for it to your project; GET /models shows which models your project can use.

Example

Request
curl https://api.getlykia.com/v1/providers \
  -H "Authorization: Bearer $LYKIA_API_KEY"
Response200
{
  "data": [
    {
      "name": "Anthropic",
      "slug": "anthropic",
      "privacy_policy_url": null,
      "terms_of_service_url": null,
      "status_page_url": null,
      "headquarters": null,
      "datacenters": null
    },
    {
      "name": "OpenAI",
      "slug": "openai",
      "privacy_policy_url": null,
      "terms_of_service_url": null,
      "status_page_url": null,
      "headquarters": null,
      "datacenters": null
    }
  ]
}

Response

The response is a data array of provider objects.

namestring

Display name.

slugstring

The provider id, for example anthropic. Routing preferences refer to providers by this value.

privacy_policy_urlstring | null

The provider's privacy policy.

terms_of_service_urlstring | null

The provider's terms of service.

status_page_urlstring | null

The provider's status page.

headquartersstring | null

Two-letter code of the country where the provider is based.

datacentersstring[] | null

Country codes of its data centres.

To send requests to particular providers or keep some out, see Provider routing.