GET
/v1/schemas/cloudflare-workers-ai/chat/accounts/{account_id}/ai/run/@cf/meta/llama-3.2-3b-instruct?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracee249f596141300c5befb9b87f7d7b075c2b34df8ff63733a6ca115e3c6376de0{
"fetchedAt": 1791349950,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
0 properties · 0 required · 0 $defsThis 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-3.2-3b-instruct",
"kind": "output",
"contentHash": "6497e11c17b9abe6c084ed68a874f592521df758f4665259c602387ede790075",
"specRevision": null,
"provenance": {
"sourceUrl": "https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/src/content/workers-ai-models/llama-3.2-3b-instruct.json",
"sourceHash": "e249f596141300c5befb9b87f7d7b075c2b34df8ff63733a6ca115e3c6376de0",
"fetchedAt": 1791349950,
"extractorVersion": "1",
"derivation": "upstream-spec",
"verifiedAt": null
},
"createdAt": 1791349950,
"supersededAt": null,
"schema": {
"oneOf": [
{
"type": "object",
"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": {
"arguments": {
"type": "object",
"description": "The arguments passed to be passed to the tool call request"
},
"name": {
"type": "string",
"description": "The name of the tool to be called"
}
}
}
}
},
"required": [
"response"
]
},
{
"type": "string",
"format": "binary"
}
]
}
}Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"cloudflare-workers-ai","endpointId":"accounts/{account_id}/ai/run/@cf/meta/llama-3.2-3b-instruct","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}