{"uid":"cap_BNDkPWq9d_0CBecVmvVB-","slug":"context-condense-api-a6d18e4b","name":"Context Condense API","description":"Condense text for token budgets: retained-fact list + dropped-content log + before/after token counts (OpenRouter free-first + approx counter). Audit loss.","url":"https://x402-v2-mint-context-condense.vercel.app/v1/context-condense?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"description":"Source text to condense"},"content":{"type":"string","maxLength":20000},"max_facts":{"type":"integer","default":12,"maximum":40,"minimum":1},"request_id":{"type":"string"},"target_tokens":{"type":"integer","maximum":4000,"minimum":20}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"context-condense","charged":true,"summary":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OHEdCV8pzP1vI2foBY__t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Condenses long text into a retained-fact list with a dropped-content log and before/after token counts to help AI agents stay within token budgets","exampleAgentPrompt":"Condense this 3000-word article into at most 15 key facts and keep it under 400 tokens — I need to see a log of what was dropped so I can audit the information loss.","exampleUseCases":[{"title":"Trim research notes for agent memory","prompt":"I have a 5000-word research document and I need it condensed to no more than 20 facts and under 600 tokens — give me the retained fact list and a log of everything that got dropped so I can check what was lost."},{"title":"Fit support ticket history into prompt","prompt":"Take this long customer support conversation and condense it down to the 10 most important facts within 300 tokens — I need to see before and after token counts so I know how much I saved."},{"title":"Compress meeting transcript for LLM context","prompt":"This meeting transcript is way too long for my context window — can you condense it to under 500 tokens with up to 12 key facts, and show me what got dropped so I can verify nothing critical was removed?"}],"resultDescription":"Returns a JSON object with ok status, a list of retained facts extracted from the source text, a log of dropped content for auditability, and before/after token counts showing how much the text was compressed.","failureModes":["Text exceeds 20,000 character limit — request rejected with validation error","target_tokens set below 20 or above 4000 — request rejected","max_facts outside 1-40 range — request rejected","OpenRouter upstream failure causing condensation to fail","Payment not processed (x402 protocol failure) — 402 response returned","Empty or missing text/content field — no condensation performed"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to fit a long document or context into a strict token budget while retaining an auditable list of key facts and a log of what was dropped. It is especially useful for agentic workflows that need transparent information-loss tracking, unlike simple summarization APIs that give no visibility into what was omitted. Best when you need both compression and auditability in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:30:27.091Z","isFirstParty":false,"canonicalSlug":"context-condense-api-a6d18e4b"}