{"uid":"cap_x7A2ElUpZH82oTsybAbfb","slug":"taifoon-chat-completions-qwen3-5-9b-812930e1","name":"Taifoon Chat Completions – Qwen3.5-9B","description":"OpenAI-compatible chat completion on Qwen/Qwen3.5-9B, served by DeepInfra (serverless inference) and sold by Taifoon at the provider's price plus a 20 % reseller cut: 0.12 / 0.18 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/qwen3.5-9b?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.0012","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_UKxzOyGaCkXCd7HIMEcp5","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":"OpenAI-compatible chat completion endpoint serving the Qwen3.5-9B model via Taifoon's coordination layer, payable per-call with USDC","exampleAgentPrompt":"Ask Qwen3.5-9B: given the system message 'You are a helpful coding assistant' and my user message 'Write a Python function that reverses a string', generate a response with up to 500 tokens.","exampleUseCases":[{"title":"Inline reasoning for agent pipeline","prompt":"I'm building an agent that needs to reason about user queries on the fly — use Qwen3.5-9B to answer 'What are three pros and cons of solar energy?' with a system message saying 'Be concise and factual', capped at 300 tokens."},{"title":"Code generation for developer tool","prompt":"My dev tool needs to generate code snippets — send a message to Qwen3.5-9B with the system prompt 'You are an expert Python developer' and the user message 'Write a function to sort a list of dictionaries by a given key', up to 400 tokens."},{"title":"Customer FAQ response drafting","prompt":"I need to auto-draft answers to customer questions — use Qwen3.5-9B with the system message 'You are a friendly support agent for a SaaS product' and the user message 'How do I reset my password?', keeping the reply under 200 tokens."}],"resultDescription":"A JSON chat completion object in OpenAI format containing the assistant's generated message content, the model used, token usage breakdown (prompt, completion, total), finish reason (e.g. 'stop'), and a completion ID. Max 700 completion tokens per response.","failureModes":["Payment not provided or invalid USDC payment — request rejected with 402","max_tokens exceeds 700 — validation error","messages array empty or missing required role/content fields — 400 bad request","Model identifier not recognized — may fall back to default model or return error","Rate limiting or inference backend unavailability — 503 or timeout","No API key provided — 2xx response includes get_key field directing caller to obtain a free key"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, OpenAI-compatible LLM inference endpoint backed by Qwen3.5-9B, billed in USDC via x402, with no subscription required. Ideal for autonomous agents that need on-demand language model inference with crypto-native micropayment settlement. Prefer it over hosted OpenAI or Anthropic APIs when you want open-weight model inference, per-call USDC billing, and compatibility with the x402 payment protocol ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T12:30:49.897Z","isFirstParty":false,"canonicalSlug":"taifoon-chat-completions-qwen3-5-9b-812930e1"}