Skip to main content
Version: Stable (v4.x)

Ask AI API Reference

warning
Ask AI is being migrated into Algolia's Agent Studio. You can migrate your assistant now and update DocSearch to use your Agent Studio agent ID. See the Ask AI → Agent Studio migration guide.

The Ask AI API enabled custom chat interfaces powered by Algolia's AI assistant. New and migrating integrations should use Agent Studio instead.

warning

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).

info

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:

Algolia Ask AI API Reference

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.