Introduction
Welcome to the AIGEN API documentation. AIGEN provides AI-powered REST APIs for document processing, facial recognition, and natural language understanding.
Base URL
All API requests are made to:
https://api.aigen.online
API Products
| Product | Description | Endpoints |
|---|---|---|
| aiScript | Document OCR — extract structured data from IDs, passports, invoices, bank statements, and 20+ document types | /aiscript/* |
| aiFace | Facial recognition — face comparison, liveness detection, and selfie-to-document matching | /aiface/* |
| aiNLP | Natural language processing — sentiment analysis and text understanding | /ainlp/* |
Quick Start
- Get an API key — Create an account on the AIGEN website and generate your API key.
- Authenticate — Include your API key in the
X-AIGEN-KEYheader. See API Key Usage for details. - Make a request — Send a
POSTrequest with your image or text data in JSON format.
curl -X POST 'https://api.aigen.online/aiscript/idcard/v3' \
-H 'X-AIGEN-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"image": "<base64_encoded_image>"}'
Request Format
- All requests use JSON request bodies with
Content-Type: application/json. - Image data must be sent as Base64-encoded strings (see Base64 Image).
- Supported image formats: JPG, JPEG, PNG, PDF (varies by endpoint).
Next Steps
- Server Information — IP whitelist and rate limits
- API Key Usage — Authentication methods
- API Reference — Full endpoint documentation