{"uid":"cap_tjEv50IgX_b_YJmoIBEcA","slug":"taifoon-coordination-layer-chat-completions-glm-5-3-c181e27d","name":"Taifoon Coordination Layer – Chat Completions (GLM-5.3)","description":"OpenAI-compatible chat completion on zai-org/GLM-5.3, served by DeepInfra (serverless inference) and sold by Taifoon at the provider's price plus a 20 % reseller cut: 1.08 / 4.8 USD per 1M tokens in/out. This request is priced at its prompt and max_tokens. The answer is checked before you are charged.","url":"https://coord.taifoon.dev/v1/chat/completions/glm-5.3?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","deepseek-v4-flash","ling-3.0-flash"],"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_cSJ5UVHiWHw6lL5VRQjfM","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":"Provides OpenAI-compatible chat completions via a pay-per-call x402 gateway, routing to one of 70+ hosted LLMs including Llama, Mistral, Gemma, Qwen, DeepSeek, and Phi models.","exampleAgentPrompt":"Ask Taifoon's model wall to answer this using Mistral-Small-24B: 'Explain the difference between supervised and unsupervised learning in two sentences', with a max of 200 tokens.","exampleUseCases":[{"title":"Quick LLM answer via micropayment","prompt":"Use the Qwen2.5-7B model on Taifoon to answer this question in under 150 tokens: 'What are the main causes of inflation?'"},{"title":"Code explanation with Phi-4","prompt":"Send this to Taifoon's Phi-4 model and get an explanation: 'Explain what this Python code does: def fib(n): return n if n <= 1 else fib(n-1)+fib(n-2)' — keep it under 300 tokens."},{"title":"Multi-turn chat with DeepSeek","prompt":"Have a short two-turn conversation with Taifoon's deepseek-v4-flash model — first ask 'What is quantum entanglement?', then follow up with 'Give me a real-world analogy for it', max 400 tokens each."}],"resultDescription":"Returns an OpenAI-compatible JSON chat completion object with an id, the model used, a choices array containing the assistant's message and finish_reason, and a usage breakdown of prompt_tokens, completion_tokens, and total_tokens.","failureModes":["Missing or invalid x402 payment header returns 402 Payment Required","No messages array or empty messages array returns 400 Bad Request","Requested model name not found in the 71-model catalog returns 400 or 404","max_tokens exceeds 700 returns validation error","Rate limiting or inference backend unavailability returns 503","Invalid role value in messages returns 400"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call LLM inference with no subscription, want access to a wide catalog of open-source models (Llama, Mistral, Gemma, Qwen, DeepSeek, Phi) through one OpenAI-compatible interface, and are comfortable paying $0.001 USDC per call via x402. Prefer it over OpenAI directly when you want open-source model variety or crypto-native micropayment billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T22:43:53.719Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-chat-completions-glm-5-3-c181e27d"}