Cloudflare Docs
Workers AI
View RSS feed
Edit this page on GitHub
Set theme to dark (⇧+D)

Changelog

​​ 2024-05-17

​​ Add OpenAI compatible API endpoints

Added OpenAI compatible API endpoints for /v1/chat/completions and /v1/embeddings. For more details, refer to Configurations.

​​ 2024-04-11

​​ Add AI native binding

  • Added new AI native binding, you can now run models with const resp = await env.AI.run(modelName, inputs)
  • Deprecated @cloudflare/ai npm package. While existing solutions using the @cloudflare/ai package will continue to work, no new Workers AI features will be supported. Moving to native AI bindings is highly recommended