Credits & Billing
ShareKiteRouter 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
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.
| Field | Meaning |
|---|---|
promptPricePer1m | Selling price for input tokens |
completionPricePer1m | Selling price for output tokens |
baseInputPricePer1m | Optional upstream/base input cost for margin comparison |
baseOutputPricePer1m | Optional upstream/base output cost for margin comparison |
Insufficient credits
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.