Skip to main content
VVV and DIEM are Venice’s on-chain funding layer for the API. Stake DIEM to receive a fixed daily inference allowance — 1 DIEM = $1 per day of Venice API credit — without buying prepaid USD credits for every request. DIEM is an ERC-20 on Base. You can transfer, trade, or stake it. Unlike pay-as-you-go USD credits, staked DIEM is capacity you own: the daily allowance refreshes each epoch and does not dilute as network usage grows.
For model rates billed against that allowance, see API Pricing. For wallet pay-per-request without an API key, see x402.

How funding works

API keys spend from the linked Venice account in this order: DIEM, then bundled credits, then USD. When DIEM is the active currency:
  • Your daily allocation equals the amount of DIEM you have staked (1 staked DIEM → $1 of API credit that epoch).
  • Unused DIEM in an epoch does not roll over. The allowance refreshes at 00:00 UTC.
  • Accounts need at least 0.1 staked DIEM before any DIEM balance is spendable.
  • Request costs use the same USD price sheet as pay-as-you-go; DIEM is the settlement currency at a 1:1 dollar rate for that day’s allocation.
Check your current and next-epoch DIEM balance in the dashboard at venice.ai/settings/api, or via the Billing Balance endpoint.

Get DIEM and stake it

Use the token dashboard at venice.ai/token. Connect a Base wallet — do not send tokens directly to a contract address.
1

Acquire VVV or DIEM

Buy VVV or DIEM on a Base DEX such as Aerodrome or Uniswap, or receive DIEM transferred from another wallet.
2

Stake VVV (if minting DIEM)

On venice.ai/token, stake VVV to receive sVVV. Staked VVV earns emissions. The staking contract is 0x321b7ff75154472B18EDb199033fF4D116F340Ff.
3

Mint DIEM from sVVV (optional)

Lock sVVV at the current Mint Rate to mint DIEM. The Mint Rate is how much sVVV is required per DIEM and rises as DIEM supply grows — preview it on the DIEM calculator.Minted DIEM appears in your wallet as an ERC-20. The locked sVVV stays locked until you burn the same amount of DIEM to unlock it.
4

Stake DIEM for API credit

Stake DIEM on the same token dashboard. Each staked DIEM grants $1 per day of Venice API credit for as long as it remains staked.Unstaking DIEM has a 1-day cooldown. Unlocking the sVVV that backed minted DIEM requires burning that DIEM; unstaking the freed sVVV then has a 7-day cooldown.
5

Create or use an API key

Sign in to Venice with the same wallet (Sign-In-With-Ethereum) so the staked DIEM attaches to your account, then create a key from API settings or the API key guide.Autonomous agents can mint a key from a wallet that holds staked VVV — see Autonomous Agent API Key Creation.
Never send VVV or DIEM directly to a contract address. Tokens sent that way cannot be recovered. Always stake through venice.ai/token or a known staking transaction flow.

Use DIEM with the API

Once DIEM is staked and linked to your account, call the API with a normal Bearer key. No extra headers or venice_parameters are required — Venice deducts from DIEM automatically when consumptionCurrency is DIEM.

Check DIEM balance

Example response shape:
List models or usage analytics to see per-request costs in both USD and DIEM — they match at the $1-per-DIEM rate for the day’s allowance. See Billing Usage and Usage Analytics.

Cap spend per key

When creating a key, you can set an epoch consumption limit denominated in diem or usd so a single integration cannot exhaust the full daily allocation. Dashboard keys expose this as Epoch Consumption Limits; Web3-minted keys accept consumptionLimit on POST /api_keys/generate_web3_key.

DIEM vs USD credits vs x402

If a request would exceed remaining DIEM and no USD or bundled credits cover it, the API returns 402 with INSUFFICIENT_BALANCE. Stake more DIEM, wait for the next epoch, or add USD credits in Settings → API.

API Pricing

Per-model rates charged against DIEM or USD.

Token dashboard

Stake VVV, mint DIEM, and stake DIEM for API credit.

Autonomous Agent API Key

Mint an API key from a wallet with staked VVV on Base.

x402 Wallet Auth

Pay per request with USDC when you do not want a long-lived API key.

Billing Balance

Read DIEM and USD balances from the API.

Help Center: Token

Mint rate, cooldowns, yield, and other token FAQs.