Skip to content
Start here

Custom Providers

List custom providers
ai_gateway.custom_providers.list(CustomProviderListParams**kwargs) -> SyncV4PagePaginationArray[CustomProviderListResponse]
GET/accounts/{account_id}/ai-gateway/custom-providers
Get a custom provider
ai_gateway.custom_providers.get(strid, CustomProviderGetParams**kwargs) -> CustomProviderGetResponse
GET/accounts/{account_id}/ai-gateway/custom-providers/{id}
Create a custom provider
ai_gateway.custom_providers.create(CustomProviderCreateParams**kwargs) -> CustomProviderCreateResponse
POST/accounts/{account_id}/ai-gateway/custom-providers
Delete a custom provider
ai_gateway.custom_providers.delete(strid, CustomProviderDeleteParams**kwargs) -> CustomProviderDeleteResponse
DELETE/accounts/{account_id}/ai-gateway/custom-providers/{id}
ModelsExpand Collapse
class CustomProviderListResponse: …
id: str
formatuuid
base_url: str
formaturi
created_at: datetime
formatdate-time
modified_at: datetime
formatdate-time
name: str
slug: str
beta: Optional[bool]
curl_example: Optional[str]
description: Optional[str]
enable: Optional[bool]
headers: Optional[str]

JSON object of extra HTTP headers that AI Gateway sends to the provider. Values can contain credentials.

maxLength8192
js_example: Optional[str]
position: Optional[int]
class CustomProviderGetResponse: …
id: str
formatuuid
base_url: str
formaturi
created_at: datetime
formatdate-time
modified_at: datetime
formatdate-time
name: str
slug: str
beta: Optional[bool]
curl_example: Optional[str]
description: Optional[str]
enable: Optional[bool]
headers: Optional[str]

JSON object of extra HTTP headers that AI Gateway sends to the provider. Values can contain credentials.

maxLength8192
js_example: Optional[str]
position: Optional[int]
class CustomProviderCreateResponse: …
id: str
formatuuid
base_url: str
formaturi
created_at: datetime
formatdate-time
modified_at: datetime
formatdate-time
name: str
slug: str
beta: Optional[bool]
curl_example: Optional[str]
description: Optional[str]
enable: Optional[bool]
headers: Optional[str]

JSON object of extra HTTP headers that AI Gateway sends to the provider. Values can contain credentials.

maxLength8192
js_example: Optional[str]
position: Optional[int]
class CustomProviderDeleteResponse: …
id: str
formatuuid
base_url: str
formaturi
created_at: datetime
formatdate-time
modified_at: datetime
formatdate-time
name: str
slug: str
beta: Optional[bool]
curl_example: Optional[str]
description: Optional[str]
enable: Optional[bool]
headers: Optional[str]

JSON object of extra HTTP headers that AI Gateway sends to the provider. Values can contain credentials.

maxLength8192
js_example: Optional[str]
position: Optional[int]