GET

/v1/schemas/cloudflare-workers-ai/chat/accounts/{account_id}/ai/run/@cf/meta/llama-4-scout-17b-16e-instruct?kind=output

kind outputactivity chathash a6070767…extracted Oct 7, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
ec53cc11eae6333076e292d944f117f75748db4932aeb6d7941acb88a8215d60
{
  "fetchedAt": 1791349950,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

0 properties · 0 required · 0 $defs

This schema isn’t a plain object with properties — showing the raw JSON instead.

application/json
{
  "provider": "cloudflare-workers-ai",
  "activity": "chat",
  "endpointId": "accounts/{account_id}/ai/run/@cf/meta/llama-4-scout-17b-16e-instruct",
  "kind": "output",
  "contentHash": "a6070767a34ee1e9fc259067aa18bc998b3086003801a48c0a5072782c1f7fe2",
  "specRevision": null,
  "provenance": {
    "sourceUrl": "https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/src/content/workers-ai-models/llama-4-scout-17b-16e-instruct.json",
    "sourceHash": "ec53cc11eae6333076e292d944f117f75748db4932aeb6d7941acb88a8215d60",
    "fetchedAt": 1791349950,
    "extractorVersion": "1",
    "derivation": "upstream-spec",
    "verifiedAt": null
  },
  "createdAt": 1791349950,
  "supersededAt": null,
  "schema": {
    "oneOf": [
      {
        "type": "object",
        "contentType": "application/json",
        "properties": {
          "response": {
            "type": "string",
            "description": "The generated text response from the model"
          },
          "usage": {
            "type": "object",
            "description": "Usage statistics for the inference request",
            "properties": {
              "prompt_tokens": {
                "type": "number",
                "description": "Total number of tokens in input",
                "default": 0
              },
              "completion_tokens": {
                "type": "number",
                "description": "Total number of tokens in output",
                "default": 0
              },
              "total_tokens": {
                "type": "number",
                "description": "Total number of input and output tokens",
                "default": 0
              }
            }
          },
          "tool_calls": {
            "type": "array",
            "description": "An array of tool calls requests made during the response generation",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The tool call id."
                },
                "type": {
                  "type": "string",
                  "description": "Specifies the type of tool (e.g., 'function')."
                },
                "function": {
                  "type": "object",
                  "description": "Details of the function tool.",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The name of the tool to be called"
                    },
                    "arguments": {
                      "type": "object",
                      "description": "The arguments passed to be passed to the tool call request"
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "response"
        ]
      },
      {
        "type": "string",
        "contentType": "text/event-stream",
        "format": "binary"
      }
    ]
  }
}

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"cloudflare-workers-ai","endpointId":"accounts/{account_id}/ai/run/@cf/meta/llama-4-scout-17b-16e-instruct","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}