Credits & Billing

Share

KiteRouter reserves credits before forwarding a request and settles actual cost after the response. Prices are configured per customer-facing model in the admin model catalog.

Billing flow

text
1API request
2  -> authenticate key
3  -> estimate maximum request cost
4  -> reserve user credits
5  -> forward to selected provider
6  -> read usage from response or estimate usage
7  -> settle reservation
8  -> write usage log

Price units

Model prices are stored and displayed as USD per 1M tokens.

FieldMeaning
promptPricePer1mSelling price for input tokens
completionPricePer1mSelling price for output tokens
baseInputPricePer1mOptional upstream/base input cost for margin comparison
baseOutputPricePer1mOptional upstream/base output cost for margin comparison

Insufficient credits

json
1{
2  "error": {
3    "message": "Insufficient credits",
4    "type": "billing_error",
5    "code": "insufficient_credits"
6  }
7}

Info: Add credits in the dashboard before sending production traffic.

Ready to start building?

Get your API key and make your first request in under a minute.