Skip to content

Billing

Get operation pricing for all tools. No authentication required.

Terminal window
curl https://agents.systemr.ai/v1/billing/pricing

Response (200):

{
"prices": {
"position_sizing": "0.003",
"risk_check": "0.004",
"basic_eval": "0.10",
"full_eval": "0.50",
"comprehensive_eval": "1.00",
"pre_trade_gate": "0.01",
"assess_trading_system": "2.00"
},
"currency": "USDC"
}

Get the agent’s current compute credit balance.

Terminal window
curl https://agents.systemr.ai/v1/billing/balance \
-H "X-API-Key: sr_agent_..."

Response (200):

{
"agent_id": "agt_a1b2c3d4",
"balance": "42.50",
"is_low": false,
"updated_at": "2026-03-25T14:30:00Z"
}

Record a USDC deposit to the agent’s balance.

Terminal window
curl -X POST https://agents.systemr.ai/v1/billing/deposit \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"amount": "100.00",
"funding_path": "direct_transfer",
"on_chain_tx_hash": "5xYz..."
}'
FieldTypeRequiredDescription
amountstringYesDeposit amount in USDC.
funding_pathstringYesonramp, direct_transfer, or x402.
on_chain_tx_hashstringNoOn-chain transaction hash.

Response (200): Balance response with updated balance.


Credit balance from a verified on-chain OSR token transfer.

Terminal window
curl -X POST https://agents.systemr.ai/v1/billing/deposit-osr \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{"tx_signature": "5xYz..."}'

Response (200):

{
"agent_id": "agt_a1b2c3d4",
"osr_amount": "10000",
"usd_credited": "50.00",
"rate_per_token": "0.005",
"is_presale_buyer": false,
"balance_after": "92.50",
"tx_id": "tx_abc123"
}

Credit balance from a verified on-chain SOL transfer. Converted at live CoinGecko price.

Terminal window
curl -X POST https://agents.systemr.ai/v1/billing/deposit-sol \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{"tx_signature": "5xYz..."}'

Response (200):

{
"agent_id": "agt_a1b2c3d4",
"currency": "SOL",
"amount": "1.000000000",
"sol_price_usd": "140.25",
"compute_credits": "140.25",
"balance_after": "182.75",
"tx_id": "tx_def456",
"tx_signature": "5xYz..."
}

Credit balance from a verified on-chain USDC transfer. 1:1 USD conversion.

Terminal window
curl -X POST https://agents.systemr.ai/v1/billing/deposit-usdc \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{"tx_signature": "5xYz..."}'

Response (200):

{
"agent_id": "agt_a1b2c3d4",
"currency": "USDC",
"amount": "100.00",
"compute_credits": "100.00",
"balance_after": "142.50",
"tx_id": "tx_ghi789",
"tx_signature": "5xYz..."
}

Credit balance from a verified on-chain USDT transfer. 1:1 USD conversion.

Same request/response format as deposit-usdc, with "currency": "USDT".


Credit balance from a verified on-chain PYUSD transfer. 1:1 USD conversion.

Same request/response format as deposit-usdc, with "currency": "PYUSD".


Get recent billing transactions.

Terminal window
curl "https://agents.systemr.ai/v1/billing/transactions?limit=20" \
-H "X-API-Key: sr_agent_..."
ParameterTypeDefaultDescription
limitint100Max transactions to return.

Response (200):

{
"transactions": [
{
"tx_id": "tx_abc123",
"type": "consumption",
"amount": "0.01",
"balance_after": "42.49",
"created_at": "2026-03-25T14:30:00Z",
"operation": "pre_trade_gate",
"funding_path": null
},
{
"tx_id": "tx_xyz789",
"type": "deposit",
"amount": "50.00",
"balance_after": "42.50",
"created_at": "2026-03-25T10:00:00Z",
"operation": null,
"funding_path": "direct_transfer"
}
],
"count": 2
}

Get usage summary grouped by operation type.

Terminal window
curl https://agents.systemr.ai/v1/billing/usage \
-H "X-API-Key: sr_agent_..."

Response (200):

{
"agent_id": "agt_a1b2c3d4",
"operations": {
"pre_trade_gate": {
"count": 45,
"total_cost": "0.45"
},
"calculate_position_size": {
"count": 120,
"total_cost": "0.36"
},
"run_monte_carlo": {
"count": 8,
"total_cost": "0.064"
}
}
}