{"uid":"cap_q7sq5ZPl-fmj7W6hbaieG","slug":"gedx402-sqlcoder-7b-2-llm-endpoint-664704e6","name":"GEDX402 SQLCoder-7B-2 LLM Endpoint","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://llm.gedx402.com/v1/llm/sqlcoder-7b-2","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string","description":"Speaker role for this turn."},"content":{"type":"string","description":"Message text for this turn."}}},"description":"Conversation turns in order (system, user, assistant)."},"max_tokens":{"type":"integer","maximum":4096,"minimum":1,"description":"Maximum tokens to generate in the assistant reply."}}},"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_HwGvxokpi63DQphHa0G6J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.016","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs the SQLCoder-7B-2 text-to-SQL model via Cloudflare Workers AI, accepting chat-style messages and returning SQL-focused completions, paid per-call with USDC on-chain.","exampleAgentPrompt":"Using the SQLCoder-7B-2 model, write me a SQL query that finds the top 10 customers by total order value from a table called orders with columns customer_id, amount, and created_at — allow up to 512 tokens in the response.","exampleUseCases":null,"resultDescription":"A JSON object containing the model name (@cf/defog/sqlcoder-7b-2) and the assistant's generated response, typically a SQL query or explanation, based on the input messages.","failureModes":["Payment failure if USDC balance insufficient or unsupported chain used","402 Payment Required if x402 payment header is missing or malformed","Invalid input if messages array is empty or missing required role/content fields","max_tokens out of range (must be 1–4096) returns validation error","Model unavailable on Cloudflare Workers AI backend returns 5xx","Malformed JSON request body returns 400"],"whenToPreferThis":"Choose this endpoint when you need a specialized SQL-generation model (SQLCoder-7B-2) without managing API keys, and you are comfortable paying per-call in USDC via the x402 protocol on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents that need on-demand text-to-SQL conversion with crypto micropayments and no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T13:09:02.785Z","isFirstParty":false}