{"uid":"cap_LyGAOQxo9_G-Nc-YrFr61","slug":"openrelay-llm-inference-cc3d8a2c","name":"OpenRelay LLM Inference","description":"Pay-per-request LLM inference for AI agents. OpenAI-compatible, paid in USDC via x402.","url":"https://api.laminarity.uk/v1/premium/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["MiniMaxAI/MiniMax-M2.7","deepseek-ai/DeepSeek-V4-Flash-0731","zai-org/GLM-5.3-Flash","jev"],"type":"string","default":"MiniMaxAI/MiniMax-M2.7","description":"Model id from GET /v1/models."},"stream":{"type":"boolean","default":false},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer","minimum":1,"description":"Upper bound on completion tokens; lower values cost less."},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-example","model":"zai-org/GLM-5.3-Flash","usage":{"total_tokens":12,"prompt_tokens":9,"completion_tokens":3},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001229","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.001229/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001229","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001229","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DEBjlJp_Qea-EXBL8937z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001229","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pay-per-request OpenAI-compatible LLM chat completions endpoint, billed in USDC via x402 micropayments","exampleAgentPrompt":"Using the GLM-5.3-Flash model, send this conversation to OpenRelay and get a reply: system prompt is 'You are a helpful assistant', user message is 'Explain what x402 payment protocol is in two sentences', keep max_tokens to 200.","exampleUseCases":[{"title":"Autonomous agent reasoning loop","prompt":"I need my agent to think through a multi-step plan — send this message thread to the GLM-5.3-Flash model on OpenRelay with a system prompt of 'You are a reasoning assistant' and limit the response to 300 tokens so I keep costs down."},{"title":"Cost-controlled content summarization","prompt":"Summarize this article using the DeepSeek-V4-Flash-0731 model on OpenRelay: cap it at 150 tokens and use a temperature of 0.3 for a factual, concise result."},{"title":"On-demand chatbot backend for a dApp","prompt":"Route this user's question to the MiniMax-M2.7 model via OpenRelay — the message is 'How do I stake my tokens?', system role is 'You are a DeFi support agent', and stream the response back to me."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply text, finish reason (e.g. 'stop'), and token usage statistics (prompt tokens, completion tokens, total tokens), along with the model name and a unique completion ID.","failureModes":["Payment not received or USDC balance insufficient — 402 Payment Required with x402 challenge","Invalid model ID not in allowed enum — 422 Unprocessable Entity","messages array missing required role or content fields — 400 Bad Request","temperature outside 0–2 range — 400 Bad Request","max_tokens set to 0 or negative — 400 Bad Request","Model temporarily unavailable or upstream inference error — 503 Service Unavailable","Request timeout for very large completions — 504 Gateway Timeout"],"whenToPreferThis":"Choose OpenRelay when you need OpenAI-SDK-compatible LLM inference with no subscription or API key setup — just pay per call in USDC via the x402 protocol. Ideal for autonomous AI agents that need to self-fund inference, for developers who want cost-controlled pay-as-you-go access to models like GLM-5.3-Flash, DeepSeek-V4-Flash, or MiniMax-M2.7 without committing to a monthly plan, or for Web3-native applications where crypto micropayments are the preferred billing mechanism.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:36:01.725Z","isFirstParty":false,"canonicalSlug":"openrelay-llm-inference-4f8c7170"}