# AI Engine — Full API Reference > AI Engine is a France-based SaaS company (founded 2023) providing 18 production-ready AI APIs for computer vision, image processing, NLP, and intelligent automation. All APIs are available via RapidAPI with a free tier. This document provides complete endpoint documentation for AI systems. ## Authentication All APIs use RapidAPI key authentication: - Header: `x-rapidapi-key: YOUR_API_KEY` - Header: `x-rapidapi-host: {api-host}` - Get a free API key at https://rapidapi.com/organization/ai-engine ## Input Methods Most image APIs accept two input methods (send one, not both): - **File upload**: `multipart/form-data` with `image` field - **URL input**: `application/x-www-form-urlencoded` or `application/json` with `url` or `image_url` field --- ## Background Removal API Remove image backgrounds automatically. Get transparent PNG or replace with blur, solid color, or gradient. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/background-removal-ai - **Docs**: https://ai-engine.net/apis/background-removal - **Pricing**: Free (100/mo) | Pro $12.99 (10K/mo) | Ultra $49.99 (50K/mo) | Mega $159.99 (200K/mo) ### POST /remove-background Host: `background-removal-ai.p.rapidapi.com` Parameters: `image` (file) or `image_url` (string) Response: ```json { "image_url": "string", "width": 1200, "height": 800, "size_bytes": 456789 } ``` ### POST /blur-background Host: `background-removal-ai.p.rapidapi.com` Parameters: `image` (file) or `image_url` (string), `blur_radius` (integer, 1-50, default: 15) Response: same as above ### POST /color-background Host: `background-removal-ai.p.rapidapi.com` Parameters: `image` (file) or `image_url` (string), `bg_color` (string, R,G,B,A e.g. "255,140,0,255") Response: same as above ### POST /gradient-background Host: `background-removal-ai.p.rapidapi.com` Parameters: `image` (file) or `image_url` (string), `top_color` (string, R,G,B,A), `bottom_color` (string, R,G,B,A) Response: same as above Python example: ```python import requests with open("photo.jpg", "rb") as f: resp = requests.post( "https://background-removal-ai.p.rapidapi.com/remove-background", headers={"x-rapidapi-key": "YOUR_KEY", "x-rapidapi-host": "background-removal-ai.p.rapidapi.com"}, files={"image": f}, ) print(resp.json()["image_url"]) ``` --- ## OCR Wizard API Extract text from images and PDFs. Supports handwriting, 50+ languages, word-level bounding boxes. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/ocr-wizard - **Docs**: https://ai-engine.net/apis/ocr-wizard - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /ocr Host: `ocr-wizard.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: ```json { "statusCode": 200, "body": { "fullText": "Extracted text here...", "detectedLanguage": "en", "annotations": [ { "text": "word", "boundingPoly": [[x1,y1],[x2,y2],[x3,y3],[x4,y4]] } ] } } ``` ### POST /ocr-pdf Host: `ocr-wizard.p.rapidapi.com` Content-Type: `multipart/form-data` Parameters: `pdf_file` (file, required), `first_page` (integer, default: 1), `last_page` (integer, default: 1) Response: ```json { "statusCode": 200, "body": { "pages": [ { "fullText": "Page text...", "detectedLanguage": "en", "annotations": [...] } ] } } ``` --- ## Face Analyzer API Face detection, age/gender/emotion estimation, celebrity recognition, face comparison, and custom face repositories. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/faceanalyzer-ai - **Docs**: https://ai-engine.net/apis/face-analyzer - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /faceanalysis Host: `faceanalyzer-ai.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: ```json { "statusCode": 200, "body": { "faces": [{ "boundingBox": { "Width": 0.3, "Height": 0.4, "Left": 0.2, "Top": 0.1 }, "facialFeatures": { "Gender": "Male", "Smile": true, "Eyeglasses": false, "AgeRange": { "Low": 25, "High": 35 }, "Emotions": [{ "Type": "HAPPY", "Confidence": 99.2 }] }, "landmarks": { "eyeLeft": {...}, "eyeRight": {...}, "nose": {...} } }] } } ``` ### POST /compare-faces Host: `faceanalyzer-ai.p.rapidapi.com` Parameters: `source_image` (file) or `source_image_url` (string), `target_image` (file) or `target_image_url` (string) Response: `{ "matchedFaces": [...], "unmatchedFaces": [...] }` ### POST /celebrity-recognition Host: `faceanalyzer-ai.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: `{ "celebritiesFaces": [...], "unrecognizedFaces": [...] }` ### Face Repository Endpoints - `POST /create-facial-repository` — params: `repository_id` (string) - `POST /delete-facial-repository` — params: `repository_id` (string) - `GET /list-facial-repositories` — no params - `POST /save-face-in-repository` — params: `image`/`url`, `repository_id`, `external_id`, `max_faces` (optional) - `GET /list-repository-faces` — query: `repository_id` - `POST /delete-face-from-repository` — params: `repository_id`, `face_ids` (array) - `POST /search-face-in-repository` — params: `image`/`url`, `repository_id` Response: `{ "FaceMatches": [{ "Similarity": 99.5, "Face": { "FaceId": "...", "ExternalImageId": "..." } }] }` --- ## Object Detection API Detect and label objects in images with bounding boxes and confidence scores. Recognizes 80+ object categories. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/objects-detection - **Docs**: https://ai-engine.net/apis/object-detection - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /objects-detection Host: `objects-detection.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: ```json { "statusCode": 200, "body": { "labels": [{ "Name": "Car", "Confidence": 98.5, "Categories": ["Vehicles"], "Instances": [{ "BoundingBox": {...}, "Confidence": 98.5 }] }], "keywords": ["car", "vehicle", "road"] } } ``` --- ## NSFW Detect API Content moderation API. Detects inappropriate content across 10 categories with confidence scores. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/nsfw-detect3 - **Docs**: https://ai-engine.net/apis/nsfw-detect - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /nsfw-detect Host: `nsfw-detect3.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: ```json { "statusCode": 200, "body": { "ModerationLabels": [ { "Confidence": 99.1, "Name": "Explicit Nudity", "ParentName": "Adult Content" } ] } } ``` --- ## Face Swap API Swap faces in images with AI. Supports single face, multi-face, targeted face swap by index, face detection, and face enhancement. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/deepfake-face-swap-ai - **Docs**: https://ai-engine.net/apis/face-swap - **Pricing**: Free (100/mo) | Pro $12.99 (10K/mo) | Ultra $49.99 (50K/mo) | Mega $159.99 (200K/mo) ### POST /swap-face Host: `deepfake-face-swap-ai.p.rapidapi.com` Parameters: `source_image`/`source_url`, `target_image`/`target_url`, `many_faces` (boolean, default: false) Response: `{ "image_url": "string", "width": 1200, "height": 800, "size_bytes": 456789 }` ### POST /target-face Parameters: same + `face_index` (integer, default: 0) — swap a specific face in a group photo ### POST /detect-faces Parameters: `image`/`image_url` Response: `{ "total_faces": 3, "faces": [{ "index": 0, "bbox": { "x": 100, "y": 50, "width": 200, "height": 250 } }] }` ### POST /enhance-face Parameters: `image`/`image_url`, `many_faces` (boolean, default: false) Response: `{ "image_url": "string", "width": ..., "height": ..., "size_bytes": ... }` ### POST /target-enhance Parameters: `image`/`image_url`, `face_index` (integer, default: 0) --- ## Image Generation API Generate images from text prompts, modify with inpainting/outpainting, create variations. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/imagegenius-ai - **Docs**: https://ai-engine.net/apis/image-generation - **Pricing**: Free (5/mo) | Pro $12.99 (400/mo) | Ultra $22.99 (800/mo) | Mega $92.99 (4K/mo) ### POST /generate-image Host: `imagegenius-ai.p.rapidapi.com` Content-Type: `application/json` Parameters: `prompt` (string, required), `negative_text` (string, optional), `size` (string, "512x512"|"768x768"|"1024x1024", default: "512x512"), `cfg_scale` (float, 1.1-10.0, default: 8.0), `seed` (integer, 0-2147483646) Response: `{ "statusCode": 200, "body": { "imageUrl": "string" } }` ### POST /inpainting Parameters: `image`/`image_url`, `mask_image`/`mask_image_url`, `prompt`, `negative_text`, `cfg_scale` ### POST /outpainting Parameters: `image`/`image_url`, `mask_image`/`mask_image_url`, `prompt`, `negative_text`, `outpainting_mode` ("DEFAULT"|"PRECISE"), `cfg_scale` ### POST /image-variation Parameters: `image`/`image_url`, `prompt`, `negative_text`, `size`, `cfg_scale` --- ## Image Colorization API Colorize black and white photos with AI. Transforms grayscale images into realistically colored versions. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/photocolorizer-ai - **Docs**: https://ai-engine.net/apis/image-colorization - **Pricing**: Free (100/mo) | Pro $12.99 (10K/mo) | Ultra $49.99 (50K/mo) | Mega $159.99 (200K/mo) ### POST /colorize-photo Host: `photocolorizer-ai.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: ```json { "image_url": "string", "width": 1260, "height": 709, "size_bytes": 699359 } ``` Python example: ```python import requests with open("old_photo.jpg", "rb") as f: resp = requests.post( "https://photocolorizer-ai.p.rapidapi.com/colorize-photo", headers={"x-rapidapi-key": "YOUR_KEY", "x-rapidapi-host": "photocolorizer-ai.p.rapidapi.com"}, files={"image": f}, ) print(resp.json()["image_url"]) ``` --- ## Face Restoration API Enhance and restore face quality in images with 2x upscaling. Supports single face or all faces in group photos. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/face-restoration - **Docs**: https://ai-engine.net/apis/face-restoration - **Pricing**: Free (100/mo) | Pro $12.99 (10K/mo) | Ultra $49.99 (50K/mo) | Mega $159.99 (200K/mo) ### POST /enhance-face Host: `face-restoration.p.rapidapi.com` Parameters: `image` (file) or `image_url` (string), `mode` (string, "single"|"all", default: "single") Response: ```json { "image_url": "string", "width": 2048, "height": 2048, "size_bytes": 1234567, "faces_detected": 2 } ``` --- ## Photo to Anime API Convert photos into 7 artistic styles: Anime, 3D, Hand-drawn, Sketch, Art Style, Design, Illustration. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/phototoanime1 - **Docs**: https://ai-engine.net/apis/photo-to-anime - **Pricing**: Free (100/mo) | Pro $12.99 (10K/mo) | Ultra $49.99 (50K/mo) | Mega $159.99 (200K/mo) ### POST /cartoonize Host: `phototoanime1.p.rapidapi.com` Parameters: `image` (file) or `image_url` (string), `style` (string, "anime"|"3d"|"handdrawn"|"sketch"|"artstyle"|"design"|"illustration", default: "anime") Response: ```json { "image_url": "string", "width": 1280, "height": 960, "size_bytes": 245678 } ``` --- ## Emotion & Personality Analysis API NLP API for emotion detection, sentiment analysis, Big Five personality traits, and communication style analysis. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/emotion-sentiment-personality-analysis - **Docs**: https://ai-engine.net/apis/emotion-analysis - **Pricing**: Free (100/mo) | Pro $12.99 (10K/mo) | Ultra $49.99 (50K/mo) | Mega $159.99 (200K/mo) ### POST /emotions Host: `emotion-sentiment-personality-analysis.p.rapidapi.com` Content-Type: `application/json` Parameters: `text` (string, 3-5000 chars) Response: `{ "emotions": [{ "label": "joy", "score": 0.95 }, { "label": "surprise", "score": 0.03 }] }` ### POST /sentiment Parameters: `text` (string) Response: `{ "sentiment": { "label": "positive", "score": 0.97 }, "scores": { "positive": 0.97, "neutral": 0.02, "negative": 0.01 } }` ### POST /personality Parameters: `text` (string) Response: `{ "personality": { "openness": 0.82, "conscientiousness": 0.71, "extraversion": 0.65, "agreeableness": 0.88, "neuroticism": 0.23 } }` ### POST /communication Parameters: `text` (string) Response: `{ "style": "analytical", "confidence": 0.89, "formality": "formal", "tone": "professional" }` --- ## Label Image API Auto-detect and categorize image content with AI labels and confidence scores. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/label-image - **Docs**: https://ai-engine.net/apis/label-image - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /detect-label Host: `label-image.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: `{ "statusCode": 200, "body": { "labels": [{ "description": "Beach", "score": 0.95 }] } }` --- ## Logo Detection API Detect and recognize brand logos in images with confidence scores and bounding coordinates. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/logos-detection - **Docs**: https://ai-engine.net/apis/logo-detection - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /detect-logo Host: `logos-detection.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: `{ "statusCode": 200, "body": { "logos": [{ "description": "Nike", "score": 0.98, "boundingPoly": { "vertices": [{ "x": 100, "y": 50 }] } }] } }` --- ## Landmark Detection API Identify famous landmarks in photos with GPS coordinates. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/landmarks-detection - **Docs**: https://ai-engine.net/apis/landmark-detection - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /detect-landmarks Host: `landmarks-detection.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: `{ "statusCode": 200, "body": { "landmarks": [{ "description": "Eiffel Tower", "score": 0.99, "locations": [{ "latitude": 48.8584, "longitude": 2.2945 }] }] } }` --- ## Mask Detection API Detect face masks in images with per-person compliance results. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/mask-detection2 - **Docs**: https://ai-engine.net/apis/mask-detection - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /detect-mask Host: `mask-detection2.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: ```json { "statusCode": 200, "body": { "Persons": [{ "Id": "1", "Confidence": 99.5, "Mask": { "Confidence": 98.0 } }], "Summary": { "PersonsWithMask": [...], "PersonsWithoutMask": [...] } } } ``` --- ## Photo to Portrait API Convert photos into hand-drawn pencil sketch style. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/phototoportrait - **Docs**: https://ai-engine.net/apis/photo-to-portrait - **Pricing**: Free (100/mo) | Pro $12.99 (10K/mo) | Ultra $49.99 (50K/mo) | Mega $159.99 (200K/mo) ### POST /photo-to-portrait Host: `phototoportrait.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: `{ "image_url": "string", "width": 1024, "height": 1024, "size_bytes": 345678 }` --- ## PPE Detection API Detect personal protective equipment (head covers, face covers, hand covers) for workplace safety compliance. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/ppe-detection1 - **Docs**: https://ai-engine.net/apis/ppe-detection - **Pricing**: Free (30/mo) | Pro $12.99 (5K/mo) | Ultra $22.99 (10K/mo) | Mega $92.99 (50K/mo) ### POST /detect-ppe Host: `ppe-detection1.p.rapidapi.com` Parameters: `image` (file) or `url` (string) Response: ```json { "statusCode": 200, "body": { "Persons": [{ "Id": "1", "Confidence": 99.0, "HeadCover": { "Value": true, "Confidence": 95.0 }, "FaceCover": { "Value": false, "Confidence": 98.0 } }] } } ``` --- ## AI All-in-One API 36+ endpoints in one subscription. Combines all AI Engine APIs with a credit-based system. - **RapidAPI**: https://rapidapi.com/ai-engine-ai-engine-default/api/ai-all-in-one - **Docs**: https://ai-engine.net/apis/all-in-one - **Pricing**: Free (50 credits/mo) | Pro $14.99 (10K credits/mo) | Ultra $49.99 (50K credits/mo) | Mega $149.99 (200K credits/mo) - **Credits**: OCR/detection endpoints = 2 credits, image processing endpoints = 1 credit All endpoints are prefixed with `/v1/` on host `ai-all-in-one.p.rapidapi.com`. Same parameters and responses as the individual APIs listed above. Categories included: OCR, Image Detection (logo, landmark, label, object, NSFW, PPE), Face Analysis (detection, comparison, celebrity, repositories), Background Removal (transparent, blur, color, gradient, image), Face Swap, Face Enhancement, Style Transfer (anime, colorize, portrait), Text Analysis (emotions, sentiment, personality, communication). --- ## Contact - Website: https://ai-engine.net - Email: contact@ai-engine.net - GitHub: https://github.com/ai-engine-dev - Twitter: https://x.com/AIEngineAPIs