AI Gateway Admin
post/ai/providers/discover

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/providers/discover
  • Auth: HTTP bearer

Request body

api_keystring

API key, if the server requires one

base_urlstring nullable

Base URL of the server (required for "openai_compatible")

providerstring required

Provider ID, e.g. "openai_compatible"

trust_private_addressboolean

Discover as if the base URL's exact private address were trusted on the key. Requires settings:write.

Response

Models the provider lists

providerstring required

Changes