Bearer Auth
Secure API key authentication
JSON API
RESTful with JSON payloads
Rate Limited
100 req/min on free tier
Global CDN
Low-latency worldwide
Quick Start
JavaScript / TypeScript
// Install the SDK
npm install @anseri/api-client
// Initialize
import { AnseriClient } from '@anseri/api-client';
const client = new AnseriClient({
apiKey: 'gj_your_api_key_here',
});
// Submit content for processing
const job = await client.submissions.create({
title: 'My Article',
content: 'Your article text here...',
formats: ['video', 'podcast', 'translation'],
targetLanguages: ['es', 'fr', 'de'],
});
// Check status
const status = await client.jobs.get(job.id);
console.log(status.progress); // 0-100cURL
curl -X POST https://api.anseri.ai/api/submissions \
-H "Authorization: Bearer gj_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "My Article",
"sourceUrl": "https://example.com/article",
"formats": ["video", "podcast"],
"options": {
"videoStyle": "professional",
"voiceId": "alloy"
}
}'Authentication
All API requests require a Bearer token in the Authorization header. Generate API keys from your dashboard settings.
Authorization: Bearer gj_your_api_key_hereKeep your API keys secret. Never expose them in client-side code. Use environment variables in production.
API Endpoints
Content
POST
/api/content/fetch-urlPOST
/api/submissionsGET
/api/jobs/:idGET
/api/projects/:idGET
/api/projects/:id/download/:contentIdVideo
POST
/api/video-converter/convertGET
/api/video-converter/jobs/:idGET
/api/video-converter/formatsTranslation
POST
/api/text-translator/translatePOST
/api/text-translator/detectGET
/api/text-translator/languagesPOST
/api/text-translator/batchPOST
/api/youtube-translator/translateSchema Validation
POST
/api/schema-validator/validateGET
/api/schema-validator/historyAnalytics & Billing
GET
/api/analytics/overviewGET
/api/billing/subscriptionPOST
/api/billing/create-checkoutRate Limits
| Plan | Requests/min | Concurrent Jobs | Max Upload |
|---|---|---|---|
| Free | 100 | 2 | 50 MB |
| Pro | 500 | 10 | 500 MB |
| Enterprise | Unlimited | 50 | 2 GB |