Tencent Cloud AI Gateway

Live Demo Console  ·  Intelligent Loan Advisor  ·  Kong ai-3.9.4
loading…
idle

Architecture & what's deployed

Every AI call below flows through one gateway: it authenticates the caller, routes by the model in the body, talks to backends on your behalf, and records token usage — the "service mesh of the AI era."

❶ LLM Gateway pillar

LLM
Client
Loan App
consumer key
AI Gateway
Kong ai-3.9.4
key-auth · route · fallback
Backend
TokenHub
models

❷ MCP Gateway pillar

MCP
Client
MCP Client
JSON-RPC
AI Gateway
Rest2MCP
/mcpservers/…/mcp
Backend
frankfurter
REST API

❸ Agent Gateway pillar

A2A
Client
A2A Client
JSON-RPC 2.0
AI Gateway
/agent/ route
Private DNS
Backend
Loan Agent
loan-agent.agentgw.local

Deployed resources

Intelligent Loan Advisor

A 4-step chain — Understand Intent → Query Data → Calculate Risk → Generate Proposal. Every LLM hop goes through the gateway as a normal OpenAI call.

Client
Loan App
OpenAI SDK + key
AI Gateway
Kong ai-3.9.4
key-auth · route
Backend
TokenHub
deepseek-v3.2

Agent E2E — the full tool-calling loop

The model never opens a socket — it only emits a tool_call. The orchestrator runs the tool via the MCP gateway and feeds the result back. All four hops go through the gateway.

Orchestrator
Loan Agent
plans the loop
AI Gateway
Kong ai-3.9.4
auth · route · observe
Backend
LLM & MCP tool
TokenHub · frankfurter

Agent Gateway — A2A agent via Private DNS

A live A2A agent (Agent-to-Agent, JSON-RPC 2.0) is published behind the gateway. The /agent/ route forwards to a Private DNS service — Kong resolves loan-agent.agentgw.local through the PrivateDNS service source at request time, so there is no hardcoded backend IP. The agent itself runs an LLM + MCP loop.

Client
A2A Client
JSON-RPC 2.0
AI Gateway
/agent/ route
Private DNS source
Backend
Loan Agent
loan-agent.agentgw.local

Governance capabilities

Live proof of what the gateway enforces: authentication, unified multi-model access, model allowlisting, observability, and control-plane config.

Data Masking — live gateway probe

The Tencent AI Gateway can redact PII with its Forwarding Masking plugin — sensitive fields are replaced with placeholders (e.g. [手机号]) before the prompt reaches the LLM. This page does not mask anything itself: it sends raw PII through the loan-chat Model API and asks the model to echo it back verbatim. Whatever returns is exactly what the gateway forwarded — so it proves whether Tencent's masking is on.

PII categories the gateway can mask

These built-in types live in the Data Masking plugin on the Model API in the TSE console. The probe below highlights any of these it finds in your prompt.

MCP Gateway — REST→MCP

The gateway turns a plain REST API (api.frankfurter.app) into an MCP tool. The client speaks pure MCP (JSON-RPC over StreamableHttp) — no SDK on the backend side.

Client
MCP Client
JSON-RPC 2.0
AI Gateway
Rest2MCP
StreamableHttp
Backend
frankfurter
GET /latest