Probe AISIX model aliases and generate health reports for SRE teams

Go to Workflow
0 views
Built by Yilia Lin Yilia Lin
Created on September 16, 2026

Description

Quick Overview
This workflow runs on demand to list model aliases from an AISIX AI Gateway and sends a small OpenAI-compatible Chat Completions probe to each alias, then returns a consolidated health report that flags rate limits, auth errors, policy blocks, and other unhealthy responses.

How it works
Runs when triggered manually.
Sets the AISIX gateway base URL, probe prompt, and a maximum number of model aliases to test.
Calls the AISIX /v1/models endpoint to fetch the model aliases visible to the configured caller API key.
Builds a capped queue of aliases to probe, or returns an attention result if model discovery fails or no aliases are available.
Sends one non-streaming Chat Completions request to AISIX /v1/chat/completions for each alias.
Classifies each probe response as healthy, rate limited, policy blocked, auth failed, or unhealthy and captures latency plus relevant response headers.
Aggregates results into an overall health report and outputs it on either a healthy or attention path.

Setup
Create an n8n HTTP Header Auth credential that sets Authorization: Bearer and select it in both AISIX HTTP Request steps.
Update aisix_base_url, probe_prompt, and max_models in the configuration step to match your AISIX gateway and desired probe behavior.
Ensure your AISIX instance supports OpenAI-compatible /v1/models and /v1/chat/completions endpoints and that the caller key can list and call at least one model alias.

Nodes Used (2)

Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest