Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man sql-from-prompt

/sql-from-prompt

agentutility / wordmint / sql-from-prompt
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
wordmint
CATEGORY
ai
STATUS
live
NAME
sql-from-prompt text to sql / nl to sql / ai sql generator
SYNOPSIS
POST https://x402.agentutility.ai/sql-from-prompt
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Text to SQL / NL to SQL / AI SQL generator. Postgres, MySQL, SQLite, BigQuery, Snowflake, MSSQL, DuckDB, ANSI. Optional schema. Returns SQL + explanation + tables_referenced + is_destructive + warnings.

INPUTrequest schema
propertytypedescriptionreq?
promptstringNatural-language description of the query you want, e.g. 'top 10 customers by revenue last quarter'.required
schemastringOptional CREATE TABLE / DDL or schema description.optional
dialectstringTarget SQL dialect: postgres, mysql, sqlite, bigquery, snowflake, mssql, duckdb, or ansi.
enum: postgres · mysql · sqlite · bigquery · snowflake · mssql · duckdb · ansi
optional
OUTPUTresponse shape
fieldtypedescription
sqlstringGenerated SQL query string in the requested dialect, ready to run against your database.
dialectstringSQL dialect the query was generated for (echoes the input or defaults if none was supplied).
explanationstringPlain-English summary of what the SQL does and how it answers the prompt.
tables_referencedarrayArray of table names the generated SQL reads from or writes to.
is_destructivebooleanTrue if the SQL contains DELETE, DROP, TRUNCATE, UPDATE, or other mutating statements.
warningsarrayArray of caveats like missing schema info, ambiguous columns, or potentially expensive scans.
modelstringIdentifier of the LLM that generated the SQL (e.g. claude-sonnet-4-6).
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/sql-from-prompt \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# MCP packages on npm under
# @agentutility/mcp-*  (one per cluster)
#
# Catalog + install:
# https://mcp.agentutility.ai
#
# Or call sql-from-prompt directly over HTTP — see above.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
sqldeveloperaiquerydatabase
env
VENICE_API_KEY
methods
POST
cluster
wordmint
price
$0.02 USDC per call
ADJACENTother endpoints in wordmint
endpointdescriptionprice
classifyZero-shot text classifier.$0.02
classify-textText classifier / zero-shot classifier / category sorter.$0.02
describe-imageAI image descriptor / vision LLM.$0.02
detect-piiPII detector / data leak scanner.$0.02
email-draftAI email writer / cold outreach / follow-up generator.$0.02
extractNamed entity extractor / NER.$0.02
moderate-contentContent moderation / safety classifier / OpenAI-style toxicity API.$0.02
resume-scorerAI resume scorer / ATS keyword analyzer.$0.02
SEE ALSO
agentutility · wordmint · x402 · mcp · llms.txt · registry.json · bazaar.x402.org