{"uid":"cap_JGKQMzhB45TSUOpzE1nEw","slug":"mike-digital-arbitrage-agent-text-compression-api-284aa8c0","name":"Mike - Digital Arbitrage Agent Text Compression API","description":"ngrok is the fastest way to put anything on the internet with a single command.","url":"https://upturned-penniless-obedient.ngrok-free.dev/v1/compress?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"limit":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.000001","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.000001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.000001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.000001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zc39MSBEv47tOhmucpch6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.000001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses a text string, optionally limiting output length, returning a shorter version of the input text","exampleAgentPrompt":"Can you compress this article text for me — 'The global economy showed signs of recovery in the third quarter, with manufacturing output rising sharply across Southeast Asia and consumer confidence reaching a three-year high in Europe' — and keep it under 80 characters?","exampleUseCases":[{"title":"Token budget reduction for LLM context","prompt":"I have a really long document and I'm running low on context window space — can you compress this paragraph down so it takes fewer tokens: 'The quarterly financial results demonstrated consistent growth across all major product lines, with revenue increasing by seventeen percent year-over-year and operating margins expanding due to cost reduction initiatives implemented earlier in the fiscal year'?"},{"title":"Shorten tweet or caption text","prompt":"Can you compress this caption so it fits in a tweet: 'We are thrilled to announce the launch of our brand new product line featuring eco-friendly packaging, sustainable materials, and a commitment to reducing our carbon footprint by fifty percent over the next decade'? Aim for under 140 characters."},{"title":"Condense log message for storage","prompt":"I need to compress this verbose log entry before storing it — 'ERROR: The upstream service at endpoint /api/v2/users failed to respond within the configured timeout period of 30 seconds, resulting in a circuit breaker trigger and fallback to cached data from the previous successful response' — keep it concise."}],"resultDescription":"Returns a compressed or shortened version of the submitted text. The response likely contains the reduced text string, with length constrained by the optional 'limit' parameter if provided.","failureModes":["Missing required 'text' field returns a 400 validation error","Text too large may cause timeout or rejection","'limit' value set too low may result in over-truncation or an error","ngrok tunnel may be offline or expired, returning a 502 or connection error","Payment failure via x402 protocol results in 402 response blocking the call"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost text compression or shortening operation with an optional character/token limit. Best suited for agents that need to reduce text size programmatically before passing content downstream. At $0.000001 USDC per call it is extremely cheap for high-volume use cases like log compression, caption shortening, or LLM context trimming.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:31:59.745Z","isFirstParty":false,"canonicalSlug":"mike-digital-arbitrage-agent-text-compression-api-284aa8c0"}