sfw_check
Say whether an image, or evenly sampled frames of a video, is safe for work. One yes/no decision per picture (perplexity/pplx-decider-v1.2). The check passes only when every picture is yes. Video sampling needs ffmpeg on the server; a still image does not. There is no switch to skip this check. Runs on NanoGPT — a deposit is quoted for each request from how many pictures it checks and is a cap on the charge; it settles at the metered cost plus 20% or the quote, whichever is less, and a picture that would exceed the remaining budget is not checked; the difference is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | optional; still image — https URL or data URL. At most 4 MB. A hosted server does not read local files. Does not use ffmpeg. | |
| video | No | optional; video — https URL or data URL. Frames are sampled evenly. At most 4 MB. Needs ffmpeg. A hosted server does not read local files. | |
| frames | No | optional; how many video frames to check (1–8, default 5). Ignored when there is no video. | |
| _payment_id | No | Payment id from this tool's previous payment-required response. Phase 3 only: after /x402/watch closes with status paid, call again with the same arguments plus this id to open the RESULTS stream. Do not pass it while payment is still pending — monitor the watch SSE first. |