Faster Development
Natural Language
SQL Knowledge Required
See how chat2query transforms your development workflow
Explore how chat2query transforms database interactions with AI-powered natural language queries
Generate and customize REST API endpoints from your queries
Use generated APIs in your applications with ease
Ask questions in plain English and get instant SQL queries
Monitor usage, manage databases, and track performance
Browse your database schema and tables intuitively
Official Python SDK for Chat2Query API. Convert natural language to SQL queries with AI-powered database interactions.
More SDKs coming soon
JavaScript/TypeScript, Go, and Ruby SDKs are in development
Everything you need to know about chat2query
All you need is a database URL (PostgreSQL or Supabase) and an OpenAI API key. That's it! You can start chatting with your database right away.
No, we generate your database schema offline and only send the schema along with your question to generate queries. The language model never sees your query results or accesses your database directly. Your data stays secure on your infrastructure.
Currently, we support PostgreSQL and Supabase. Support for MySQL, MongoDB, and other popular databases is coming soon!
Your database URL is the connection string used to connect to your database. It typically looks like: postgres://username:password@hostname:port/dbname
Yes! Every query conversation can be turned into a custom REST API endpoint. You can customize fields and get a unique URL to use in tools like Appsmith, Retool, or your own applications.
We currently support GPT-4 and GPT-3.5-turbo from OpenAI by default. Support for Anthropic Claude, Google Gemini, and other models is coming soon!
Sign up at openai.com and create a new API key in your account settings. Visit https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key for detailed instructions.
Security is our top priority. We encrypt your database URLs and API keys at rest and in transit. Even if someone gains unauthorized access to our database, they cannot decrypt your credentials. We never store your actual data—only connection metadata.
We're building: Slack integration for team collaboration, webhook support for automation, background jobs, increased query limits, data history, SQLite support, and advanced analytics. Stay tuned for exciting updates!
No! The AI is specifically instructed to only generate safe SELECT queries. All queries require your explicit approval before execution—nothing runs automatically. You're always in control.