SFW API

SFW API

Nudity detection with four content levels (0 Everyday, 1 Revealing, 2 Implied nudity, 3 Explicit), art and adult-object flags and an optional policy. Media is…

AI & machine learning#ai

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Nudity detection with four content levels (0 Everyday, 1 Revealing, 2 Implied nudity, 3 Explicit), art and adult-object flags and an optional policy. Media is processed in memory and never stored.

Endpoints 4

Analyze

  • POSTAnalyze an image, GIF or video/v1/analyzeSend media by URL, base64 or multipart upload. Returns the nudity level (0-3), the three level scores, the art and adult-object flags and, when a policy is…

Account

  • GETThe key, tier, limits and balance behind this request/v1/me
  • GETThis month's usage and the current balance/v1/usage

Status

  • GETPublic service status/v1/status

API details

Base URL
https://api.sfwapi.dev
Authentication
A bearer token in the Authorization header
Operations
4 operations on 4 pathsGET 3POST 1
Main resources
Account 2Analyze 1Status 1
Response formats
application/json
Description format
OpenAPI 3.1.0, API version 1.0.0

How to test the SFW API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the SFW API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Analyze an image, GIF or video” (POST /v1/analyze), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the SFW API?

Nudity detection with four content levels (0 Everyday, 1 Revealing, 2 Implied nudity, 3 Explicit), art and adult-object flags and an optional policy. Media is… It is listed under AI & machine learning and has 4 endpoints.

Who publishes the SFW API?

It is listed from SFW API's public API description (an OpenAPI document), not published by SFW API on Swastik Codes. Anyone who controls sfwapi.dev can claim the profile by adding a DNS TXT record.

What is the base URL of the SFW API?

Requests go to https://api.sfwapi.dev. Endpoint paths are added to this base URL.

How do I authenticate with the SFW API?

With A bearer token in the Authorization header.

How many endpoints does the SFW API have?

4 operations on 4 paths (3 GET, 1 POST). The largest groups are Account, Analyze, Status.

Is forking the SFW API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.