Back to articles
TextAI API: Pay-per-use Text Intelligence with USDC Payments on Solana
How-ToTools

TextAI API: Pay-per-use Text Intelligence with USDC Payments on Solana

via Dev.toSébastien LOPEZ

I built a small text-processing API that charges in USDC on Solana instead of monthly subscriptions. Here's the idea and how to use it. What it does TextAI API exposes three endpoints: /summarize — condenses long text into a short summary (10 credits) /keywords — extracts key topics from text (5 credits) /translate — translates text to a target language (15 credits) Base URL: https://consider-centers-vids-decorative.trycloudflare.com ⚠️ This URL is a temporary tunnel while we finalize permanent hosting. It will be updated soon. Quick start (no wallet needed) 1. Create a free API key — includes 100 demo credits (~10 summarize calls): curl -X POST https://consider-centers-vids-decorative.trycloudflare.com/keys/create Returns: { "apiKey" : "sk_..." , "credits" : 100 , "demo" : true , "message" : "100 free demo credits included" } 2. Summarize text (10 credits): curl -X POST https://consider-centers-vids-decorative.trycloudflare.com/summarize \ -H "Authorization: Bearer sk_YOUR_KEY" \ -H "

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles