All plans are🏷️30% OFFfor a limited time!www.safeframe.dev
safeframe
Cloud Microservices
PLATFORM QUICKSTART

safeframe Universal API Architecture

safeframe is a high-performance modular API platform. Developers use a single universal API key to authenticate across specialized image moderation, super-resolution upscaling, and text safety microservices.

1. Universal Authentication

Every request across all services requires your API key passed in the X-API-Key HTTP header:

HTTP header
X-API-Key: sk_live_your_universal_api_key

A single key authenticates against all services you have active subscriptions for. You can generate multiple keys for staging and production in your dashboard.

2. Available Microservices

nsfw-detection

NSFW & Content Safety Detection

Visual content moderation & nudity detection API with coordinates.

image-enhancer

Image Enhancer & Super-Resolution

Super-resolution, face restoration, and photo enhancement API up to 8x.

text-moderation

Text Moderation & Toxicity Shield

Real-time toxicity, hate speech, and profanity detection for user text.

ai-chatbot

AI Chatbot

High-throughput conversational AI assistant with streaming and system prompt controls.

3. Global HTTP Error Codes

HTTP StatusCodeDescription
400 Bad Requestinvalid_payloadMalformed JSON body or missing required fields.
401 Unauthorizedmissing_api_keyX-API-Key header was not supplied in the request.
401 Unauthorizedinvalid_api_keyProvided API key does not exist or has an invalid signature.
403 Forbiddenservice_not_subscribedYour API key does not have an active subscription for this service.
403 Forbiddenapi_key_revokedAPI key status is set to 'revoked' or 'expired'.
429 Too Many Requestsrate_limit_exceededPer-minute or monthly request limit exceeded.
500 Internal Errorinference_errorServer error occurred during neural model processing.