Skip to main content

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

ProductDescriptionEndpoints
aiScriptDocument OCR — extract structured data from IDs, passports, invoices, bank statements, and 20+ document types/aiscript/*
aiFaceFacial recognition — face comparison, liveness detection, and selfie-to-document matching/aiface/*
aiNLPNatural language processing — sentiment analysis and text understanding/ainlp/*

Quick Start

  1. Get an API key — Create an account on the AIGEN website and generate your API key.
  2. Authenticate — Include your API key in the X-AIGEN-KEY header. See API Key Usage for details.
  3. Make a request — Send a POST request 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