API Access Overview
Wren AI API access lets you embed natural-language SQL generation and chart generation into your own applications.
The API currently runs in Interactive Mode only. Agentic Mode is not supported. API calls will use Interactive Mode even if the target project has Agentic Mode available.
Only in Essential/ Business Plan and above
Available API capabilities
Wren AI currently provides two main API capabilities:
SQL Generation
Convert natural language questions into SQL queries. This endpoint allows you to:
- Generate SQL from natural language questions
- Execute queries and get results
- Maintain conversation context for follow-up questions
Learn more about SQL generation in our API Reference.
Chart Generation
Create beautiful, interactive visualizations from your query results. This endpoint enables you to:
- Generate Vega-Lite chart specifications
- Create visualizations from natural language questions
- Embed interactive charts in your applications
Learn more about chart generation in our API Reference.
Getting Started
To start using Wren AI's API:
- Get your API key
- Follow our Quick Start guide
- Monitor your API usage in the API History
For detailed API documentation, including request/response formats and examples, visit our API Reference.