LLM Models
Use the LLM Models API to list supported LLM providers and their available model names.
Using the namespace filter
Note: The
nsfilter(namespace filter) query parameter is mandatory for every request.
List LLM models
Endpoint
GET /aisvc/api/v1/llmmodels
Request
Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
nsfilter | String | Filter by namespace. | Required |
provider | String | LLM provider key. Supports openai and anthropic. | Required |
Request examples
GET /aisvc/api/v1/llmmodels?nsfilter=your_namespace&provider=openai
GET /aisvc/api/v1/llmmodels?nsfilter=your_namespace&provider=anthropic
Response
Codes
| Code | Description |
|---|---|
200 | Success |
400 | Bad Request |
401 | Unauthorized |
429 | Too Many Requests |
500 | Server Error |
Response body examples
Each request returns the models for the single provider you query.
For provider=openai:
{
"_offset": 0,
"_pageSize": 1,
"_total": 1,
"_list": [
{
"_provider": "openai",
"_models": [
{
"_modelName": "gpt-4o"
}
]
}
]
}
For provider=anthropic:
{
"_offset": 0,
"_pageSize": 1,
"_total": 1,
"_list": [
{
"_provider": "anthropic",
"_models": [
{
"_modelName": "claude-opus-4-20250514"
}
]
}
]
}
Error response body example
{
"source": "ServiceException",
"message": "Request query \"provider\" is mandatory"
}
Notes
- For
provider=openai, the service looks up the OpenAI API key from Passport secrets using the key nameOPENAI_API_KEYfor the current user/context andnsfilternamespace. - For
provider=anthropic, the service looks up the Anthropic API key from Passport secrets using the key nameANTHROPIC_API_KEYfor the current user/context andnsfilternamespace.