API7 Docs
API7 GatewayAPI7 Enterprise Admin APIsDelete an AI provider

Delete an AI provider

DELETE /aisix/admin/providers/{provider_id}

DELETE /aisix/admin/providers/{provider_id}

Interactive request editor loads with JavaScript.

Authorization

X-API-KEY<token>

In: header

Path Parameters

provider_id*string

AI Provider ID.

Length1 <= length

Query Parameters

ai_gateway_group_id*string

AI Gateway group ID (filter resources by group).

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "$API_BASE_URL/aisix/admin/providers/provider-abc123?ai_gateway_group_id=abc1234567890"

Operation completed successfully with no response body.

""
Complete operation details and schema variants

DELETE /aisix/admin/providers/{provider_id}

Delete an AI provider

IAM Action: ai_gateway:DeleteAIProvider, Resource: arn:api7:ai_gateway:aigatewaygroup/%s Deletes the specified AI provider configuration and removes it from etcd. Returns 409 Conflict if any AI models reference this provider.

Parameters

  • ai_gateway_group_id (query, string, required): AI Gateway group ID (filter resources by group).
  • provider_id (path, string, required): AI Provider ID.

Responses

  • 200: Operation completed successfully with no response body.
  • 400: Bad Request — The request was malformed or contained invalid parameters. Check the error_msg field for details.
  • value (object, optional): The specific resource.
  • error_msg (string, optional): The error message.
  • 404: Not Found — The requested resource does not exist or has been deleted. Response fields (application/json): identical to DELETE /aisix/admin/providers/{provider_id}, response 400 above.
  • 409: Conflict — A resource with the same unique identifier (e.g., name) already exists. Response fields (application/json): identical to DELETE /aisix/admin/providers/{provider_id}, response 400 above.

cURL

curl -X DELETE '$API_BASE_URL/aisix/admin/providers/{provider_id}'