{"externalDocs":{"description":"Quickstart and x402 payment flow","url":"https://api.laminarity.uk/docs"},"info":{"description":"Pay-per-request LLM inference for AI agents, served by open-weight models (DeepSeek, GLM, MiniMax). OpenAI-compatible; paid in USDC via x402 — no signup, no API keys.","title":"Laminarity Relay","version":"1.0.0","x-guidance":"POST /v1/chat/completions with an OpenAI chat body (model, messages, optional max_tokens and stream). The first call returns HTTP 402 with x402 payment requirements; sign the USDC payment and retry with the PAYMENT-SIGNATURE header. The price is quoted from the prompt size and max_tokens, so set max_tokens to pay less. GET /v1/models lists models and per-token prices.","x-logo":{"url":"https://api.laminarity.uk/icon.png"}},"openapi":"3.1.0","paths":{"/v1/chat/completions":{"post":{"description":"OpenAI-compatible chat completion. Pay per request in USDC via x402: no signup, no API keys. Price scales with prompt size and max_tokens.","operationId":"chatCompletions","requestBody":{"content":{"application/json":{"example":{"max_tokens":256,"messages":[{"content":"Hello","role":"user"}],"model":"MiniMaxAI/MiniMax-M2.7"},"schema":{"properties":{"max_tokens":{"description":"Upper bound on completion tokens; lower values cost less.","minimum":1,"type":"integer"},"messages":{"items":{"properties":{"content":{"type":"string"},"role":{"enum":["system","user","assistant"],"type":"string"}},"required":["role","content"],"type":"object"},"type":"array"},"model":{"default":"MiniMaxAI/MiniMax-M2.7","description":"Model id from GET /v1/models.","enum":["MiniMaxAI/MiniMax-M2.7","deepseek-ai/DeepSeek-V4-Flash-0731","zai-org/GLM-5.3-Flash","jev"],"type":"string"},"stream":{"default":false,"type":"boolean"},"temperature":{"maximum":2,"minimum":0,"type":"number"}},"required":["model","messages"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"choices":{"items":{"type":"object"},"type":"array"},"created":{"type":"integer"},"id":{"type":"string"},"model":{"type":"string"},"object":{"type":"string"},"usage":{"type":"object"}},"required":["id","object","model","choices"],"type":"object"}}},"description":"Chat completion"},"402":{"description":"Payment Required"}},"summary":"Chat completion","tags":["AI"],"x-payment-info":{"price":{"currency":"USD","max":"0.001229","min":"0.001000","mode":"dynamic"},"protocols":[{"x402":{}}]}}},"/v1/deepseek-v4-flash/chat/completions":{"post":{"description":"DeepSeek V4 Flash chat completions, OpenAI-compatible (POST an OpenAI chat body; the model is fixed by the URL). Use when an agent needs a cheap DeepSeek V4 Flash LLM call without an account or API key. Pay per request in USDC on Base via x402, from $0.001 per call; price scales with prompt size and max_tokens.","operationId":"chat_deepseek-v4-flash","requestBody":{"content":{"application/json":{"example":{"max_tokens":256,"messages":[{"content":"Hello","role":"user"}],"model":"deepseek-ai/DeepSeek-V4-Flash-0731"},"schema":{"properties":{"max_tokens":{"description":"Upper bound on completion tokens; lower values cost less.","minimum":1,"type":"integer"},"messages":{"items":{"properties":{"content":{"type":"string"},"role":{"enum":["system","user","assistant"],"type":"string"}},"required":["role","content"],"type":"object"},"type":"array"},"model":{"default":"deepseek-ai/DeepSeek-V4-Flash-0731","description":"Model id from GET /v1/models.","enum":["deepseek-ai/DeepSeek-V4-Flash-0731"],"type":"string"},"stream":{"default":false,"type":"boolean"},"temperature":{"maximum":2,"minimum":0,"type":"number"}},"required":["model","messages"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"choices":{"items":{"type":"object"},"type":"array"},"created":{"type":"integer"},"id":{"type":"string"},"model":{"type":"string"},"object":{"type":"string"},"usage":{"type":"object"}},"required":["id","object","model","choices"],"type":"object"}}},"description":"Chat completion"},"402":{"description":"Payment Required"}},"summary":"DeepSeek V4 Flash chat completion","tags":["AI"],"x-payment-info":{"price":{"currency":"USD","max":"0.001229","min":"0.001000","mode":"dynamic"},"protocols":[{"x402":{}}]}}},"/v1/glm-5.3-flash/chat/completions":{"post":{"description":"GLM 5.3 Flash chat completions, OpenAI-compatible (POST an OpenAI chat body; the model is fixed by the URL). Use when an agent needs a cheap GLM 5.3 Flash LLM call without an account or API key. Pay per request in USDC on Base via x402, from $0.001 per call; price scales with prompt size and max_tokens.","operationId":"chat_glm-5_3-flash","requestBody":{"content":{"application/json":{"example":{"max_tokens":256,"messages":[{"content":"Hello","role":"user"}],"model":"zai-org/GLM-5.3-Flash"},"schema":{"properties":{"max_tokens":{"description":"Upper bound on completion tokens; lower values cost less.","minimum":1,"type":"integer"},"messages":{"items":{"properties":{"content":{"type":"string"},"role":{"enum":["system","user","assistant"],"type":"string"}},"required":["role","content"],"type":"object"},"type":"array"},"model":{"default":"zai-org/GLM-5.3-Flash","description":"Model id from GET /v1/models.","enum":["zai-org/GLM-5.3-Flash"],"type":"string"},"stream":{"default":false,"type":"boolean"},"temperature":{"maximum":2,"minimum":0,"type":"number"}},"required":["model","messages"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"choices":{"items":{"type":"object"},"type":"array"},"created":{"type":"integer"},"id":{"type":"string"},"model":{"type":"string"},"object":{"type":"string"},"usage":{"type":"object"}},"required":["id","object","model","choices"],"type":"object"}}},"description":"Chat completion"},"402":{"description":"Payment Required"}},"summary":"GLM 5.3 Flash chat completion","tags":["AI"],"x-payment-info":{"price":{"currency":"USD","max":"0.001229","min":"0.001000","mode":"dynamic"},"protocols":[{"x402":{}}]}}},"/v1/minimax-m2.7/chat/completions":{"post":{"description":"MiniMax M2.7 chat completions, OpenAI-compatible (POST an OpenAI chat body; the model is fixed by the URL). Use when an agent needs a cheap MiniMax M2.7 LLM call without an account or API key. Pay per request in USDC on Base via x402, from $0.001 per call; price scales with prompt size and max_tokens.","operationId":"chat_minimax-m2_7","requestBody":{"content":{"application/json":{"example":{"max_tokens":256,"messages":[{"content":"Hello","role":"user"}],"model":"MiniMaxAI/MiniMax-M2.7"},"schema":{"properties":{"max_tokens":{"description":"Upper bound on completion tokens; lower values cost less.","minimum":1,"type":"integer"},"messages":{"items":{"properties":{"content":{"type":"string"},"role":{"enum":["system","user","assistant"],"type":"string"}},"required":["role","content"],"type":"object"},"type":"array"},"model":{"default":"MiniMaxAI/MiniMax-M2.7","description":"Model id from GET /v1/models.","enum":["MiniMaxAI/MiniMax-M2.7"],"type":"string"},"stream":{"default":false,"type":"boolean"},"temperature":{"maximum":2,"minimum":0,"type":"number"}},"required":["model","messages"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"choices":{"items":{"type":"object"},"type":"array"},"created":{"type":"integer"},"id":{"type":"string"},"model":{"type":"string"},"object":{"type":"string"},"usage":{"type":"object"}},"required":["id","object","model","choices"],"type":"object"}}},"description":"Chat completion"},"402":{"description":"Payment Required"}},"summary":"MiniMax M2.7 chat completion","tags":["AI"],"x-payment-info":{"price":{"currency":"USD","max":"0.001229","min":"0.001000","mode":"dynamic"},"protocols":[{"x402":{}}]}}},"/v1/models":{"get":{"operationId":"listModels","responses":{"200":{"description":"Model list"}},"security":[],"summary":"List models and per-token prices"}},"/v1/premium/chat/completions":{"post":{"description":"OpenAI-compatible chat completion. Pay per request in USDC via x402: no signup, no API keys. Price scales with prompt size and max_tokens.","operationId":"premiumChatCompletions","requestBody":{"content":{"application/json":{"example":{"max_tokens":256,"messages":[{"content":"Hello","role":"user"}],"model":"MiniMaxAI/MiniMax-M2.7"},"schema":{"properties":{"max_tokens":{"description":"Upper bound on completion tokens; lower values cost less.","minimum":1,"type":"integer"},"messages":{"items":{"properties":{"content":{"type":"string"},"role":{"enum":["system","user","assistant"],"type":"string"}},"required":["role","content"],"type":"object"},"type":"array"},"model":{"default":"MiniMaxAI/MiniMax-M2.7","description":"Model id from GET /v1/models.","enum":["MiniMaxAI/MiniMax-M2.7","deepseek-ai/DeepSeek-V4-Flash-0731","zai-org/GLM-5.3-Flash","jev"],"type":"string"},"stream":{"default":false,"type":"boolean"},"temperature":{"maximum":2,"minimum":0,"type":"number"}},"required":["model","messages"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"choices":{"items":{"type":"object"},"type":"array"},"created":{"type":"integer"},"id":{"type":"string"},"model":{"type":"string"},"object":{"type":"string"},"usage":{"type":"object"}},"required":["id","object","model","choices"],"type":"object"}}},"description":"Chat completion"},"402":{"description":"Payment Required"}},"summary":"Chat completion (premium alias)","tags":["AI"],"x-payment-info":{"price":{"currency":"USD","max":"0.001229","min":"0.001000","mode":"dynamic"},"protocols":[{"x402":{}}]}}}},"servers":[{"url":"/"}]}
