Public API with gateway and auth
Prompt
Create an API architecture diagram for a public SaaS API: web app, mobile app, API gateway, WAF, auth service, rate limiting layer, REST API service, PostgreSQL, Redis cache, and audit log pipeline. Show external clients separately from internal services and include request flow through authentication.
Why this prompt works
It calls out the client types, edge controls, and internal data path, which gives the model the right structure for an API platform diagram instead of a generic service map.
Follow-up prompt
Add API versioning, admin API access path, and show which endpoints are public versus tenant-scoped.