NormaHub articles
Working with AI APIs
Practical pieces on connecting AI models to apps. Russian versions: все статьи на русском.
Practice
OpenAI-Compatible API Quickstart
Connect an OpenAI-compatible API: contract check, minimal request and preparing for production load.
Practice
How to Calculate AI API Cost by Tokens
Token cost math: input/output rates, dialog history growth, cache, retries and a monthly estimate method.
Practice
AI API Errors: Handling 401, 402, 429 and 503
Error code playbook: permanent vs transient, retry policy with backoff, idempotency and per-key diagnostics.
Practice
Streaming AI Responses over SSE: Practical Guide
SSE streaming via Responses API: byte reading, disconnects vs completion, timeouts and final usage accounting.
Practice
Storing API Keys for AI Apps Securely
Key hygiene: server-side storage, per-environment keys, spend limits, rotation and leak response.