does workers ai json mode respect patterns in the json schema?
does workers ai json mode respect patterns in the json schema?
llama-4 and gpt-oss-120b response in provided JSON schema. But keep it mind that schema Must well defined and emphasize in your prompt that use JSON schema.
gpt-oss-120b, 10000/1000000*0.35 + 1000/1000000*0.75 = $0.00425/request100/1000000*0.35 + 100/1000000*0.75 = $0.00011/requestAiError: 3040: Capacity temporarily exceeded, please try again. This appears to happen intermittently, I have had this occur in the past, and it eventually resolves itself. Is there any information as to the cause, how to prevent it and what can be done to resolve it when these errors occur?"@cf/meta/llama-4-scout-17b-16e-instruct"



llama-4gpt-oss-120bgpt-oss-120b10000/1000000*0.35 + 1000/1000000*0.75 = $0.00425/request100/1000000*0.35 + 100/1000000*0.75 = $0.00011/requestAiError: 3040: Capacity temporarily exceeded, please try again."@cf/meta/llama-4-scout-17b-16e-instruct"curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run/@cf/meta/llama-4-scout-17b-16e-instruct \
-X POST \
-H "Authorization: Bearer $CLOUDFLARE_AUTH_TOKEN" \
-d '{ "messages": [{ "role": "system", "content": "You are a friendly assistant" }, { "role": "user", "content": "Why is pizza so good" }]}'{
"error": {
"code": "invalid_prompt",
"message": "AiError: AiError: Request timeout (a613c7db-647c-4c07-ba94-a5702bc99d52)"
}
}