Skip to content

From upload to signal.

Call Jmod from your backend. Send text, an image URL, or both, and receive category scores with explicit coverage.

Current access

Create a workspace and issue a key in your account dashboard. Workspace keys are ready to use with the hosted Jmod API. Demo keys never authorize requests.

1. Configure your server

Set JMOD_API_URL to the hosted API origin below and JMOD_API_KEY to your workspace key.

Backend environment · hosted Jmod API
export JMOD_API_URL="https://moderation-production-f5d1.up.railway.app"
export JMOD_API_KEY="your-workspace-api-key"

Keep keys in your backend environment. Customer requests go straight from your backend to Rust; website authentication is a separate account service.

Save new keys when they are shown: the full credential is revealed once. Revoke a lost or exposed key and replace it. A standalone deployment can instead use its configured deployment key; customer mode disables that fallback.

2. Send a request

Replace the image URL with an HTTPS image the provider can access, such as a short-lived signed URL. Base64 uploads are not supported.

cURL · score an image
curl "$JMOD_API_URL/v1/moderations" \
  -H "Authorization: Bearer $JMOD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/upload.jpg",
    "reference_id": "upload_042"
  }'

3. Read the coverage with the score

Illustrative response excerpt
{
  "reference_id": "upload_042",
  "confidence_ratings": {
    "sexual": 1.0,
    "violence/graphic": 1.0,
    "self-harm": 1.0,
    "harassment": null
  },
  "policy_evaluation": null
}

A confidence rating of 1.0 is the low end of the display scale. null means unassessed. Always inspect category_applied_input_types and unsupported_image_categories in the full response.

4. Decide what happens next

Scores are returned without an enforced decision. Apply your own workflow, or include category rules for an advisory recommendation. Treat failed requests and unassessed categories as unresolved.