Ask AI API Reference
The Ask AI API enabled custom chat interfaces powered by Algolia's AI assistant. New and migrating integrations should use Agent Studio instead.
If you currently call the Ask AI API directly, migrate to the Agent Studio APIs. DocSearch users should follow the migration guide and enable agentStudio: true (v4) or pass the agent ID (v5).
This page is mainly for developers who built custom Ask AI HTTP clients. If you use the DocSearch package, configure Agent Studio through DocSearch — see Migrate Ask AI to Agent Studio.
Where to go now
Use Agent Studio for agents, completions, and related APIs:
- Agent Studio documentation — create and manage agents
- Completions host pattern:
https://{APPLICATION_ID}.algolia.net/agent-studio/1/agents/{AGENT_ID}/completions
Legacy Ask AI API (deprecated)
Legacy Ask AI HTTP docs remain available for reference while you migrate:
That reference covers the older Ask AI token, chat, and feedback endpoints. Prefer Agent Studio for all new work.
For DocSearch SDK setup (including agentStudio: true), see Migrate Ask AI to Agent Studio and Get started with Ask AI.