{"uid":"cap_DorbJFtIuAEkLuG-1F8gy","slug":"pagos-andreax-dev-natural-language-to-sql-generator-a20d0b22","name":"pagos.andreax.dev Natural Language to SQL Generator","description":"Genera SQL desde lenguaje natural. Para agentes/analistas de datos. input=petición.","url":"https://pagos.andreax.dev/api/taller/peaje/sql","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"petición en lenguaje natural"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oZG_vtUsQbQWhJkl8fvXS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a natural language request into a SQL query using an LLM backend","exampleAgentPrompt":"Write me a SQL query that gets the total sales per region for the last 30 days, grouped by product category and sorted by revenue descending.","exampleUseCases":[{"title":"Analyst querying sales data","prompt":"I need a SQL query that shows the top 10 customers by total order value in 2024, including their email and country — can you generate that for me?"},{"title":"Developer automating report generation","prompt":"Generate SQL to find all users who signed up in the last 7 days but haven't made a purchase yet, pulling their name, email, and signup date."},{"title":"Data agent pipeline step","prompt":"Translate this into SQL: show me the average session duration per device type for last month, only for users from Spain, ordered by longest session first."}],"resultDescription":"Returns a SQL query string generated from the natural language input, ready to be executed against a relational database. The response reflects the intent described in plain language, including clauses like SELECT, WHERE, GROUP BY, ORDER BY as appropriate.","failureModes":["Ambiguous natural language input may produce incorrect or incomplete SQL — rephrase with more specific column and table names","Very domain-specific schemas not described in the prompt may yield generic or placeholder SQL","LLM backend errors may return a 500 or empty response","Missing required 'input' query parameter returns a validation error","Overly complex multi-step queries may be partially rendered or simplified"],"whenToPreferThis":"Choose this endpoint when you need to quickly generate SQL from a plain English description without requiring the user to know SQL syntax. Ideal for data analyst agents, BI automation pipelines, or any workflow where non-technical users need to query relational databases. Prefer this over generic LLM endpoints when you want a low-cost, purpose-built SQL generation tool with a simple GET interface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:46:40.781Z","isFirstParty":false}