{"uid":"cap_kedkgHA8ylNGmoBXnl5lE","slug":"pagos-andreax-dev-prompt-compressor-ec67002e","name":"pagos.andreax.dev Prompt Compressor","description":"Comprime un prompt a lenguaje denso y devuelve la versión con menos tokens (ahorro típico 20-40%). Úsalo ANTES de enviar prompts a cualquier LLM para bajar el costo de tokens sin perder significado. input=texto a comprimir.","url":"https://pagos.andreax.dev/api/taller/peaje/comprimir","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Texto/prompt a comprimir"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G-gv039RQaEs_x2TN386g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses a text prompt into a denser, lower-token equivalent, typically achieving 20-40% token savings without significant loss of meaning.","exampleAgentPrompt":"Before you send this prompt to GPT, compress it to use fewer tokens — here's the text: 'You are a helpful assistant that specializes in customer support. Always respond politely and concisely. If you do not know the answer, say so clearly and offer to escalate to a human agent.'","exampleUseCases":[{"title":"Cut LLM API costs on long system prompts","prompt":"Compress this system prompt before you send it to GPT-4 so I spend fewer tokens: 'You are an expert financial advisor with 20 years of experience. Always cite sources, be conservative with recommendations, and remind users this is not official financial advice.'"},{"title":"Optimize high-volume chatbot prompts","prompt":"I'm running thousands of chatbot calls per day and my token bills are huge — compress this prompt template so it uses 20-40% fewer tokens without losing the meaning: 'Please analyze the following customer complaint, identify the root cause, suggest a resolution, and rate the urgency from 1 to 5.'"},{"title":"Pre-process RAG context before LLM call","prompt":"Compress this retrieved document excerpt before I inject it into my LLM prompt, to save on tokens: 'The quarterly earnings report shows revenue increased by 12% year-over-year driven primarily by growth in the enterprise segment and international markets, with operating margins improving to 18.4%.'"}],"resultDescription":"Returns a compressed version of the input text, semantically equivalent but with fewer tokens — typically 20-40% shorter — suitable for direct use as a prompt or context in any LLM API call.","failureModes":["Missing required 'input' query parameter returns an error","Very short inputs may yield little or no compression","Highly structured or code-heavy inputs may compress poorly","Network or payment (x402) authorization failures return 402 or 5xx errors","Malformed GET request may result in 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need to reduce token costs before calling any LLM and want a simple, cheap preprocessing step. Ideal for high-volume pipelines, long system prompts, or RAG context injection where token budgets matter. Prefer this over manually editing prompts when automation and cost control are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:34.151Z","isFirstParty":false}