{"uid":"cap_nGinvcP1SjsDAIA6UYAC_","slug":"agent-internet-runtime-billing-ticket-prepurchase-b221015e","name":"Agent Internet Runtime - Billing Ticket Prepurchase","description":"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.","url":"https://api.agentinternetruntime.com/v1/billing/tickets","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"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"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sB7_H0cYc8G4SRRKEZZ6f","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Prepays for a batch of AIR API requests and returns a JWT session ticket for discounted bulk access to AIR capabilities","exampleAgentPrompt":"Prepay for 50 extract_webpage requests on Agent Internet Runtime so I can use the cheaper session ticket rate for my bulk scraping job.","exampleUseCases":[{"title":"Bulk web extraction cost savings","prompt":"I need to scrape about 200 product pages from competitor sites today. Buy me a prepaid AIR session ticket so I can do all that extraction at the discounted bulk rate instead of paying full price per request."},{"title":"Prepay for capability discovery queries","prompt":"Before I kick off my research workflow that queries AIR for capabilities across dozens of domains, grab me a session ticket that covers at least 100 requests so we're not burning money on per-call pricing."},{"title":"Batch macro execution access","prompt":"I'm about to run a series of automated actions across multiple websites using AIR — probably 150 or so calls total. Prepurchase a JWT session ticket for that batch so we get the cheaper rate throughout the whole workflow."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:12:26.264Z","isFirstParty":false}