{"openapi":"3.1.0","info":{"title":"NSFW Detection API","version":"1.0.0","description":"Moderate images automatically with on-device machine learning. Classify any image across five categories — neutral, drawing, sexy, porn and hentai — and receive per-class probabilities, the top class, a combined NSFW score and a clear verdict (safe, questionable or nsfw). A simpler check endpoint returns a single safe/unsafe decision against a threshold you choose, ideal for upload gates and user-generated-content pipelines. Supply an image by public URL, base64 or a raw binary request body; only public http/https URLs are accepted and private or internal hosts are blocked, and large images are downscaled automatically. Runs locally on TensorFlow (NSFWJS / MobileNetV2) — no third-party upstream and no per-image cloud cost — with a warm model that keeps inference fast. Ideal for community platforms, marketplaces, dating and chat apps, and any service that accepts user images.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/nsfw-api","description":"oanor gateway"}],"tags":[{"name":"NSFW"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/check":{"get":{"operationId":"get_v1_check","tags":["NSFW"],"summary":"Simple safe/unsafe decision","description":"","parameters":[{"name":"url","in":"query","required":false,"description":"Image URL (or base64/raw body)","schema":{"type":"string"}},{"name":"base64","in":"query","required":false,"description":"Base64 image data","schema":{"type":"string"}},{"name":"threshold","in":"query","required":false,"description":"NSFW threshold 0..1 (default 0.6)","schema":{"type":"string"},"example":"0.6"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/classify":{"get":{"operationId":"get_v1_classify","tags":["NSFW"],"summary":"Full NSFW class breakdown","description":"","parameters":[{"name":"url","in":"query","required":false,"description":"Image URL (or base64/raw body)","schema":{"type":"string"},"example":"https://example.com/photo.jpg"},{"name":"base64","in":"query","required":false,"description":"Base64 image data","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":3000,"rps_limit":1,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":1350,"monthly_call_quota":45000,"rps_limit":5,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":3700,"monthly_call_quota":300000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":9400,"monthly_call_quota":1400000,"rps_limit":60,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/nsfw-api"}