{"uid":"cap_8fY99OAuazAxu8WhccTMX","slug":"gedx402-phi-2-llm-bee71b7a","name":"GEDX402 Phi-2 LLM","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://chat.gedx402.com/v1/llm/phi-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/microsoft/phi-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_knF6S6Mg0jWei3qUXhpoc","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":"Run Microsoft Phi-2 language model inference via x402 micropayment, no API key required","exampleAgentPrompt":"Chat with the Phi-2 model and answer this question: 'Explain the difference between supervised and unsupervised learning in 3 sentences' — use up to 256 tokens and no system prompt.","exampleUseCases":null,"resultDescription":"A JSON object containing the model identifier '@cf/microsoft/phi-2' and a 'response' string with the generated assistant reply text.","failureModes":["Payment not received or insufficient USDC balance — 402 Payment Required returned","Invalid messages array structure (missing role or content fields) — 400 Bad Request","max_tokens exceeds 4096 limit — validation error","Unsupported payment network used — payment fails","Model overloaded or Cloudflare Workers AI unavailable — 503 error","Empty messages array — no completion generated"],"whenToPreferThis":"Choose this endpoint when you need lightweight LLM inference via pay-per-call micropayments without any API key registration. Phi-2 is a small, efficient model well-suited for reasoning and instruction-following tasks. Prefer this over larger model endpoints when cost-per-call matters, when you want to pay in USDC across Base, Polygon, Arbitrum, World, or Solana, or when you want to avoid rate limits and subscription overhead associated with traditional LLM APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:07.872Z","isFirstParty":false}