You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/connect > workers ai > add api key > test with workers ai model
"Not Found: {"result":null,"success":false,"errors":[{"code":7003,"message":"Could not route to /client/v4/accounts/$%7BCLOUDFLARE_ACCOUNT_ID%7D/ai/v1/chat/completions, perhaps your object identifier is invalid?"}],"messages":[]}!
In the docs it says it will ask for the account id and and gateway id but I don't think it did ask for that and thus if you don't set the correct env vars and only enter the api key it won't work. I ran into something similar.
Activity
Vishal2002 commentedon Mar 22, 2026
I tried it and worked fine for me with Cloudflare Worker AI
rekram1-node commentedon Mar 22, 2026
please provide me more info like what account you are using
also are u setting that env var for ur account id?
Vishal2002 commentedon Mar 22, 2026
I am setting the env var for Cloudflare AI gateway from the TUI.
rekram1-node commentedon Mar 22, 2026
sorry i was replying to OP who is having issue, not you
kobicovaldev commentedon Apr 13, 2026
In the docs it says it will ask for the account id and and gateway id but I don't think it did ask for that and thus if you don't set the correct env vars and only enter the api key it won't work. I ran into something similar.
jiangyums commentedon Apr 21, 2026
the bug is in the vscode plugin,and desktop is ok
jiangyums commentedon Apr 21, 2026
windows10,i have set Environment Variables ,account id and api key