So what you are suggesting is that this is model specific. Then I should be able to catch the error
So what you are suggesting is that this is model specific. Then I should be able to catch the error and then call a backup model.







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)"
}
} "error": {
"message": "4006: you have used up your daily free allocation of 10,000 neurons, please upgrade to Cloudflare's Workers Paid plan if you would like to continue usage.",
"stage": "pipeline",
"code": "internal_error"
},
"timestamp": "2025-10-27T08:26:51.928Z"