← Back to QuickAI

API Documentation

Base URL: https://quickaiapi.com

Authentication

All AI endpoints require an API key in the x-api-key header.

curl -H "x-api-key: sk_your_key" https://quickaiapi.com/ai/summarize

Create Organization

POST /orgs
Content-Type: application/json

{"name": "MyApp"}

Response:
{"org_id": "org_xxx", "api_key": "sk_xxx"}

AI Endpoints

All endpoints accept {"input": "your text"} and return {"output": "...", "remaining": 99}

EndpointDescriptionExtra Params
POST /ai/summarizeConcise summary-
POST /ai/rewriteProfessional rewrite-
POST /ai/translateLanguage translationtarget
POST /ai/extractStructured data extractionReturns JSON
POST /ai/classifyText classification-
POST /ai/keywordsKeyword extraction-
POST /ai/grammarGrammar correction-
POST /ai/sentimentSentiment analysisReturns JSON
POST /ai/tldrOne-sentence summary-
POST /ai/titleGenerate headlinesReturns JSON array
POST /ai/emailEmail from bullet pointstone
POST /ai/qaQ&A from contextquestion (required)

Check Usage

GET /usage
x-api-key: sk_your_key

Response:
{"plan":"free","limit":1000,"used":42,"remaining":958,"by_endpoint":{"/ai/summarize":20}}

Upgrade to Pro

POST /billing/checkout
{"orgId": "org_xxx"}

Response:
{"url": "https://checkout.stripe.com/..."}

Rate Limits

Free: 500 requests/month. Pro: 50,000 requests/month. Scale: 200,000 requests/month. Returns 402 when limit reached.