{"uid":"cap_E34gdpZXzWKl8sVqMC3Se","slug":"gpt-5-5-sub2api-metered-invoice-generator-2735cd28","name":"GPT-5.5 Sub2API Metered Invoice Generator","description":"GPT-5.6 Luna API Base USDC and OpenAI-compatible x402 chat: one request for $0.00293, paid by browser wallet or a quote-first agent fallback.","url":"https://gpt55.558686.xyz/v1/tools/sub2api-official-metered-invoice","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tier":{"enum":["default","flex","priority"],"type":"string"},"model":{"type":"string","maxLength":80},"modelId":{"type":"string","maxLength":80},"model_id":{"type":"string","maxLength":80},"requestId":{"type":"string","maxLength":160},"request_id":{"type":"string","maxLength":160},"serviceTier":{"enum":["default","flex","priority"],"type":"string"},"input_tokens":{"type":"integer","minimum":0},"promptTokens":{"type":"integer","minimum":0},"service_tier":{"enum":["default","flex","priority"],"type":"string"},"contextTokens":{"type":"integer","minimum":0},"output_tokens":{"type":"integer","minimum":0},"prompt_tokens":{"type":"integer","minimum":0},"context_tokens":{"type":"integer","minimum":0},"rateMultiplier":{"type":"number","minimum":0},"cacheReadTokens":{"type":"integer","minimum":0},"rate_multiplier":{"type":"number","minimum":0},"completionTokens":{"type":"integer","minimum":0},"cache_read_tokens":{"type":"integer","minimum":0},"completion_tokens":{"type":"integer","minimum":0},"imageOutputTokens":{"type":"integer","minimum":0},"cacheCreationTokens":{"type":"integer","minimum":0},"cached_input_tokens":{"type":"integer","minimum":0},"image_output_tokens":{"type":"integer","minimum":0},"cache_creation_tokens":{"type":"integer","minimum":0}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"sub2apiOfficialMeteredInvoice","summary":"Generated text."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.066667","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.066667/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.066667","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.066667","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TcAyfx-gNy85AksEO16MZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.066667","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a buyer-ready postpaid invoice JSON for GPT-5.5 usage by computing costs across input, output, cache creation, cache read, image output, service tier, long-context, and rate multiplier fields using the read-only sub2api pricing formula.","exampleAgentPrompt":"Calculate my GPT-5.5 invoice for a priority-tier request with 12000 input tokens, 800 output tokens, 3000 cache creation tokens, 1500 cache read tokens, and 200 image output tokens using a rate multiplier of 1.2 — give me the full machine-readable invoice breakdown.","exampleUseCases":null,"resultDescription":"Returns a machine-readable invoice JSON containing line-item costs for each token category (input, output, cache creation, cache read, image output), service tier adjustments, long-context surcharges, rate multiplier applied totals, and a final total charge in USD.","failureModes":["Invalid token counts (negative integers) return validation errors","Unsupported service_tier enum value returns 422","Exceeding 700000 input characters returns a limit-exceeded error","Missing required token fields may result in zero-cost invoice or error","Payment of less than $0.066667 USDC via x402 results in 402 rejection"],"whenToPreferThis":"Use this endpoint when you need a deterministic, read-only cost calculation for GPT-5.5 usage across all pricing dimensions (input, output, caching, image, tier, multiplier) without triggering any sub2api state changes — ideal for usage-metered x402 billing pipelines that need machine-readable invoice JSON after a completion call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:52:27.828Z","isFirstParty":false}