Skip to main content
POST
Fetch models from a custom OpenAI-compatible provider

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Body

application/json
baseUrl
string
required
Required string length: 1 - 2048
apiKey
string
required
Required string length: 1 - 8192

Response

Fetch models from a custom OpenAI-compatible provider

status
enum<string>
required
Available options:
detailed,
basic,
unavailable
baseUrl
string
required
reason
string | null
required
upstreamStatus
integer | null
required
Required range: -9007199254740991 <= x <= 9007199254740991
models
object[]
required