CORS error for AI Model

I’m trying to access an AI Model using Rest API. but I keep getting CORS error from the browser. How to add cors for the AI model @cf/llava-hf/llava-1.5-7b-hf

e.g.

curl 'https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/run/@cf/llava-hf/llava-1.5-7b-hf' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Referer: http://localhost:8100/' \
  -H 'Authorization: Bearer {TOKEN}' \
  -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1' \
  -H 'Content-Type: application/json' \
  --data-raw '{"image":{"0":104,"1":101,"2":108,"3":108,"4":111},"prompt":"Generate a caption for this image","max_tokens":512}'

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.