Inference Connections_preview Models
The same list for a connection that isn't saved yet. The key is used for this request only and never stored or returned.
The same list for a connection that isn't saved yet. The key is used for this request only and never stored or returned.
ApiKeyAuthAuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
manage_inferenceapplication/json- body
An unsaved connection to list models for: the fields create takes.
provider_type*ProviderTypeThe API a connection speaks. Each type sets its own base URL form and whether an API key is required.
"openai""anthropic"credential_mode?CredentialModeDefaults to shared_key. A subscription query returns a fixed list, so it needs no base_url or api_key.
"shared_key""subscription"base_url?stringRequired for a shared_key query.
length <= 2048api_key?stringWrite-only: used for this request only, never stored or returned. Required for a shared_key query.
length <= 4096The request has succeeded.
application/json- response
models*array<>curl -X POST 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/inference/connections/models' \ -H 'Content-Type: application/json' \ -d '{ "provider_type": "openai"}'{ "models": [ { "id": "string", "name": "string" } ]}