Skip to main content
POST
/
api
/
models
/
providers
/
{provider}
/
models
Fetch Provider Models
curl --request POST \
  --url https://api.example.com/api/models/providers/{provider}/models \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "api_key": "<string>",
  "base_url": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

provider
string
required

Body

application/json
api_key
string
required
base_url
string | null

Response

Successful Response

The response is of type Response Fetch Provider Models Api Models Providers Provider Models Post · object.