{"uid":"cap_D2qsWD9vtdLB4B860HX2y","slug":"gpt-5-5-sub2api-balance-ledger-simulator-adaf5a46","name":"GPT-5.5 sub2api Balance Ledger Simulator","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-balance-ledger-simulator","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},"balanceUsd":{"type":"number","minimum":0},"request_id":{"type":"string","maxLength":160},"balance_usd":{"type":"number","minimum":0},"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},"currentBalanceUsd":{"type":"number","minimum":0},"imageOutputTokens":{"type":"integer","minimum":0},"minimumBalanceUsd":{"type":"number","minimum":0},"cacheCreationTokens":{"type":"integer","minimum":0},"cached_input_tokens":{"type":"integer","minimum":0},"current_balance_usd":{"type":"number","minimum":0},"image_output_tokens":{"type":"integer","minimum":0},"minimum_balance_usd":{"type":"number","minimum":0},"cache_creation_tokens":{"type":"integer","minimum":0},"lowBalanceThresholdUsd":{"type":"number","minimum":0},"low_balance_threshold_usd":{"type":"number","minimum":0}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"sub2apiBalanceLedgerSimulator","summary":"Generated text."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_81aafFmqQVe_VZ0tgj6C9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates GPT-5.5 API usage cost using sub2api pricing and applies the debit to a prepaid balance ledger, returning debit amount, remaining balance, low-balance policy, and idempotency key.","exampleAgentPrompt":"Simulate a sub2api GPT-5.5 billing debit for a default-tier request using model 'gpt-5.5', 1200 input tokens, 800 output tokens, 400 cache read tokens, and a current balance of $5.00, with a low-balance threshold of $1.00 — give me the debit, remaining balance, and an exportable ledger JSON.","exampleUseCases":null,"resultDescription":"Returns the computed cost debit in USD, the balance remaining after deduction, the low-balance policy status, an idempotency key for the request, and a complete exportable JSON record suitable for wallet or API-credit accounting systems.","failureModes":["Insufficient or negative balance may trigger low-balance policy flags but not necessarily an error","Invalid model ID returns a pricing lookup failure or default rate fallback","Malformed token counts (negative integers) fail schema validation","Missing required fields like balanceUsd or token counts result in 400 bad request","Rate multiplier of 0 may produce a zero-cost debit that bypasses low-balance logic"],"whenToPreferThis":"Use this endpoint when you need to simulate or record GPT-5.5 usage billing against a prepaid credit balance using sub2api's official pricing model, especially when building wallet systems, API credit dashboards, or billing reconciliation tools that need idempotent, exportable ledger entries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:53:06.384Z","isFirstParty":false}