[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [fal image NSFW probability](https://spiral.ai/integrations/opencode/fal-image-nsfw-probability)

# How to Use fal image NSFW probability in opencode

Returns a numeric estimate of whether an image is not safe for work. Use the score to rank images for moderation review or apply your own screening threshold.

|  |  |
| --- | --- |
| Model | fal image NSFW probability |
| Available through | fal |
| Category | Data |
| Price | $0.0013 per image. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with fal image NSFW probability in opencode

- Use fal image NSFW probability to score https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg and save the returned score as a real example in this project's moderation documentation.
- Use fal image NSFW probability on https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg and add the actual score to the project's image review demo.
- Use fal image NSFW probability to score https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg, then update our review component to display the returned numeric value.
- Use fal image NSFW probability on https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg and show how our existing moderation rule handles the actual result.
- Use fal image NSFW probability to score https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg, then compare our project's review decisions at thresholds of 0.3 and 0.7.

## How to set up fal image NSFW probability in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run fal image NSFW probability**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/imageutils/nsfw",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/model_tests/remove_background/elephant.jpg"
    }
  }'
```

Then paste one of the prompts above: opencode finds fal image NSFW probability on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## fal image NSFW probability tools and prices

- [NSFW Filter](https://spiral.ai/tools/fal/fal-ai/imageutils/nsfw) (fal): $0.0013 per image.

## What can you do with fal image NSFW probability in opencode?

Add NSFW scores to the project's image review queue so reviewers can sort campaign artwork by score. Use fal's numeric result to implement and test the team's chosen screening rule.

### Prioritize a moderation queue

Score approved business image submissions and sort them by NSFW probability so reviewers can inspect the highest scores first.

### Screen generated campaign artwork

Check generated advertising images before editorial review and route images above your chosen threshold to a reviewer.

### Review marketplace listing photos

Attach an NSFW score to seller-authorized product photos and flag listings that need a closer look before publication.

### Compare screening thresholds

Score a licensed image collection that reviewers have already labeled, then compare which images each proposed threshold would flag.

### Check promotional image crops

Score approved originals and their proposed crops separately to see which versions warrant moderation review.

### Audit a publishing workflow

Compare NSFW scores with your team's recorded publication decisions to identify images worth revisiting.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## fal image NSFW probability in other agents

- [Amp](https://spiral.ai/integrations/amp/fal-image-nsfw-probability)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/fal-image-nsfw-probability)
- [Claude](https://spiral.ai/integrations/claude-desktop/fal-image-nsfw-probability)
- [Claude Code](https://spiral.ai/integrations/claude-code/fal-image-nsfw-probability)
- [Cline](https://spiral.ai/integrations/cline/fal-image-nsfw-probability)
- [Codex](https://spiral.ai/integrations/codex/fal-image-nsfw-probability)
- [Cursor](https://spiral.ai/integrations/cursor/fal-image-nsfw-probability)
- [Devin](https://spiral.ai/integrations/devin/fal-image-nsfw-probability)
- [dots](https://spiral.ai/integrations/dots/fal-image-nsfw-probability)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/fal-image-nsfw-probability)
- [Gemini](https://spiral.ai/integrations/gemini/fal-image-nsfw-probability)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/fal-image-nsfw-probability)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/fal-image-nsfw-probability)
- [goose](https://spiral.ai/integrations/goose/fal-image-nsfw-probability)
- [Grok](https://spiral.ai/integrations/grok/fal-image-nsfw-probability)
- [Grok Build](https://spiral.ai/integrations/grok-build/fal-image-nsfw-probability)
- [Hermes](https://spiral.ai/integrations/hermes/fal-image-nsfw-probability)
- [Instinct](https://spiral.ai/integrations/instinct/fal-image-nsfw-probability)
- [Manus](https://spiral.ai/integrations/manus/fal-image-nsfw-probability)
- [Muse](https://spiral.ai/integrations/muse/fal-image-nsfw-probability)
- [Muse Code](https://spiral.ai/integrations/muse-code/fal-image-nsfw-probability)
- [n8n](https://spiral.ai/integrations/n8n/fal-image-nsfw-probability)
- [Notion](https://spiral.ai/integrations/notion/fal-image-nsfw-probability)
- [OpenClaw](https://spiral.ai/integrations/openclaw/fal-image-nsfw-probability)
- [Perplexity](https://spiral.ai/integrations/perplexity/fal-image-nsfw-probability)
- [Raycast](https://spiral.ai/integrations/raycast/fal-image-nsfw-probability)
- [VS Code](https://spiral.ai/integrations/vscode/fal-image-nsfw-probability)
- [Windsurf](https://spiral.ai/integrations/windsurf/fal-image-nsfw-probability)
- [Zapier](https://spiral.ai/integrations/zapier/fal-image-nsfw-probability)

## More opencode guides

- [fal NSFW image check](https://spiral.ai/integrations/opencode/fal-nsfw-image-check)
- [fal video analysis](https://spiral.ai/integrations/opencode/fal-video-analysis)
- [Sa2VA 8B video segmentation](https://spiral.ai/integrations/opencode/sa2va-8b-video-segmentation)
- [Artificial Analysis hosting endpoint search](https://spiral.ai/integrations/opencode/artificial-analysis-hosting-endpoint-search)
- [Sa2VA 8B image segmentation](https://spiral.ai/integrations/opencode/sa2va-8b-image-segmentation)
- [Artificial Analysis model details](https://spiral.ai/integrations/opencode/artificial-analysis-model-details)

## Questions about fal image NSFW probability in opencode

**Can opencode use fal image NSFW probability?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run fal image NSFW probability like any built-in tool.

**How much does fal image NSFW probability cost in opencode?**

$0.0013 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a fal account to use fal image NSFW probability in opencode?**

No. Spiral runs fal image NSFW probability on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up fal image NSFW probability in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while fal image NSFW probability runs?**

fal image NSFW probability runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**What does fal's image NSFW detector return?**

It returns one floating-point NSFW probability score for the supplied image. The documented output contains no category breakdown or written explanation.

**Does the detector blur or remove explicit content?**

The documented result is a probability score. It contains no blurred image or replacement image, so any image editing belongs in a separate step.

**Does a low score guarantee that an image is safe?**

No. This endpoint produces a probability estimate, and fal's API terms acknowledge that AI output can be incorrect.

**Can fal read an image behind a website login?**

For hosted images, fal documents support for publicly accessible URLs. A link that requires a website login falls outside that documented requirement.

**Can I submit any image that is publicly visible?**

Public visibility alone does not meet fal's content requirements. Its terms require the necessary rights, consents, licenses, or permissions to submit the image for processing.

