docs.vario.lat
This page was machine-translated and is pending human review.

Buying credits

Credits are the consumption unit of the vario Scoring API. When you register you receive 250 welcome credits. When those run out, you can top up by choosing the USD amount you want to load.

ℹ

vario does not store or retain the analyzed text. Each call to the analysis endpoint is stateless and independent.


Pricing and equivalences

$0.150 USD per credit.

ModeCredits per callCost per call
screening1 credit$0.150
fast2 credits$0.300
full3 credits$0.450

Top-up options (amount-based)

Choose how much you want to load; credits are calculated automatically.

Option IDUSD amountCreditsscreening callsfast callsfull calls
top75$75500500250166
top150$1501,0001,000500333
top300$3002,0002,0001,000666
top1000$1,0006,6666,6663,3332,222
customfreecalculated———

For custom, the minimum amount is $10 and the maximum is $5,000.


1. View available options

GET /api/public/checkout/credits/preview

Public endpoint, no authentication required. Returns the available top-up options.

curl https://api.vario.lat/api/public/checkout/credits/preview

Response 200:

{
  "options": [
    { "id": "top75",   "label": "$75",    "amount_usd": 75.0,    "credits_preview": 500,   "status": "available" },
    { "id": "top150",  "label": "$150",   "amount_usd": 150.0,   "credits_preview": 1000,  "status": "available" },
    { "id": "top300",  "label": "$300",   "amount_usd": 300.0,   "credits_preview": 2000,  "status": "available" },
    { "id": "top1000", "label": "$1,000", "amount_usd": 1000.0,  "credits_preview": 6666,  "status": "available" },
    { "id": "custom",  "label": "other",  "amount_usd": null,    "credits_preview": null,  "status": "available" }
  ],
  "current_balance": null,
  "pricing_note": "$0.150 per credit."
}
ℹ

The current_balance field is null on this public endpoint. To view your current balance, use GET /api/v1/api-keys/credits with authentication.


2. Initiate a top-up

POST /api/public/checkout/credits

Initiates the payment process for the selected amount. The endpoint returns a transaction_id used to open the Paddle payment overlay.

Auth: none (public). The tenant_id identifies the buyer.

Request parameters:

FieldTypeRequiredDescription
top_up_idstringYesOption to purchase: "top75", "top150", "top300", "top1000", or "custom".
tenant_idstring (uuid)YesIdentifier of the tenant that will receive the credits.
custom_amount_usdfloatOnly if top_up_id == "custom"Amount in USD (min $10, max $5,000).

Example — fixed option:

curl -X POST https://api.vario.lat/api/public/checkout/credits \
  -H "Content-Type: application/json" \
  -d '{
    "top_up_id": "top300",
    "tenant_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }'

Response 200:

{
  "transaction_id": "txn_01jxabc123def456",
  "top_up_id": "top300",
  "credits": 2000,
  "amount_usd": 300.0
}

Open the payment overlay with the returned transaction_id:

Paddle.Checkout.open({ transactionId: response.transaction_id });

When payment is complete, credits are immediately available in the tenant's balance.

Possible errors:

HTTPDescription
400Invalid top_up_id.
422custom_amount_usd missing, below $10, or above $5,000.
402The tenant does not have a registered payment method.
404Tenant not found.
502Payment provider error.

3. Check current balance

GET /api/v1/api-keys/credits

Returns the available credit balance for the authenticated tenant.

curl https://api.vario.lat/api/v1/api-keys/credits \
  -H "Authorization: Bearer vario_YOUR_API_KEY"

Response 200:

{
  "balance": 2000,
  "call_cost_screening": 1,
  "call_cost_fast": 2,
  "call_cost_full": 3,
  "estimated_calls_remaining_screening": 2000,
  "estimated_calls_remaining_fast": 1000,
  "estimated_calls_remaining_full": 666,
  "pricing_note": "$0.150 per credit."
}

4. Usage history

GET /api/v1/api-portal/usage

Returns the tenant's credit consumption broken down by day.

curl "https://api.vario.lat/api/v1/api-portal/usage?from=2026-06-01&to=2026-06-30" \
  -H "Authorization: Bearer vario_YOUR_API_KEY"

Response 200:

{
  "period": { "from": "2026-06-01", "to": "2026-06-30" },
  "total_credits_used": 1250,
  "total_calls": 520,
  "daily": [
    { "date": "2026-06-01", "credits_used": 45, "calls": 18 },
    { "date": "2026-06-02", "credits_used": 60, "calls": 24 }
  ]
}

Complete flow — top up and verify credits

# 1. View available options
curl https://api.vario.lat/api/public/checkout/credits/preview

# 2. Initiate $300 top-up (2,000 credits)
curl -X POST https://api.vario.lat/api/public/checkout/credits \
  -H "Content-Type: application/json" \
  -d '{"top_up_id": "top300", "tenant_id": "YOUR-TENANT-UUID"}'

# → Open Paddle overlay with the returned transaction_id
# → Complete payment in the overlay

# 3. Verify that credits were credited
curl https://api.vario.lat/api/v1/api-keys/credits \
  -H "Authorization: Bearer vario_YOUR_API_KEY"
The API output is a risk signal, not a legal determination. It does not substitute a lawyer's review and does not constitute evidence before regulators on its own.