AI / Multi-PurposeFree tier available

All-in-One AI API — 36+ Endpoints, One Subscription

All-in-one AI API to extract text with OCR, analyze faces, compare faces, search faces, recognize celebrities, detect NSFW content, detect objects, detect logos, identify landmarks, remove backgrounds, swap faces, restore old photos, colorize images, cartoonize photos, analyze sentiment & emotions — 36+ endpoints in one subscription.

See It in Action

Real examples generated by the API. See the quality for yourself.

Face Analysis & RecognitionAPI Output
Face Analysis & Recognition

Analyze faces, compare faces for similarity, recognize celebrities, and search faces across repositories

Features

36+ Endpoints

OCR, face analysis, object detection, background removal, face swap, style transfer, text analysis — all through one API key.

One Subscription

Stop managing multiple API subscriptions. Get access to every endpoint with a single plan and shared credit pool.

Credit-Based Pricing

Pay by credits, not per endpoint. Light endpoints cost 1 credit, advanced endpoints cost 2 credits. Use credits however you want.

Flexible Input

Upload files via multipart, pass URLs via form-encoded or JSON. All image endpoints support both file and URL input.

Face Repositories

Build face re-identification systems. Save, search, and match faces across images for access control or identity verification.

Fast & Reliable

Synchronous responses in seconds. Production-ready cloud infrastructure with high availability.

API Reference

36 endpoints, simple integration. Here's everything you need.

Supported Content Types

multipart/form-dataapplication/x-www-form-urlencodedapplication/json
POSThttps://ai-all-in-one.p.rapidapi.com/v1/ocr

Extract text from an image. Supports 100+ languages, handwritten text, receipts, and complex layouts.

urlstringrequired

Public URL of the image — use with application/x-www-form-urlencoded

imagefilerequired

Image file to process — use with multipart/form-data

Send either url or image, not both. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/ocr-pdf

Extract text from a PDF document with page range control.

pdf_filefilerequired

The PDF file to process

first_pageinteger

First page to process. Default: 1

last_pageinteger

Last page to process. Default: 1

2 credits per page processed.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/detect-logo

Detect logos and brands in an image with confidence scores.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/detect-landmarks

Identify landmarks and locations in an image.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/detect-label

Label and categorize image content with confidence scores.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/objects-detection

Detect and locate objects in images with bounding boxes and labels.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/nsfw-detect

Detect explicit or unsafe content in images for content moderation.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/detect-ppe

Detect personal protective equipment (hard hats, masks, gloves) for safety compliance.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/faceanalysis

Analyze facial attributes including age, gender, and emotions.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/compare-faces

Compare two faces for similarity matching.

source_image_urlstringrequired

URL of the source face image

target_image_urlstringrequired

URL of the target face image

Also supports file uploads via source_image and target_image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/celebrity-recognition

Identify celebrities in an image.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/create-facial-repository

Create a new facial repository for face re-identification.

repository_idstringrequired

Unique ID for the repository

2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/save-face-in-repository

Index a face in a repository for later search and matching.

urlstringrequired

Public URL of the face image

imagefilerequired

Face image file

repository_idstringrequired

Repository to save the face in

external_idstring

Your custom ID for the face

Send either url or image. 2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/search-face-in-repository

Search for a matching face across a facial repository.

urlstringrequired

Public URL of the face image to search

imagefilerequired

Face image file to search

repository_idstringrequired

Repository to search in

Send either url or image. 2 credits per call.

GEThttps://ai-all-in-one.p.rapidapi.com/v1/list-facial-repositories

List all your facial repositories.

2 credits per call.

GEThttps://ai-all-in-one.p.rapidapi.com/v1/list-repository-faces

List all indexed faces in a repository.

repository_idstringrequired

Repository ID (query param)

2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/delete-face-from-repository

Remove faces from a repository by face IDs.

repository_idstringrequired

Repository ID

face_idsarrayrequired

Array of face IDs to delete

2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/delete-facial-repository

Delete an entire facial repository.

repository_idstringrequired

Repository ID to delete

2 credits per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/remove-background

Remove the background from an image. Returns a transparent PNG.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/blur-background

Blur the background of an image while keeping the subject sharp.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

blur_radiusinteger

Blur intensity, 1-50. Default: 15

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/color-background

Replace the background with a solid color.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

bg_colorstringrequired

Background color as R,G,B,A (e.g. "255,140,0,255")

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/gradient-background

Replace the background with a gradient.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

top_colorstringrequired

Top gradient color as R,G,B,A

bottom_colorstringrequired

Bottom gradient color as R,G,B,A

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/image-background

Replace the background with a custom image.

image_urlstringrequired

Public URL of the foreground image

imagefilerequired

Foreground image file

bg_image_urlstring

URL of the background image

bg_imagefile

Background image file

Send either image_url or image for foreground, bg_image_url or bg_image for background. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/detect-faces

Detect all faces in an image and return bounding boxes with indices.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/swap-face

Swap faces between a source and target image.

source_urlstringrequired

URL of the source face image

target_urlstringrequired

URL of the target image

many_facesboolean

Swap all faces. Default: false

Also supports file uploads via source_image and target_image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/target-face

Swap a specific face in a group photo by index.

source_urlstringrequired

URL of the source face image

target_urlstringrequired

URL of the target image

face_indexinteger

Index of the face to swap. Default: 0

Also supports file uploads. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/enhance-face

Restore and enhance faces in a photo with AI upscaling.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

many_facesboolean

Enhance all faces. Default: false

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/target-enhance

Enhance a specific face by index in a group photo.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

face_indexinteger

Index of the face to enhance. Default: 0

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/enhance-photo

Enhance overall photo quality with AI.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

modestring

"single" or "all". Default: "single"

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/cartoonize

Transform a photo into cartoon or anime style with 7 unique styles.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

stylestring

Style: anime, 3d, handdrawn, sketch, artstyle, design, illustration

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/colorize-photo

Add realistic color to black and white photos.

urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/photo-to-portrait

Transform a photo into an artistic pencil sketch portrait.

image_urlstringrequired

Public URL of the image

imagefilerequired

Image file to process

Send either image_url or image. 1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/emotions

Detect emotions in text (joy, sadness, anger, fear, etc.).

textstringrequired

Text to analyze (3-5000 characters)

1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/sentiment

Analyze text sentiment as positive, negative, or neutral.

textstringrequired

Text to analyze (3-5000 characters)

1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/personality

Analyze Big Five personality traits from text.

textstringrequired

Text to analyze (3-5000 characters)

1 credit per call.

POSThttps://ai-all-in-one.p.rapidapi.com/v1/communication

Analyze communication style and tone from text.

textstringrequired

Text to analyze (3-5000 characters)

1 credit per call.

Response

200

All endpoints return JSON responses. Image processing endpoints return results inline or via CDN URL. Text analysis endpoints return structured analysis results.

Quick Start

Copy-paste code to get started in seconds. Replace YOUR_API_KEY with your RapidAPI key.

HOST="ai-all-in-one.p.rapidapi.com"
KEY="YOUR_API_KEY"

# OCR — Extract text from image
curl -X POST "https://$HOST/v1/ocr" \
  -H "x-rapidapi-key: $KEY" \
  -H "x-rapidapi-host: $HOST" \
  -d "url=https://example.com/document.jpg"

# Face Analysis
curl -X POST "https://$HOST/v1/faceanalysis" \
  -H "x-rapidapi-key: $KEY" \
  -H "x-rapidapi-host: $HOST" \
  -F "image=@photo.jpg"

# Remove Background
curl -X POST "https://$HOST/v1/remove-background" \
  -H "x-rapidapi-key: $KEY" \
  -H "x-rapidapi-host: $HOST" \
  -d "image_url=https://example.com/photo.jpg"

# Sentiment Analysis
curl -X POST "https://$HOST/v1/sentiment" \
  -H "x-rapidapi-key: $KEY" \
  -H "x-rapidapi-host: $HOST" \
  -H "Content-Type: application/json" \
  -d '{"text": "I love this product!"}'

Pricing

Start free, scale as you grow. All plans include full API access with no credit card required for the free tier.

Free

Basic

$0Free

50 credits/mo

  • Full API access
  • All endpoints
  • Standard support

Pro

$14.99/mo

10,000 credits/mo

  • Full API access
  • All endpoints
  • Standard support
Recommended

Ultra

$49.99/mo

50,000 credits/mo

  • Full API access
  • All endpoints
  • Standard support

Mega

$149.99/mo

200,000 credits/mo

  • Full API access
  • All endpoints
  • Standard support

Frequently Asked Questions

How does the credit system work?
Each API call consumes credits based on the endpoint. Background removal, face swap, face enhancement, style transfer, and text analysis endpoints cost 1 credit per call. OCR, image detection, face analysis, and face search endpoints cost 2 credits per call. OCR PDF costs 2 credits per page processed. You can use your credits across any combination of endpoints.
Is the All-in-One API the same as the individual APIs?
Yes. The All-in-One API provides access to the exact same endpoints and models as the individual standalone APIs (OCR Wizard, Face Analyzer, Background Removal AI, etc.). The only difference is that you get everything under one subscription with a shared credit pool instead of managing separate subscriptions.
Can I switch between the All-in-One API and individual APIs?
Yes. The All-in-One API and individual APIs are independent subscriptions. You can use both simultaneously or switch between them. If you only need one or two specific APIs, the individual subscriptions may be more cost-effective. If you use multiple APIs, the All-in-One bundle offers better value.
What input formats are supported?
Image endpoints accept file uploads via multipart/form-data or public image URLs via application/x-www-form-urlencoded. Text analysis endpoints accept application/x-www-form-urlencoded or application/json with a text field. All endpoints return JSON responses.

Start Using AI All-in-One Today

Sign up on RapidAPI to get your API key. The free tier includes generous monthly requests — no credit card required.