POST
$1.15 default
/api/buyDescription
OpenAI-compatible LLM inference and chat completions via discounted Venice API credits. Pay USDC to receive a live Venice.ai API key for /api/v1 models, chat, images, audio, video, and embeddings. Same-Day credits are 30–90% below Venice direct and expire at 23:59 UTC; Prepaid API Keys support recurring agent jobs.
Pricing
$1.15 default
Request schema
{
"additionalProperties": false,
"properties": {
"dailyReservedUsd": {
"description": "Daily credit reserve amount in Venice API credits per UTC day. Required when purchaseMode=\"prepaid\". Must fit unreserved capacity for the start date and be at least one-seventh of the reserve balance.",
"type": "number"
},
"paymentSessionId": {
"description": "Opaque session ID returned in a prior 402 response; echo it back on retry.",
"type": "string"
},
"purchaseMode": {
"description": "Use \"spot\" for Same-Day Credits or \"prepaid\" for a Prepaid API Key with prepaid balance and daily credit reserve.",
"enum": [
"spot",
"prepaid"
],
"type": "string"
},
"reserveStart": {
"description": "Prepaid API Key daily credit reserve start. New Prepaid API Keys start tomorrow UTC; use Same-Day Credits for work today.",
"enum": [
"tomorrow"
],
"type": "string"
},
"topUpKeyLast6": {
"description": "Optional last 6 characters of a wallet-owned active Prepaid API Key to top up.",
"type": "string"
},
"usdPaid": {
"description": "Discounted USD amount to pay for Venice API credits. Minimum is based on receiving at least $0.50 in credits after current time-based pricing.",
"minimum": 0.01,
"type": "number"
}
},
"required": [
"usdPaid"
],
"type": "object"
}Example response
{
"purchase": {
"creditsIssuedUsd": 2,
"dates": [
"2026-04-25"
],
"discountMultiplier": 0.5,
"expiresAt": "2026-04-25T23:59:59.000Z",
"id": "purchase_01HEXAMPLE",
"ids": [
"purchase_01HEXAMPLE"
],
"purchaseMode": "spot",
"settlementTxHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"usdPaid": 1
},
"success": true,
"veniceApiKey": "vn-...live-key...",
"veniceKeyLast6": "abc123"
}