{"name":"sql-from-prompt","description":"Turns natural language into SQL for Postgres, MySQL, SQLite, BigQuery, Snowflake, MSSQL, DuckDB, or ANSI. Optional schema input; returns SQL plus explanation, tables_referenced, is_destructive, and warnings. Use it as a text to SQL converter, NL to SQL tool, or AI SQL generator.","price":"$0.02","method":"POST","input_schema":{"properties":{"prompt":{"type":"string","description":"Natural-language description of the query to generate. Max 5,000 chars."},"schema":{"type":"string","description":"Optional. Schema description (tables/columns) to ground the generated SQL. Max 30,000 chars."},"dialect":{"type":"string","enum":["postgres","mysql","sqlite","bigquery","snowflake","mssql","duckdb","ansi"],"description":"Optional. Target SQL dialect: postgres (default), mysql, sqlite, bigquery, snowflake, mssql, duckdb, or ansi."}},"required":["prompt"]},"input_example":{"prompt":"Top 10 customers by lifetime spend in 2026","dialect":"postgres"},"output_example":{"sql":"SELECT...","dialect":"postgres","is_destructive":false},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}