Resource hierarchy
Request lifecycle
- Your server sends an HTTPS request to
api.mibyanai.com/v1. - The gateway authenticates the bearer key and resolves its project.
- Policy checks evaluate project status, key status, endpoint and model access, budget, and rate limits.
- The active Mibyan model configuration processes the request.
- The API returns JSON or SSE and attaches a
req_...correlation identifier. - The project receives usage and operational log data for review.
Environment separation
Use test keys and a non-production project during development. Use live keys only on a server-side production service. Never put a live key in browser code, mobile bundles, URLs, screenshots, or client-side analytics.Operational controls
Before production, decide who can create keys, which models and endpoints each project may use, how budgets are alerted, how long keys live, and who reviews logs. Rotate a key immediately if it may have been exposed; do not wait for the next deployment.Platform controls can limit access and record activity, but they do not validate the truth of generated content. Add application-level validation, retrieval, and human approval where the use case requires it.