{"uid":"cap_g7q0DWkO8_0qoOz1Xcsfx","slug":"api-jega-digital-99649da8","name":"JEGA LLM Token Shrinker","description":"Deterministic LLM Token Shrinker.","url":"https://api.jega.digital/api/compress","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"raw_text":{"type":"string","description":"The raw text string to compress"}}},"responseSchema":{"type":"object","required":["engine","status","metrics","compressed_text"],"properties":{"engine":{"type":"string"},"status":{"type":"string"},"metrics":{"type":"object","required":["savings_percentage","original_estimated_tokens","compressed_estimated_tokens"],"properties":{"savings_percentage":{"type":"string"},"original_estimated_tokens":{"type":"number"},"compressed_estimated_tokens":{"type":"number"}}},"compressed_text":{"type":"string"}}},"example":{"request":{"raw_text":"The quarterly earnings report for fiscal year 2024 demonstrates significant revenue growth across all major business segments, particularly in the cloud infrastructure and enterprise software divisions, which together accounted for nearly sixty percent of total consolidated revenue"},"response":{"engine":"Jega Token Minimizer v1","status":"success","metrics":{"savings_percentage":"0.0%","original_estimated_tokens":70,"compressed_estimated_tokens":70},"compressed_text":"The quarterly earnings report for fiscal year 2024 demonstrates significant revenue growth across all major business segments, particularly in the cloud infrastructure and enterprise software divisions, which together accounted for nearly sixty percent of total consolidated revenue"}},"exampleRequest":{"raw_text":"The quarterly earnings report for fiscal year 2024 demonstrates significant revenue growth across all major business segments, particularly in the cloud infrastructure and enterprise software divisions, which together accounted for nearly sixty percent of total consolidated revenue"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","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_azW3LhpjaHzLTGhuPJLd1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically compresses raw text to reduce token count for LLM context windows","exampleAgentPrompt":"Can you compress this text to shrink its token count before I send it to the LLM: 'The quarterly earnings report for fiscal year 2024 demonstrates significant revenue growth across all major business segments, particularly in the cloud infrastructure and enterprise software divisions, which together accounted for nearly sixty percent of total consolidated revenue'?","exampleUseCases":null,"resultDescription":"Returns a compressed version of the input text with reduced token count, preserving semantic meaning while minimizing characters and tokens consumed in an LLM context window.","failureModes":["Missing or empty raw_text field returns validation error","Extremely long input may exceed processing limits","Non-text or binary input may produce unexpected output","Payment failure via x402 protocol results in 402 response"],"whenToPreferThis":"Use this endpoint when you need to deterministically reduce token usage before sending text to an LLM, especially in cost-sensitive pipelines, RAG ingestion workflows, or when fitting content into tight context windows. Prefer this over semantic summarization when you need consistent, repeatable compression rather than AI-generated paraphrasing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:25:27.068Z","isFirstParty":false}