{"uid":"cap_LG-ICIf41tA-GsFvgKpfU","slug":"agent-toolbox-qwen3-30b-chat-completion-17087538","name":"Agent Toolbox – Qwen3-30B Chat Completion","description":"OpenAI-compatible chat completion with Qwen3 30B (fast mixture-of-experts model): set the base URL to /v1/llm/qwen3-30b in any OpenAI SDK. Up to 32,000 characters in and 2,048 tokens out per call, a fixed price per call, no streaming.","url":"https://agent-toolbox.zafermemon87.workers.dev/v1/llm/qwen3-30b/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}},"description":"OpenAI chat messages: [{role: system|user|assistant, content}] (up to 32,000 characters in total)"},"max_tokens":{"type":"integer","maximum":2048,"minimum":1,"description":"Default 2048"},"temperature":{"type":"number","maximum":2,"minimum":0},"response_format":{"type":"object","description":"{\"type\": \"json_object\"} for JSON output"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-4RiGUS_zzMhUolqjgiKF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 powered by the Qwen3 30B mixture-of-experts model, accepting up to 32,000 characters of input and returning up to 2,048 tokens.","exampleAgentPrompt":"Use the Qwen3 30B model to answer the following question in JSON format: 'What are the top 5 benefits of renewable energy?' — keep the response concise and limit output to 512 tokens.","exampleUseCases":[{"title":"Agentic reasoning with structured output","prompt":"Send this message to the Qwen3 30B model and give me the answer as a JSON object: 'Extract the company name, date, and total amount from this invoice text: Acme Corp, January 15 2025, $4,320.00' — cap the output at 256 tokens."},{"title":"System-prompted customer support draft","prompt":"Using Qwen3 30B, generate a polite customer support reply to this user complaint: 'My order #8821 hasn't arrived after 10 days.' Use a system prompt that says 'You are a helpful e-commerce support agent.' Keep it under 200 tokens."},{"title":"Low-cost agent subtask completion","prompt":"I need the Qwen3 30B model to summarize this 5,000-word research article into 3 bullet points — pass it as a user message and set max_tokens to 300."}],"resultDescription":"Returns an OpenAI-compatible chat completion response object containing the assistant's generated message, finish reason, and token usage statistics. Output is up to 2,048 tokens; JSON-mode output is available via response_format.","failureModes":["Input exceeds 32,000 character limit — request rejected","max_tokens set above 2048 — capped or rejected","Malformed messages array (missing role or content) — 400 error","Payment failure via x402 protocol — 402 Payment Required","Model temporarily unavailable on Cloudflare Workers — 503 error","Temperature out of 0–2 range — validation error"],"whenToPreferThis":"Choose this endpoint when you need a fast, cost-effective OpenAI-compatible LLM call at a fixed $0.002/call price without managing infrastructure, especially when Qwen3's strong multilingual and reasoning capabilities are needed. Prefer it over GPT or other providers when minimizing per-call cost matters and the 32,000-character input window is sufficient. Ideal for agentic pipelines requiring many discrete LLM calls at predictable cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:31:06.051Z","isFirstParty":false,"canonicalSlug":"agent-toolbox-qwen3-30b-chat-completion-17087538"}