{"uid":"cap_L11DelFq8acCr2vD1LQPL","slug":"gedx402-sqlcoder-7b-2-llm-x402-no-api-key-b8627aa3","name":"GEDX402 SQLCoder-7B-2 LLM (x402, no API key)","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://ged-x402-llm.jvalamis.workers.dev/v1/llm/sqlcoder-7b-2","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object"}},"max_tokens":{"type":"integer"}}},"responseSchema":{"type":"json","example":{"model":"@cf/defog/sqlcoder-7b-2","response":"Hello!"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.016","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.016/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.016","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.016","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CifkXSilOPNXMzwzDsq9i","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.016","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs Cloudflare Workers AI's SQLCoder-7B-2 text-to-SQL model, billed per-call in USDC via x402 with no API key required.","exampleAgentPrompt":"Using the SQLCoder model, convert this natural language question into SQL: given a table called 'orders' with columns order_id, customer_id, amount, and created_at, write a query to find the top 5 customers by total spend in the last 30 days — limit the response to 512 tokens.","exampleUseCases":null,"resultDescription":"A JSON object containing the model name (@cf/defog/sqlcoder-7b-2) and the generated assistant response, typically a SQL query or SQL-related text, as a plain string.","failureModes":["Payment not received or insufficient USDC balance — 402 Payment Required","Invalid message role (not system/user/assistant) — validation error","max_tokens out of range (1–4096) — bad request","Network timeout from Cloudflare Workers edge — 5xx error","Empty or malformed messages array — bad request"],"whenToPreferThis":"Choose this endpoint when you need SQL generation specifically via the defog/SQLCoder-7B-2 model, want to pay per-call in USDC across multiple chains (Base, Polygon, Arbitrum, World, Solana) without managing API keys, and want to avoid OpenAI/Anthropic billing accounts. Ideal for agents operating in crypto-native environments needing on-demand SQL generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:59.654Z","isFirstParty":false}