Google Gemini · Schema

SafetyRating

Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content.

Agentic AIArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage-GenerationLLMMachine-LearningMulti-Modal

Properties

Name Type Description
category string The category for this rating.
probability string The probability of harm for this content.
blocked boolean Was this content blocked because of this rating?
View JSON Schema on GitHub

JSON Schema

google-gemini-safetyrating-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SafetyRating",
  "title": "SafetyRating",
  "type": "object",
  "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content.",
  "properties": {
    "category": {
      "type": "string",
      "description": "The category for this rating.",
      "enum": [
        "HARM_CATEGORY_UNSPECIFIED",
        "HARM_CATEGORY_HATE_SPEECH",
        "HARM_CATEGORY_SEXUALLY_EXPLICIT",
        "HARM_CATEGORY_DANGEROUS_CONTENT",
        "HARM_CATEGORY_HARASSMENT",
        "HARM_CATEGORY_CIVIC_INTEGRITY"
      ]
    },
    "probability": {
      "type": "string",
      "description": "The probability of harm for this content.",
      "enum": [
        "HARM_PROBABILITY_UNSPECIFIED",
        "NEGLIGIBLE",
        "LOW",
        "MEDIUM",
        "HIGH"
      ]
    },
    "blocked": {
      "type": "boolean",
      "description": "Was this content blocked because of this rating?"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-gemini-safetyrating"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.