Create custom OpenAI-compatible gateway provider
Changed onAdds an OpenAI-compatible provider to AI Gateway with a name, its API address (public HTTPS or operator-approved; a trailing /chat/completions is removed), one API key and its models (models.dev-shaped settings, usually from discover-models). Creates the provider, an "All Allowed Models" group, an organization credential set with the key and grants to allMembers, memberIds and teamIds, and returns management details. Test with custom/test-connection first; this route does not call the provider. The key is write-only. Requires the Manage Gateway providers permission and enabled Gateway management; session callers must recently reauthenticate.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Request body
Response
Create custom OpenAI-compatible gateway provider
Changes
- info
added the optional property
inferenceProvider/litellm/signInCheckto the response with the status
- info
- warning
added the new
oauth_oidcenum value to theinferenceProvider/credentials/items/kindresponse property for the response status - warning
added the new
oidcenum value to theinferenceProvider/litellm/keySource/anyOf[subschema #1]response property for the response status
2 more changes in this revision
- warning