New to Exa? Try the Coding Agent Quickstart
to get started in under a minute.
Exa AI SDK
Exa is a Websearch API. Add Exa websearch tool to your LLMs in just a few lines of code. Giving your AI apps websearch capabilities. Works with AI SDK by Vercel.Install
Quick Start
webSearch():
- Type:
auto(best search) - Results:
10 - Text:
3000 characters per result - Livecrawl:
fallback(fresh content when needed)
Setup
- Get your API key from the Exa Dashboard
- Add it to your
.envfile:
Example
Here’s a full-featured example combining the most useful search settings:All Options
TypeScript Support
Full TypeScript types included:Links
- GitHub Repository - View source code of this npm package
- Try npm Package - View on npm
- Vercel AI SDK Docs - Web Search Agent guide featuring Exa
- API Dashboard - Try Exa API on the dashboard
- Get your API Keys - Get your API keys
- Exa Website - Learn more about Exa

