{"uid":"cap_gq1qJOVhTzyEVcOPoHFs3","slug":"gate402-text-minifier-0e3d9635","name":"gate402 Text Minifier","description":"Compress text: strip filler, collapse JSON, densify prose. Cuts upstream LLM token spend ~40%.","url":"https://gate402.app/v1/minify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to compress"},"format":{"enum":["auto","plain","markdown","json"],"type":"string"},"aggressive":{"type":"boolean"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n76pscNvaWcTKcCX0GeLk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses text by stripping filler words, collapsing JSON, and densifying prose to reduce LLM token consumption by ~40%.","exampleAgentPrompt":"Minify this JSON payload aggressively before I send it to the LLM — use gate402's text compressor so I can cut my token costs: {\"user\":\"Alice\",\"status\":\"active\",\"preferences\":{\"theme\":\"dark\",\"notifications\":true,\"language\":\"en\"}}","exampleUseCases":[{"title":"Shrink large prompt before LLM call","prompt":"Before you send this 3,000-word research summary to GPT-4, run it through the text minifier with aggressive mode on to strip filler and cut token costs as much as possible."},{"title":"Collapse verbose API response JSON","prompt":"This JSON response from the database API is huge — can you compress it using gate402's minifier with format set to JSON and aggressive mode enabled before we pass it downstream?"},{"title":"Densify markdown documentation chunk","prompt":"I need to embed this markdown documentation page but it's way too long — minify it with format markdown so I can fit more context into my vector store without losing the key information."}],"resultDescription":"Returns compressed text with filler stripped, JSON collapsed, and prose densified. Expected to reduce token count by approximately 40% compared to the original input, preserving semantic content.","failureModes":["Empty or missing text field returns validation error","Extremely short text may see negligible compression","Aggressive mode on structured data may strip meaningful whitespace or field names","Malformed JSON passed with format=json may cause parsing errors","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need to reduce LLM input token costs before forwarding text, JSON, or markdown to a large language model. Particularly useful in agentic pipelines where large documents, API responses, or accumulated context must fit within token limits or minimize per-call costs. Prefer this over manual truncation when semantic preservation matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:06.169Z","isFirstParty":false}