MarsAI developer guide
Understand MarsAI credits and billing
Compare the credit balances and billing methods, then estimate a paid request from the current published rates.
Reviewed . Checked against the current MarsAI /v1 behavior and published catalog.
The balances
Free Credits come from listed grants and expire with their stated validity. A paid model accepts them only when its billing settings allow it. Premium Credits come from paid packs and other listed awards; each lot keeps its own expiry.
Free access models consume neither balance. For an eligible paid call, Free Credits are used before Premium Credits. Within each pool, eligible lots with the nearest expiry are consumed first.
Two paid billing methods
Credit multiplier
Add billable input and output tokens, then multiply by the model's published Premium Credit ratio. With 20,000 input tokens, 5,000 output tokens and a 2× ratio, the Premium Credit estimate is 50,000 before cached input or account adjustments.
Input and output rates
Some models charge input and output separately. A displayed input rate of 4M Premium Credits per million input tokens and output rate of 20M per million output tokens is applied to each direction independently.
Cached input is billed at 0.1× the normal input rate. Final settlement uses the usage reported by the completed request. A preflight estimate is not an invoice.
Estimate a paid request
This calculator assumes the request is charged entirely to Premium Credits. It excludes Free Credit offsets, role adjustments and usage differences between an estimate and the completed response.
Pack validity and request limits
A pack states its Premium Credit amount, validity, requests per minute and daily cap. Buying another pack does not remove an existing balance. The best active pack sets the applicable account limit while its credits remain eligible.
Free accounts have an effective limit of 30 requests per minute and 200 requests per day. Individual key restrictions and active paid packs can change the effective limit. A 429 can also report temporary model capacity, so read the error body.
Rates and enabled models can change. Check Pricing and the model catalog before sending a large workload.