references/ai-search/api.md
AI Search API Routes
Choose documentation that matches the integration you are working on. Fetch the reference before writing binding configuration, request types, response parsing, or streaming code.
| Task | Documentation |
|------|---------------|
| New Worker integration: bindings, search, chat completions, and streaming | Search Workers binding |
| Create, list, configure, and inspect instances | Instances Workers binding |
| Query over HTTP and configure request authentication | Search REST API |
| Maintain an existing env.AI.autorag() integration | Legacy Workers binding |
| Upgrade a legacy binding, including responses, streaming, and filters | Workers binding migration |
The legacy binding remains supported; use current bindings for new integrations. Keep legacy request and response handling together until deliberately migrating them.