Get a project key
Sign in to the Velobase Dashboard, open your
project, and create an API key under Keys. It looks like
vb_live_…. This
is your backend key; never ship it to a browser or mobile client.Fund an end-customer
A model call needs a funded customer wallet. Create/fund one with your app’s
own user id:The customer is created on first deposit. In production you call this from your
backend after the user pays you, using the payment event id as the
idempotency_key.Make a billed model call
Point the OpenAI SDK at Velobase and tag the call with the customer to bill:The call debits
user_123’s wallet and returns the cost on the response
headers. If you see 402 insufficient_funds, the customer wallet is empty; if
you see 402 project_balance_insufficient, top up your project wallet.Check the balance
available figure dropped by the call’s cost. Or read it through a
Python / JavaScript
SDK.Where to go next
OpenAI-Compatible Gateway
Streaming, billing headers, two-wallet model, and the Copy-for-AI prompt.
Depositing Credits
Amount units, wallet categories, and idempotency.