AICredits Docs
Everything required to integrate quickly and operate reliably in production: API contracts, pricing formulas, model routing, and failure-handling guidance.
Quickstart
Create account, add credits, generate key, and send first request.
Open
API Reference
Endpoint contracts, request formats, and response objects.
Open
Pricing
INR conversion, markup behavior, and token billing formula.
Open
Browse by Workflow
Integrate OpenAI-compatible clients
Keep existing SDKs and route requests via AICredits base URL.
Route across models safely
Understand model IDs, fallback patterns, and rate-limit behavior.
Ship production error handling
Retry strategy, non-retryable errors, and operational guardrails.
SDK examples and frameworks
Python, TypeScript, and integration patterns for common stacks.
Core gateway features
Budget controls, usage tracking, and wallet operations.
Explore blog and release notes
See product updates and engineering implementation notes.
Latest from Blog
Chain-of-Thought, Few-Shot or Plain Prompt? Pick by Cost and Quality
Each prompting technique changes your token bill differently. A practical way to choose between zero-shot, few-shot and chain-of-thought using a small eval and INR cost per task.
Write Cheaper Prompts: Six Habits That Cut Your LLM Token Bill
Your LLM bill is input tokens plus output tokens plus any hidden reasoning tokens. Six prompt-writing habits that reduce all three, with a formula to measure the effect in rupees.
Build Your First AI App in a Weekend (India Edition)
A complete beginner path from zero to a working AI app — a document Q&A tool — built and deployed over a weekend, with the total real cost in rupees at the end.
Start integrating
Use OpenAI-compatible payloads, switch model IDs, and keep provider operations visible with one usage ledger.