{"uid":"cap_tkO_E1CuT5im3dXcYReuM","slug":"ioswarm-io-llm-chat-completion-5893e89f","name":"ioswarm.io LLM Chat Completion","description":"One language-model completion, paid per call — the same engine the swarm runs on, in the OpenAI messages shape. Up to 24 messages in and 1024 tokens out. USD 0.02 per call, no account, no key.","url":"https://ioswarm.io/api/v1/x402/chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"maxItems":24,"description":"OpenAI-shaped conversation; the whole thing is sent as one call."},"max_tokens":{"type":"integer","maximum":1024,"description":"Output cap; default 512."},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RMyDwOXsEHMG8yOatoV0A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a single OpenAI-compatible chat completion (up to 24 messages in, 1024 tokens out) for $0.02 per call with no account or API key required.","exampleAgentPrompt":"Ask the LLM: given the system prompt 'You are a concise assistant' and the user message 'Explain quantum entanglement in two sentences', return the completion — keep max_tokens at 256 and temperature at 0.7.","exampleUseCases":[{"title":"Quick one-off AI answer","prompt":"I need a quick AI-generated answer — send the message 'What are the top 3 benefits of intermittent fasting?' to the LLM with a system prompt saying 'You are a helpful health advisor', max 300 tokens, temperature 0.5."},{"title":"Inline prompt testing during development","prompt":"Test this prompt for me: system says 'You are a JSON-only responder', user says 'List 5 world capitals as a JSON array'. Run it with temperature 0 and 512 max tokens and show me what the model returns."},{"title":"Multi-turn conversation summarization","prompt":"Continue this conversation and get the assistant's next reply — system: 'You are a debate coach', user: 'What is the strongest argument for universal basic income?', assistant: 'The strongest argument is economic security as a floor.', user: 'Now give me the strongest counter-argument.' Use temperature 0.8 and up to 400 tokens."}],"resultDescription":"Returns an OpenAI-shaped chat completion response containing the assistant's generated reply text, produced from the provided conversation messages within the configured token and temperature limits.","failureModes":["Payment not received or insufficient — call blocked before inference runs","Message array exceeds 24 items — schema validation error","max_tokens exceeds 1024 — rejected by schema","Invalid role value in messages array — validation error","Network timeout if model inference takes too long","Empty messages array — required field missing error"],"whenToPreferThis":"Choose this endpoint when you need a single, stateless LLM chat completion with no account setup, no API key management, and a flat $0.02 micropayment via x402. It is ideal for agents making occasional or unpredictable LLM calls where OpenAI account overhead is undesirable, or for serverless/anonymous contexts. Prefer a direct OpenAI or Anthropic integration if you need streaming, function calling, vision, or more than 1024 output tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:42:24.636Z","isFirstParty":false,"canonicalSlug":"ioswarm-io-llm-chat-completion-5893e89f"}