{"uid":"cap_UA3FaImjeI4l6e_wDmQuL","slug":"fastapi-online-expand-text-aa6deb80","name":"fastapi.online — Expand Text","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/expand-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8000,"minLength":1},"target_words":{"type":"integer","maximum":5000,"minimum":10}}},"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_AyniY-1Qbvs8Gy5wUAdr6","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":"Expands a short piece of text to a target word count using AI-powered writing assistance","exampleAgentPrompt":"Can you expand this product description to about 400 words? Here's what I have: 'Handcrafted leather wallet, slim design, holds 6 cards, available in brown and black.'","exampleUseCases":[{"title":"Blog post word count boost","prompt":"I've written a 150-word intro for my blog post but my editor wants at least 600 words — can you expand it? Here's the text: 'Remote work has transformed how we think about productivity. Teams are now spread across time zones, and communication tools have become mission-critical. But not every company is ready for this shift.'"},{"title":"Academic essay padding","prompt":"My assignment needs to be 1000 words but my draft is only 200 words — can you expand it to hit the 1000-word target? Draft: 'Climate change is one of the most pressing issues of our time. Human activities, especially fossil fuel combustion, are the primary drivers. Urgent policy action is needed at both local and global levels.'"},{"title":"Marketing copy elaboration","prompt":"Expand this short tagline into a 250-word marketing blurb for our landing page: 'MindfulMate is a meditation app that helps busy professionals find calm in under 5 minutes a day.'"}],"resultDescription":"Returns an AI-generated longer version of the input text that attempts to preserve the original meaning and tone while expanding it toward the requested target word count. The output is plain prose that elaborates on the original content with additional detail, explanation, or supporting sentences.","failureModes":["Input text missing or empty — returns validation error","target_words below minimum of 10 or above maximum of 5000 — returns validation error","text exceeds 8000 character limit — request rejected","Payment not provided or insufficient — 402 Payment Required","AI model temporarily unavailable — 503 error","Generated text may not precisely hit the target word count","Output quality may degrade for very large expansion ratios (e.g. 10-word input → 5000-word output)"],"whenToPreferThis":"Choose this endpoint when you need to programmatically expand short text to a specific word count without requiring a full chat-based LLM call. It's useful for content pipelines where drafts need to meet minimum length requirements, or for agents automating content generation at scale. At $0.001 per call with no signup required (pay with crypto), it's cost-effective for high-volume text elaboration tasks. Prefer this over a general chat endpoint when the task is purely text expansion with a defined target length.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:57:38.638Z","isFirstParty":false}