Billing
Payments
How you pay: a monthly plan or pay per call, invoices, automatic top-up, and the ledger that records it all.
In short
- You pay by card: a monthly plan, or pay per call in packs. Both fill the same balance of calls.
- Every purchase gets an invoice with your company's address and tax number.
- An account has one plan at a time. To change it, cancel it in the billing portal and start the other one.
- Automatic top-up buys a pack when your calls run low.
The plans and the packs with their prices are on the price page. You buy in the console under Billing.
Plans, packs and invoices
You pay for calls, in one of two ways. A monthly plan gives the lowest price for each call.
Pay per call needs no plan and costs more for each call. Both fill the same balance.
Monthly plans, pay per call and Enterprise: how each one works
- Monthly plans. A subscription, paid by card each month. The calls of the plan are added each time an invoice is paid. Each plan has its own price for a call above the plan. An account has one plan at a time.
- Pay per call. No plan and no monthly fee: you buy calls in packs, one payment by card, and use them when you want. The calls are added when the payment is confirmed, normally within a minute. The price for each call is higher than on every plan. If you have a plan and need more calls in a month, the same packs cost your plan's price for a call above the plan.
- Enterprise and invoices. For unlimited calls, larger volumes and contracts, contact us. We add calls when an invoice is paid.
On the price page
Where to buy, and your invoices
The payment page, your invoices and the billing portal: Invoices and the billing portal.
Discount codes
How to use a code is on the price page: Discount codes. With the API, a code on a plan it does not name, or on a pack, is refused with 422 invalid_request.
Look it up
Change your plan
Cancel the plan in the billing portal, then start the other plan. A second plan cannot be started while one is active: the answer is 422 invalid_request, “This account has a plan.
Cancel it in the billing portal before you start another one.” Your calls stay on the account.
Automatic top-up
buy a pack when calls run low
With a saved card, your account can buy a pack of calls by itself when calls run low. Set it in the console under Billing.
- Buy a pack with “Save the card” on. The card is kept with the payment provider.
- Switch automatic top-up on and choose three things: the pack to buy, the number of calls below which it is bought, and the most to spend in one month.
The check runs each time a live solve is charged. When your calls are then below the level, the saved card buys the pack at your account's own price: your plan's price for a call above the plan, or the pay-per-call price. It makes one purchase at a time, never above the monthly amount.
When the monthly amount is reached, no more packs are bought that month and the console says so. If the card is declined, automatic top-up switches off and the console shows the reason.
A request that is refused with 402 insufficient_credits starts no solve, so it does not start a top-up. Set the level high enough for your largest request.
Start a payment from your own program
POST /v1/billing/checkout
POST /v1/billing/checkout with a key returns the address of a payment page. Send {"plan": "builder"} or {"pack": "calls-2500"}; the ids are in the price list above. With a plan you can send a discount code as "code".
A pack costs what your account pays: your plan's price for a call above the plan, or the pay-per-call price. success_url and cancel_url are optional: where the page sends the buyer after it. A payment started this way does not save the card for automatic top-up; use the console for that.
curl -sS -X POST "$GECKO_API/v1/billing/checkout" \
-H "Authorization: Bearer $GECKO_KEY" -H "Content-Type: application/json" \
-d '{"pack": "calls-2500"}'
# {"id": "cs_...", "url": "https://checkout.stripe.com/..."}
Calls are added only after the payment is confirmed to us, not when the buyer comes back from the page. Where card payments are not set up, the answer is 503 billing_unavailable.
The ledger
every change of the balance
GET /v1/ledger lists every change of the balance, newest first. limit is 1 to 500 (default 100).
For the next page send after with the next value. The console shows the same lines under Usage.
curl -sS "$GECKO_API/v1/ledger?limit=2" -H "Authorization: Bearer $GECKO_KEY"
The answer
{
"data": [
{"id": "led_00VcT5fj2aQmW1xYb7Tn4", "type": "solve", "credits": -1, "balance": 14999, "ts": 1796049035.03,
"solve_id": "slv_00VcT0iMuhDqPySfwtq2K", "root_id": "slv_00VcT0iMuhDqPySfwtq2K", "key_id": "key_00VcT0dVWUNMMpSY2DTbJ", "street": "flop"},
{"id": "led_5c1f0e3a9b7d4c2e8f6a1b3d5e7f", "type": "topup", "credits": 2500, "balance": 15000, "ts": 1796040000.0,
"ref": "cs_...", "note": "2,500 calls", "amount": 25000, "currency": "usd"}
],
"next": null
}
type is solve (a charge), refund (a failed solve returned), topup (a pack), plan (the calls of a monthly plan) or grant (calls we added, for example for an invoice). amount is in cents.
Disputes
A payment dispute suspends the account: its keys answer 403 account_suspended until it is resolved. If a charge looks wrong, contact us first.