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.

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
https://ai-all-in-one.p.rapidapi.com/v1/ocrExtract text from an image. Supports 100+ languages, handwritten text, receipts, and complex layouts.
urlstringrequiredPublic URL of the image — use with application/x-www-form-urlencoded
imagefilerequiredImage file to process — use with multipart/form-data
Send either url or image, not both. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/ocr-pdfExtract text from a PDF document with page range control.
pdf_filefilerequiredThe PDF file to process
first_pageintegerFirst page to process. Default: 1
last_pageintegerLast page to process. Default: 1
2 credits per page processed.
https://ai-all-in-one.p.rapidapi.com/v1/detect-logoDetect logos and brands in an image with confidence scores.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/detect-landmarksIdentify landmarks and locations in an image.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/detect-labelLabel and categorize image content with confidence scores.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/objects-detectionDetect and locate objects in images with bounding boxes and labels.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/nsfw-detectDetect explicit or unsafe content in images for content moderation.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/detect-ppeDetect personal protective equipment (hard hats, masks, gloves) for safety compliance.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/faceanalysisAnalyze facial attributes including age, gender, and emotions.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/compare-facesCompare two faces for similarity matching.
source_image_urlstringrequiredURL of the source face image
target_image_urlstringrequiredURL of the target face image
Also supports file uploads via source_image and target_image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/celebrity-recognitionIdentify celebrities in an image.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/create-facial-repositoryCreate a new facial repository for face re-identification.
repository_idstringrequiredUnique ID for the repository
2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/save-face-in-repositoryIndex a face in a repository for later search and matching.
urlstringrequiredPublic URL of the face image
imagefilerequiredFace image file
repository_idstringrequiredRepository to save the face in
external_idstringYour custom ID for the face
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/search-face-in-repositorySearch for a matching face across a facial repository.
urlstringrequiredPublic URL of the face image to search
imagefilerequiredFace image file to search
repository_idstringrequiredRepository to search in
Send either url or image. 2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/list-facial-repositoriesList all your facial repositories.
2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/list-repository-facesList all indexed faces in a repository.
repository_idstringrequiredRepository ID (query param)
2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/delete-face-from-repositoryRemove faces from a repository by face IDs.
repository_idstringrequiredRepository ID
face_idsarrayrequiredArray of face IDs to delete
2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/delete-facial-repositoryDelete an entire facial repository.
repository_idstringrequiredRepository ID to delete
2 credits per call.
https://ai-all-in-one.p.rapidapi.com/v1/remove-backgroundRemove the background from an image. Returns a transparent PNG.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/blur-backgroundBlur the background of an image while keeping the subject sharp.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
blur_radiusintegerBlur intensity, 1-50. Default: 15
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/color-backgroundReplace the background with a solid color.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
bg_colorstringrequiredBackground color as R,G,B,A (e.g. "255,140,0,255")
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/gradient-backgroundReplace the background with a gradient.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
top_colorstringrequiredTop gradient color as R,G,B,A
bottom_colorstringrequiredBottom gradient color as R,G,B,A
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/image-backgroundReplace the background with a custom image.
image_urlstringrequiredPublic URL of the foreground image
imagefilerequiredForeground image file
bg_image_urlstringURL of the background image
bg_imagefileBackground image file
Send either image_url or image for foreground, bg_image_url or bg_image for background. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/detect-facesDetect all faces in an image and return bounding boxes with indices.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/swap-faceSwap faces between a source and target image.
source_urlstringrequiredURL of the source face image
target_urlstringrequiredURL of the target image
many_facesbooleanSwap all faces. Default: false
Also supports file uploads via source_image and target_image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/target-faceSwap a specific face in a group photo by index.
source_urlstringrequiredURL of the source face image
target_urlstringrequiredURL of the target image
face_indexintegerIndex of the face to swap. Default: 0
Also supports file uploads. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/enhance-faceRestore and enhance faces in a photo with AI upscaling.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
many_facesbooleanEnhance all faces. Default: false
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/target-enhanceEnhance a specific face by index in a group photo.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
face_indexintegerIndex of the face to enhance. Default: 0
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/enhance-photoEnhance overall photo quality with AI.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
modestring"single" or "all". Default: "single"
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/cartoonizeTransform a photo into cartoon or anime style with 7 unique styles.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
stylestringStyle: anime, 3d, handdrawn, sketch, artstyle, design, illustration
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/colorize-photoAdd realistic color to black and white photos.
urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/photo-to-portraitTransform a photo into an artistic pencil sketch portrait.
image_urlstringrequiredPublic URL of the image
imagefilerequiredImage file to process
Send either image_url or image. 1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/emotionsDetect emotions in text (joy, sadness, anger, fear, etc.).
textstringrequiredText to analyze (3-5000 characters)
1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/sentimentAnalyze text sentiment as positive, negative, or neutral.
textstringrequiredText to analyze (3-5000 characters)
1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/personalityAnalyze Big Five personality traits from text.
textstringrequiredText to analyze (3-5000 characters)
1 credit per call.
https://ai-all-in-one.p.rapidapi.com/v1/communicationAnalyze communication style and tone from text.
textstringrequiredText to analyze (3-5000 characters)
1 credit per call.
Response
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.
Basic
50 credits/mo
- Full API access
- All endpoints
- Standard support
Pro
10,000 credits/mo
- Full API access
- All endpoints
- Standard support
Ultra
50,000 credits/mo
- Full API access
- All endpoints
- Standard support
Mega
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.





