{"uid":"cap_B58Ast8KvT2Yylib6ylNZ","slug":"taifoon-coordination-layer-chat-completions-glm-5-2-endpoint-d9fe8b99","name":"Taifoon Coordination Layer – Chat Completions (GLM-5.2 endpoint)","description":"zai-org/GLM-5.2: chat, summarize, translate, extract, classify and write code through one OpenAI-compatible call (messages in, the answer and its token usage out). 0.9 / 2.88 USD per 1M tokens in/out, this request priced at its prompt and max_tokens. Pay per request in USDC with x402 and no account, or use one key for every model we serve. The answer is checked before you are charged.","url":"https://coord.taifoon.dev/v1/chat/completions/glm-5.2?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","examples":["l3-8b-lunaris-v1","llama-3.1-8b-instruct","mistral-small-24b-instruct-2501","gemma-3-4b-it","gpt-oss-20b","phi-4","qwen2.5-7b-instruct","gemma-3-12b-it","qwen3.5-9b","gemma-3-27b-it","ling-3.0-flash","ling-3.0-flash-vl"],"description":"optional; one of the 76 models this wall delivers (GET lists them under terms.models); without it nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16 answers"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{"type":"string"}}},"maxItems":32,"minItems":1},"max_tokens":{"type":"integer","maximum":700,"minimum":1}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-gpu_…","model":"nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16","usage":{"total_tokens":28,"prompt_tokens":14,"completion_tokens":14},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"17 × 24 = 408 (17 × 20 = 340; 17 × 4 = 68; 340 + 68 = 408)."},"finish_reason":"stop"}],"created":1791763200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001512","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.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qSfrsnGo7HgYJNY2w1kOk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Serves OpenAI-compatible chat completions via Taifoon's coordination layer, routing to one of 71 available LLM models for a flat per-call fee paid over x402.","exampleAgentPrompt":"Ask the Taifoon coordination layer to generate a response using llama-3.1-8b-instruct: system prompt 'You are a concise math tutor', user message 'What is 17 times 24?', and limit the reply to 100 tokens.","exampleUseCases":[{"title":"Quick math reasoning via hosted LLM","prompt":"Use the Taifoon pay-per-call API with the phi-4 model to answer this: 'What is the square root of 1764? Show your working.' Keep the reply under 200 tokens."},{"title":"Content summarization with a specific model","prompt":"Send this paragraph to Taifoon using mistral-small-24b-instruct-2501 and ask it to summarize in three bullet points: 'Photosynthesis is the process by which plants convert sunlight, water, and carbon dioxide into glucose and oxygen…' — limit to 300 tokens."},{"title":"Code generation via metered inference","prompt":"Hit the Taifoon coordination layer with the qwen2.5-7b-instruct model, system prompt 'You are a Python expert', and ask: 'Write a function that reverses a linked list.' Max 500 tokens please."}],"resultDescription":"Returns an OpenAI-compatible JSON chat completion object containing: a unique completion ID, the model used, token usage breakdown (prompt, completion, total), the assistant's message content, and a finish_reason. The response mirrors the OpenAI ChatCompletion schema so it can be parsed by any OpenAI-compatible client.","failureModes":["Missing or invalid x402 payment header — 402 Payment Required with a get_key hint in the response body and Link header","No API key provided — 2xx response but body includes get_key field explaining how to obtain a free key","Invalid model name — may fall back to default NVIDIA-Nemotron-3-Nano-4B-BF16 rather than erroring","messages array empty or missing required role/content fields — 422 validation error","max_tokens exceeds 700 — 422 validation error","Model unavailable or overloaded — upstream inference error propagated as 5xx"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call LLM inference API with no subscription, billed at $0.001 USDC per call via x402, and want OpenAI-compatible request/response format. It is ideal for agents that need to call many different models (71 available) through one unified interface, or when you want to avoid committing to a single provider. Prefer this over direct OpenAI or Anthropic APIs when you need micro-payment metering, model variety, or when operating in a web3/x402 payment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T22:43:53.718Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-chat-completions-glm-5-2-endpoint-d9fe8b99"}