GET
/v1/schemas/cloudflare-workers-ai/chat/accounts/{account_id}/ai/run/@cf/qwen/qwen3-30b-a3b-fp8?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source traceabc8a86b5bb2f38a59a70f5600d4dfbb49dcce4fa842d3a663856936e2c38a81{
"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/qwen/qwen3-30b-a3b-fp8",
"kind": "output",
"contentHash": "b941597f162432a6fe2ac472c68bae14da2c0dd40bfd31aa0ce12176eee6dca7",
"specRevision": null,
"provenance": {
"sourceUrl": "https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/src/content/workers-ai-models/qwen3-30b-a3b-fp8.json",
"sourceHash": "abc8a86b5bb2f38a59a70f5600d4dfbb49dcce4fa842d3a663856936e2c38a81",
"fetchedAt": 1791349950,
"extractorVersion": "1",
"derivation": "upstream-spec",
"verifiedAt": null
},
"createdAt": 1791349950,
"supersededAt": null,
"schema": {
"oneOf": [
{
"type": "object",
"contentType": "application/json",
"title": "Chat Completion Response",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the completion"
},
"object": {
"type": "string",
"enum": [
"chat.completion"
],
"description": "Object type identifier"
},
"created": {
"type": "number",
"description": "Unix timestamp of when the completion was created"
},
"model": {
"type": "string",
"description": "Model used for the completion"
},
"choices": {
"type": "array",
"description": "List of completion choices",
"items": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "Index of the choice in the list"
},
"message": {
"type": "object",
"description": "The message generated by the model",
"properties": {
"role": {
"type": "string",
"description": "Role of the message author"
},
"content": {
"type": "string",
"description": "The content of the message"
},
"reasoning_content": {
"type": "string",
"description": "Internal reasoning content (if available)"
},
"tool_calls": {
"type": "array",
"description": "Tool calls made by the assistant",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the tool call"
},
"type": {
"type": "string",
"enum": [
"function"
],
"description": "Type of tool call"
},
"function": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the function to call"
},
"arguments": {
"type": "string",
"description": "JSON string of arguments for the function"
}
},
"required": [
"name",
"arguments"
]
}
},
"required": [
"id",
"type",
"function"
]
}
}
},
"required": [
"role",
"content"
]
},
"finish_reason": {
"type": "string",
"description": "Reason why the model stopped generating"
},
"stop_reason": {
"type": [
"string",
"null"
],
"description": "Stop reason (may be null)"
},
"logprobs": {
"type": [
"object",
"null"
],
"description": "Log probabilities (if requested)"
}
}
}
},
"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
}
}
},
"prompt_logprobs": {
"type": [
"object",
"null"
],
"description": "Log probabilities for the prompt (if requested)"
}
}
},
{
"type": "object",
"contentType": "application/json",
"title": "Text Completion Response",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the completion"
},
"object": {
"type": "string",
"enum": [
"text_completion"
],
"description": "Object type identifier"
},
"created": {
"type": "number",
"description": "Unix timestamp of when the completion was created"
},
"model": {
"type": "string",
"description": "Model used for the completion"
},
"choices": {
"type": "array",
"description": "List of completion choices",
"items": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "Index of the choice in the list"
},
"text": {
"type": "string",
"description": "The generated text completion"
},
"finish_reason": {
"type": "string",
"description": "Reason why the model stopped generating"
},
"stop_reason": {
"type": [
"string",
"null"
],
"description": "Stop reason (may be null)"
},
"logprobs": {
"type": [
"object",
"null"
],
"description": "Log probabilities (if requested)"
},
"prompt_logprobs": {
"type": [
"object",
"null"
],
"description": "Log probabilities for the prompt (if requested)"
}
},
"required": [
"index",
"text",
"finish_reason"
]
}
},
"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
}
}
}
}
},
{
"type": "string",
"contentType": "text/event-stream",
"format": "binary"
},
{
"type": "object",
"contentType": "application/json",
"title": "Async response",
"properties": {
"request_id": {
"type": "string",
"description": "The async request id that can be used to obtain the results."
}
}
}
]
}
}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/qwen/qwen3-30b-a3b-fp8","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}