---
title: "Screen a prompt"
method: POST
path: "/api/v2/prompts/moderate"
tags: ["Prompts"]
---

# Screen a prompt

`POST /api/v2/prompts/moderate`

## Request

- Base URL: `https://azurade.com`
- URL: `https://azurade.com/api/v2/prompts/moderate`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Runs the content-policy screen a generation would run and returns the decision (allow, deny) without generating. Costs 1 credit.

## Request body

- ModerateRequest
  - `prompt` string, required

## Response `200`

OK

- ModerateResult
  - `balance` number: Your credits after the charge
  - `cost` number
  - `decision` 'allow' | 'deny'

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid credentials
- `402`: Insufficient credits
- `503`: A dependency is unavailable; retry later

---

[API](https://skmtc.dev/azurade/apis/azurade-ai-api.md) · [All operations](https://skmtc.dev/azurade/apis/azurade-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/azurade/apis/azurade-ai-api/revisions/0530fd2c8b63?raw)
