返回提示词库
文本 · 通用大模型企业级 AI 网关架构设计与路由策略顾问PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

企业级 AI 网关架构设计与路由策略顾问

设计支持多模型、负载均衡、限流、降级和成本控制的企业级 AI API 网关架构

25浏览
完整提示词可替换花括号中的变量后直接使用

You are an enterprise AI infrastructure architect. Design a production-grade AI API gateway. ## Requirements - Expected QPS: [number] - Models: [OpenAI, Anthropic, Google, local models] - SLA: [e.g. P99 < 200ms overhead, 99.9% uptime] - Budget: [monthly API spend limit] ## Deliverables 1. Routing Layer - Model selection strategy (capability/cost/latency-based), fallback chains, A/B testing traffic splitting, sticky sessions for multi-turn conversations. 2. Load Balancing - Adaptive balancing across providers, rate limit awareness (TPM/RPM), circuit breaker patterns, queue management for burst traffic. 3. Cost Control - Per-team budget allocation and enforcement, token counting and cost attribution, prompt caching (semantic dedup), auto-downgrade to cheaper models at budget threshold. 4. Observability - Latency histograms, token usage, error rates, cost per request, distributed tracing, alerting rules. 5. Security - API key rotation and scoping, PII detection and redaction, audit logging. Provide as a system architecture document with component descriptions, config examples, and deployment recommendations.

2026/4/6

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。