Fetch models from a custom OpenAI-compatible provider
Changed onCalls GET {baseUrl}/models on an OpenAI-compatible provider with its API key (or, with inferenceProviderId, the saved key of that custom provider, only for its saved address's origin) and returns each model with suggested models.dev-style settings, matched against the models.dev OpenRouter catalog. status is detailed (OpenRouter-style entries), basic (ids only) or unavailable (with a reason). The address must be public HTTPS or approved by the operator. 10-second timeout, 5 MB and 500 models at most. Nothing is stored. Requires the Manage Gateway providers permission and enabled Gateway management; a person must send it, never the agent or an API key. Limited to 20 per member and 60 per organization every ten minutes.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Request body
Response
Fetch models from a custom OpenAI-compatible provider
Changes
- breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyanyOflist for the response status - info
added the optional property
messageto the response with the status
1 more change in this revision
- breaking