{"uid":"cap_0oL_utJxy-2hy3HoOhoLq","slug":"fastapi-online-text-shortener-6072f0ea","name":"fastapi.online Text Shortener","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/shorten-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"minLength":1},"target_words":{"type":"integer","maximum":5000,"minimum":5}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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_3bAImhZzKfP9x-rEnQuZE","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":"Condenses a given text down to a specified target word count using AI summarization","exampleAgentPrompt":"Can you shorten this 800-word article I wrote to about 150 words? Here's the text: [paste text]","exampleUseCases":[{"title":"Condense a long report for executives","prompt":"I have this 2,000-word quarterly report and I need to cut it down to about 300 words for our executive summary — can you shorten it while keeping the key points?"},{"title":"Trim a blog post to fit a newsletter","prompt":"This blog post is way too long for my email newsletter — can you shorten it to around 100 words so it fits nicely as a teaser?"},{"title":"Compress product description for a listing","prompt":"I wrote a long product description but I only have room for about 50 words on this product card — can you condense this text down to 50 words?"}],"resultDescription":"Returns a shortened version of the input text reduced to approximately the specified target word count, preserving the key meaning and information of the original.","failureModes":["Text too long — exceeds 20,000 character limit","Target word count below minimum of 5 or above maximum of 5,000","Empty or missing text input","Payment not provided or insufficient USDC balance","Model inference timeout on very long inputs"],"whenToPreferThis":"Use this endpoint when you need to reduce a specific piece of text to a precise target word count and want a self-hosted AI model to do the summarization without sending data to major cloud providers. Suitable for lightweight, low-cost per-call text compression tasks where no API key signup is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:14:15.048Z","isFirstParty":false}