{"uid":"cap_-_KmjO5GH_1JKtT7M_gv7","slug":"llm-chat-completions-via-apex-faucet-x402-72fea608","name":"LLM Chat Completions via APEX Faucet (x402)","description":"Free APEX on X1, and free USDC plus APEX on Arc, three times a day. No gas, no sign-up. Plus a swap, a screener, APEX City and token checks.","url":"https://apexfaucet.xyz/api/x402/chat-completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-oss-120b","gpt-oss-20b","llama-3.3-70b","llama-3.1-8b","qwen3-30b"],"type":"string","description":"Default gpt-oss-120b."},"tools":{"type":"array","description":"OpenAI-style function tools (optional)."},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"role":{"enum":["system","user","assistant","tool","developer"],"type":"string"},"content":{"type":"string"}}},"maxItems":64,"minItems":1},"max_tokens":{"type":"integer","maximum":1024,"minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0},"reasoning_effort":{"enum":["low","medium","high"],"type":"string","description":"gpt-oss and qwen3 only; default low."}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"ok":{"type":"boolean"},"data":{"type":"object"},"paid":{"type":"number"}}},"example":{"ok":true,"data":{},"paid":0.002}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i5HiwwASYjeKugd0P1J1o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible chat completion API supporting multiple open-source LLMs, billed at $0.002 USDC per call via x402 micropayment protocol.","exampleAgentPrompt":"Send a chat completion request using gpt-oss-120b with this system prompt: 'You are a helpful assistant.' and user message: 'Explain the concept of zero-knowledge proofs in simple terms.' Keep the response under 512 tokens.","exampleUseCases":[{"title":"On-demand LLM reasoning for agents","prompt":"Ask llama-3.3-70b to analyze this text and extract all named entities: 'Elon Musk announced that Tesla will open a new Gigafactory in Austin, Texas by Q3 2025.' Use medium reasoning effort and keep it under 300 tokens."},{"title":"Tool-calling workflow automation","prompt":"Use gpt-oss-120b with my get_weather function tool defined as {name: get_weather, parameters: {location: string}} and send the user message: 'What's the weather like in Paris right now?' so it can decide to call the tool."},{"title":"Quick summarization with small model","prompt":"Use llama-3.1-8b to summarize this article in 3 bullet points: [article text]. Keep the output under 200 tokens to save cost."}],"resultDescription":"Returns a JSON object with `ok: true`, a `data` field containing the OpenAI-compatible chat completion response (including choices, message content, and tool calls if applicable), and a `paid` field confirming the $0.002 USDC micropayment amount deducted.","failureModes":["Insufficient USDC balance causes x402 payment failure and request rejection","max_tokens exceeds 1024 causes validation error","Empty or malformed messages array returns 400 error","Invalid model name not in enum causes rejection","Streaming not supported — requests with stream:true will fail or be ignored","Context window overflow if messages array is too large or content too long"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call LLM API with no subscription or API key, especially in agentic or automated workflows using the x402 micropayment protocol. It's ideal for low-volume or bursty inference needs where you want to pay $0.002 per call in USDC rather than managing a monthly plan. Good for agents that need OpenAI-compatible chat completions with tool/function calling support using open-source models like Llama or Qwen.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T13:07:38.057Z","isFirstParty":false,"canonicalSlug":"llm-chat-completions-via-apex-faucet-x402-72fea608"}