{"uid":"cap_Of4G9bOsJl9Kp2Klu3Vxh","slug":"lodestar-price-chat-completion-api-x402-52048925","name":"Lodestar Price Chat Completion API (x402)","description":"Paid AI API endpoints via x402 micropayments","url":"https://x402-ai-peach.vercel.app/api/lodestar-price","method":"POST","headers":{},"bodySchema":{"type":"object","required":["messages"],"properties":{"stream":{"type":"boolean","description":"Stream response"},"messages":{"type":"array","description":"Chat messages array"},"max_tokens":{"type":"integer","description":"Max tokens"},"temperature":{"type":"number","description":"Temperature"}}},"responseSchema":{"type":"object","properties":{"id":{"type":"string","description":"Response ID"},"choices":{"type":"array","items":{"type":"object","properties":{"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UKfB3ytURTrnURSyXNDga","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides paid chat completions via the Lodestar model through x402 micropayment-gated inference, accepting a messages array and returning a choice-based response.","exampleAgentPrompt":"Ask the Lodestar model this: 'Summarize the key differences between transformer and recurrent neural networks in 3 bullet points' — use up to 300 tokens and a temperature of 0.7.","exampleUseCases":[{"title":"On-demand AI answers for autonomous agents","prompt":"Send this question to the Lodestar chat model and give me the answer: 'What are the top 5 Python libraries for data visualization?' Keep it under 200 tokens and use a temperature of 0.5."},{"title":"Pay-per-use creative writing assistant","prompt":"Use the Lodestar AI to write me a short product description for a new ergonomic standing desk — keep the response under 150 tokens and make it engaging with temperature 0.9."},{"title":"Code explanation via crypto-paid inference","prompt":"Ask the Lodestar model to explain what this Python code does: 'def fib(n): return n if n <= 1 else fib(n-1)+fib(n-2)' — use at most 250 tokens and a temperature of 0.3."}],"resultDescription":"Returns a JSON object with a response ID and a choices array, each choice containing an assistant message with a role and content string — the model's generated text reply to the input messages.","failureModes":["Payment not included or rejected by x402 facilitator — 402 Payment Required response","messages array missing or empty — 400 Bad Request","max_tokens exceeds model context limit — truncated response or error","Temperature out of valid range — validation error","Model unavailable or overloaded — 503 Service Unavailable","Streaming requested but client does not handle chunked responses — incomplete output"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use AI chat completions without a traditional API subscription, especially in agentic or automated contexts where x402 USDC micropayments are already integrated. Ideal for agents that need LLM inference on demand without managing API key billing accounts. Prefer this over OpenAI or Anthropic direct APIs when you want crypto-native, per-call billing via the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:39:16.825Z","isFirstParty":false}