{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-ai-run-response-schema.json",
  "title": "AiRunResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudflare-ai-inference-api-openapi.yml#/components/schemas/AiRunResponse",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "properties": {
        "response": {
          "type": "string",
          "description": "The generated text response."
        }
      }
    },
    "success": {
      "type": "boolean"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}