Moderation models

gamma

Synchronous explicit sexual-content checks for text only.

POST /v1/moderations/models/gammaSynchronous moderationFixed Credit pricing

Quick start

Submit one moderation request and receive the final allow or block decision in the same HTTP response.

curl -X POST "https://api.artany.ai/v1/moderations/models/gamma" \
  -H "Authorization: Bearer $ARTANY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: unique-request-id" \
  -d '{"model":"gamma","modality":"text","text":"A neutral product description"}'

Request

Headers

HeaderRequiredDescription
AuthorizationYesBearer token for an Artany API key.
Content-TypeYesMust be application/json.
Idempotency-KeyRecommended8–128 characters. Reusing it with an identical request prevents duplicate jobs and charges.

Body

{
  "model": "gamma",
  "modality": "text",
  "text": "A neutral product description"
}

Parameters

Gamma is selected in the endpoint path. Send only modality and text in the body; do not include model. Text is evaluated without trimming or translation.

FieldTypeRequiredDescriptionDefaultConstraints
modalitystringYesGamma supports text only.Allowed: text
textstringYesText to evaluate, up to 4,096 UTF-16 code units.Length: 1–4096

Response

HTTP 200 contains the final decision. Credits are charged before evaluation; both allow and block are billable. Evaluation failures trigger a refund. CREDIT_RELEASE_FAILED means the refund failed; a result persistence failure requires reconciliation.

{
  "sexual_suggest": "allow",
  "category": null,
  "sexual_score": 0.08,
  "labels": [
    {
      "label": "sexual_explicit",
      "score": 0.08
    }
  ],
  "billing": {
    "charged_credits": "…",
    "idempotent": false
  }
}
  • allow / block: read sexual_suggest directly from the response; model-specific evidence fields follow it.
  • error: Evaluation failures trigger a refund; refund or result persistence errors require reconciliation.

Pricing

The matching price is charged before evaluation. Both allow and block are billable; evaluation failures trigger a refund. Price version: 2026-07-18.picverse-parity.

modalityCredits
text1