AI Text API

Summarize, rewrite, translate, extract keywords, and analyze sentiment. One endpoint, six powerful actions.

6 Actions
Built-in
<3s
Response
100+ langs
Translation

How It Works

Step 1
Send Text
POST your text with an action (summarize, rewrite, etc.)
Step 2
AI Processes
Our AI model processes your text in seconds
Step 3
Get Result
Receive the transformed text as JSON

Playground

3 free requests/day without API key

Select an action and click Process

API Documentation

Base URL
https://ai-text.vercel.app
Authentication
X-API-Key: your_key (header) or ?key=your_key (query)Get your free key below
POST/api/text

Process text with AI. Supports summarize, rewrite, translate, keywords, sentiment, and fix actions.

Request Body (JSON)

FieldTypeRequiredDescription
textstringyesInput text (max 10,000 characters)
actionstringyessummarize, rewrite, translate, keywords, sentiment, fix
target_languagestringtranslateTarget language for translation
tonestringnoTone for rewrite (professional, casual, formal)
max_lengthnumbernoMax words for summarize. Default: 150

Response

{
  "action": "summarize",
  "result": "AI is transforming industries by automating tasks and enabling new capabilities across healthcare and finance."
}

Error Responses

// 400 — Bad Request
{ "error": "Missing 'text' field" }
{ "error": "Invalid action. Valid: summarize, rewrite, translate, keywords, sentiment, fix" }

// 401 — Unauthorized
{ "error": "Invalid API key" }

// 429 — Rate Limited
{ "error": "Daily limit reached. Upgrade your plan." }

// 502 — AI Error
{ "error": "AI service error: ..." }

Get API Key

Get a free API key for 6 requests/day. No credit card required.

Usage

  • Add header: X-API-Key: your_key
  • Or query param: ?key=your_key

Limits

  • Playground (no key): 3 req/day
  • Free tier (with key): 6 req/day
  • Paid plans: see pricing below

Pricing

Start free. Pay only when you need more.

Free
$0
  • 6 requests/day
  • All 6 actions
  • 10K char limit
Starter
🚀 Launch Price
$19$9/mo
  • 100 requests/day
  • All 6 actions
  • Priority
Business
🚀 Launch Price
$149$79/mo
  • 2,000 requests/day
  • All 6 actions
  • Priority support