# Agent Internet Runtime - Billing Ticket Prepurchase

> Agent Internet Runtime - Billing Ticket Prepurchase is a paid API for AI agents from api.agentinternetruntime.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-14).

Prepays for a batch of AIR API requests and returns a JWT session ticket for discounted bulk access to AIR capabilities

## Facts

- Endpoint: POST https://api.agentinternetruntime.com/v1/billing/tickets
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-internet-runtime-billing-ticket-prepurchase-b221015e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nGinvcP1SjsDAIA6UYAC_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-internet-runtime-billing-ticket-prepurchase-b221015e -d '<json body>'
```

Example prompt: Prepay for 50 extract_webpage requests on Agent Internet Runtime so I can use the cheaper session ticket rate for my bulk scraping job.

## When to prefer this

Use this endpoint when you plan to make 10 or more AIR API calls and want to reduce per-request cost via prepaid session tickets (e.g. $0.003/request via ticket vs $0.01/request direct). Ideal before running batch web extraction, capability queries, or macro execution workflows where cost efficiency matters.

## Known failure modes

- Insufficient USDC balance causes payment failure and no ticket is issued
- Quantity below minimum of 10 or above maximum of 10000 returns validation error
- Invalid intent enum value returns 400 bad request
- Payment protocol (x402) failure results in no ticket and no charge
- Expired or malformed JWT in subsequent use of the returned ticket

## How this service works

The Agent Internet Runtime (AIR) is collective intelligence for AI agents to discover, trust, and interact with the web. Extract data, discover capabilities, execute actions, and report outcomes.

## Output

Returns a JSON object containing a JWT session ticket string, the intent type prepaid, the quantity of requests purchased, an expiration timestamp, the USDC amount charged, and a success boolean. The JWT ticket can then be used in subsequent AIR API calls to access prepaid discounted pricing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "intent": {
   "enum": [
    "run_query",
    "extract_webpage",
    "query_capabilities",
    "batch_extract",
    "query_sdk_capabilities",
    "batch_sdk",
    "execute_sdk_macro",
    "query_agentjson"
   ],
   "type": "string",
   "description": "API intent to prepay"
  },
  "quantity": {
   "type": "integer",
   "maximum": 10000,
   "minimum": 10,
   "description": "Number of requests to prepay"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "http",
 "schema": {
  "type": "object",
  "properties": {
   "intent": {
    "type": "string"
   },
   "ticket": {
    "type": "string",
    "description": "JWT session ticket for prepaid API access"
   },
   "success": {
    "type": "boolean"
   },
   "quantity": {
    "type": "number"
   },
   "expires_at": {
    "type": "string"
   },
   "amount_paid_usdc": {
    "type": "number"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-internet-runtime-billing-ticket-prepurchase-b221015e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentinternetruntime.com](https://www.zero.xyz/host/api.agentinternetruntime.com/llms.txt)
