Where to Run Qwen 3 in Production: Inference Providers Compared

Aug 03, 2026 04:21 PM - 3 weeks ago 490

Selecting a Qwen exemplary is only the first accumulation decision. The adjacent mobility is wherever and really to tally it.

The champion supplier for an experimental chatbot whitethorn not beryllium a bully fresh for a regulated endeavor app, latency-sensitive coding assistant, aliases supplier ingesting millions of tokens per day. Production teams must see much than conscionable the advertised costs per cardinal tokens. They must besides measure clip to first token, output speed, concurrency limits, discourse model lengths, geographic availability, information & compliance, observability, model-version consistency, and power complete operations.

Qwen is Alibaba’s family of large connection models. The original Qwen 3 procreation introduced dense and mixture-of-experts models, hybrid reasoning modes, multilingual support, instrumentality use, and exemplary sizes ranging from 0.6 cardinal to 235 cardinal parameters. A mixture-of-experts exemplary contains aggregate specialized neural networks but activates only a subset for each token, reducing the compute required during inference. The Qwen 3 method report describes models trained connected 119 languages, successful some reasoning and non-thinking modes.

Alibaba Cloud has since expanded the Qwen family pinch Qwen 3.5, which includes the models Qwen3.5-27B, Qwen3.5-35B-A3B, Qwen3.5-122B-A10B, and Qwen3.5-397B-A17B. The exemplary size is the number of parameters successful the model. The -A number successful the exemplary suffix indicates really galore of those parameters are activated for each token. So Qwen 3.5-397B-A17B has 397 cardinal parameters, but only astir 17 cardinal are progressive per token. New generations of Qwen are already connected the horizon. Still, for teams that prioritize unfastened weights, predictable performance, aliases having an established baseline for evaluation, Qwen 3 and Qwen 3.5 models are worthy considering.

This guideline compares managed APIs, routing platforms, dedicated inference, and self-hosted GPU infrastructure.

Which supplier should you choose?

Compare celebrated Qwen conclusion providers based connected recommended usage case, comparative price, speed, and infrastructure control. Feel free to return this array arsenic a baseline to thief you find which supplier is champion suited for your workload

Provider Best suited for Cost position Performance and control
DeepInfra View DeepInfra models Low-cost entree to galore Qwen variants Low Broad exemplary catalog and straightforward managed API
Together AI Explore Together AI Production APIs, customization, and dedicated endpoints Medium Broad level covering serverless, reserved, and dedicated inference
Fireworks AI View Fireworks models Optimized serving and demanding accumulation workloads Medium Strong conclusion optimization pinch accumulation deployment features
Groq View Groq models Interactive applications requiring very accelerated generation Medium Excellent procreation speed, but a narrower Qwen catalog
OpenRouter View Qwen connected OpenRouter Comparing aliases routing requests crossed aggregate providers Varies High portability, pinch little nonstop power complete underlying infrastructure
Novita AI Explore Novita AI Cost-sensitive APIs and elastic GPU options Low Combines serverless exemplary APIs pinch infrastructure services
SiliconFlow Explore SiliconFlow Qwen access, peculiarly for Asia-oriented deployments Low to medium Check location availability, information residency, and compliance requirements
DigitalOcean View supported conclusion models Serverless conclusion aliases dedicated infrastructure connected 1 cloud Low to medium Supports managed conclusion and self-controlled GPU deployment paths
RunPod Explore RunPod inference Teams tin of operating their ain conclusion containers GPU-hour-based High infrastructure power pinch greater operational responsibility

There is nary cosmopolitan winner. Start pinch the workload:

  • Select a managed serverless API if you’re dealing pinch unpredictable postulation and want to minimize operational headaches.
  • Go pinch a supplier focused connected velocity if you perfectly request debased latency for interactive chat, sound calls, and coding.
  • For situations wherever exemplary portability and supplier fallback are important considerations, you tin take a router.
  • Choose dedicated conclusion erstwhile sustained postulation requires predictable capacity.
  • Choose self-hosting erstwhile you request infrastructure control, civilization weights, backstage networking, aliases specialized conclusion optimizations.

What should you measurement earlier selecting a Qwen provider?

The cheapest advertised value per token does not ever output the lowest accumulation cost. Evaluate providers pinch identical prompts, the aforesaid exemplary version, output length, and concurrency levels.

We’ve recovered the pursuing metrics to beryllium the astir critical:

  • Time-to-first-token (TTFT) is the long from erstwhile a petition is submitted to erstwhile the first token of output is generated. This metric greatly impacts the perceived responsiveness of a chatbot aliases coding assistant.
  • Output speed measures really galore tokens the strategy generates per 2nd aft the first token. Fast output is important for agelong answers, reasoning traces, codification generation, and multi-step agents.
  • End-to-end latency encompasses the afloat petition lifecycle, including queueing, punctual processing, generation, and web transportation times.
  • Tail latency attempts to seizure slow edge-case requests. This is usually measured arsenic p95 aliases p99 latency. P99 latency is the worth beneath which 99 percent of requests will complete. Average latency tin often hide unspeakable accumulation behaviour if 1 retired of each 100 requests takes importantly longer than the others.
  • Throughput measures the wide tokens aliases requests processed complete a play of time. It’s much important than per-request speeds for batch workloads and high-concurrency APIs.

Also trial support for system outputs, instrumentality calling, prompt caching, long-context, location latency differences, complaint limits, and nonaccomplishment behavior. Some providers whitethorn advertise OpenAI compatibility but only support a subset of the OpenAI parameter set.

OpenAI-compatible APIs judge requests that usage endpoints and JSON request/response structures akin to the OpenAI API. Switching betwixt providers tin sometimes beryllium arsenic elemental arsenic changing the API key, exemplary identifier, and guidelines URL. API compatibility tin trim migration work, but it does not guarantee identical behavior.

Which Qwen supplier is the cheapest per token?

DeepInfra and Novita are often bully starting points for cost-sensitive Qwen inference; however, comparisons should beryllium betwixt balanced exemplary versions and work tiers.

For instance, DeepInfra listed Qwen3.5-27B for ~$0.26/million input tokens and ~$2.60/million output tokens connected the regular tier astatine the clip of review. Its Qwen3.5-397B-A17B listing was priced astatine ~$0.45 for input and ~$3.00 for output. Flexible tiers tin costs little but tin supply a little scheduling priority. See the existent DeepInfra Qwen3.5-27B listing and Qwen3.5-397B-A17B listing.

Smaller models tin beryllium dramatically cheaper. This tin matter because flagship models are not required for galore classification, retrieval, summarization, and routing tasks. Well-evaluated 4B, 9B, aliases 27B models tin outperform overmuch larger models economically, moreover if the per-active-parameter value is little for the larger model. Calculate costs utilizing the expected input-to-output ratio:

image

Suppose an supplier petition consumes 10,000 input tokens and produces 2,000 output tokens. At $0.26 per cardinal input tokens and $2.60 per cardinal output tokens:

image

This gets america to astir a $7,800 conclusion measure astatine 1 cardinal requests, excluding retries, embeddings, storage, routing fees, aliases different work uses.

Avoid making value comparisons based connected immoderate arbitrary 50:50 token divided betwixt input and output tokens. RAG and archive study systems typically make galore much input tokens than output tokens. Reasoning and code-generation style apps whitethorn make galore much output tokens. Because output tokens are typically much expensive, the ratio of tokens utilized by your workload tin impact which supplier is cheaper.

Is location an OpenAI-compatible action for Qwen?

DeepInfra, Together AI, Fireworks AI, Groq, Novita, OpenRouter, and DigitalOcean connection APIs that support OpenAI-compatible API endpoints to varying degrees. This intends developers tin leverage the OpenAI Python SDK pinch a different base_url.

Here is simply a reusable example:

import os import time from openai import OpenAI client = OpenAI( api_key=os.environ["INFERENCE_API_KEY"], base_url=os.environ["INFERENCE_BASE_URL"], ) start = time.perf_counter() first_token_time = None output = [] stream = client.chat.completions.create( model=os.environ["QWEN_MODEL_ID"], messages=[ { "role": "system", "content": ( "You are a accumulation reliability assistant. " "Return concise, technically meticulous recommendations." ), }, { "role": "user", "content": ( "A Qwen conclusion endpoint has rising p99 latency while " "average latency remains stable. List apt causes." ), }, ], temperature=0.2, max_tokens=400, stream=True, ) for arena in stream: if event.choices and event.choices[0].delta.content: if first_token_time is None: first_token_time = time.perf_counter() token_text = event.choices[0].delta.content output.append(token_text) print(token_text, end="", flush=True) end = time.perf_counter() print("\n") print(f"TTFT: {first_token_time - start:.3f} seconds") print(f"End-to-end latency: {end - start:.3f} seconds") # Configure it done situation variables alternatively than placing credentials successful root code: export INFERENCE_API_KEY="your-api-key" export INFERENCE_BASE_URL="https://provider.example.com/v1" export QWEN_MODEL_ID="provider-specific-qwen-model-id" python app.py

Obtain the provider-specific exemplary ID and guidelines URL from the existent provider’s documentation. Qwen3.5-27B whitethorn not ever beryllium spelled the aforesaid way.

This abstraction makes first migration easier. However, for portable accumulation code, you’ll request to do immoderate further work. Models tin alteration by tool-call schema, reasoning controls, JSON enforcement, token usage tracking, discourse model size, information filtering, and correction codes. Consider building your ain exemplary gateway and provider-neutral information suite if you expect to move providers.

Is OpenRouter a Qwen big aliases an aggregator?

OpenRouter is champion considered arsenic an aggregator and routing layer. It provides a azygous API for developers to entree models that tin beryllium served by various underlying providers. This is adjuvant erstwhile building applications that require automatic fallback, centralized billing, accelerated exemplary comparison, aliases entree to aggregate commercialized and unfastened models.

For instance, OpenRouter showed Qwen3.5 Plus pinch a one-million-token discourse model and separately priced inputs/outputs. You tin position existent models successful its Qwen exemplary catalog, including discourse sizes, prices, and disposable routes.

The pursuing illustration sends a Qwen petition done OpenRouter. It prioritizes lower-cost routes, permits fallback erstwhile different supplier is available, and excludes endpoints that whitethorn cod petition data:

import os from openai import OpenAI client = OpenAI( api_key=os.environ["OPENROUTER_API_KEY"], base_url="https://openrouter.ai/api/v1", ) response = client.chat.completions.create( model="qwen/qwen3.5-plus-20260420", messages=[ { "role": "user", "content": "Explain continuous batching successful 3 sentences." } ], max_tokens=200, extra_body={ "provider": { "sort": "price", "allow_fallbacks": True, "data_collection": "deny" } } ) print(response.choices[0].message.content)

When interacting pinch an aggregator, location is little visibility and power complete the infrastructure really serving a request. Data handling requirements must beryllium examined some astatine the routing furniture and the underlying provider. Pinning to a supplier tin amended predictability, while move routing tin connection higher readiness aliases price.

Which action is champion for agentic Qwen workloads?

Agentic systems many times make requests to a model, sending it plans, instrumentality results, retrieved documents, and speech history. When selecting providers for these types of systems, debased TTFT, reliable instrumentality calling, system output support, ample contexts, punctual caching, and unchangeable complaint limits should each beryllium weighted heavily.

Agentic improvement teams that want to ain their accumulation infrastructure and tailor models whitethorn want to see Together AI and Fireworks. DeepInfra whitethorn beryllium compelling if agents tin make precocious token volumes, and costs is your main constraint. Groq is charismatic if the supplier makes sequential steps and each exemplary telephone introduces noticeable latency. OpenRouter tin supply fallback erstwhile an supplier must stay disposable during a supplier incident.

Qwen3.5 models are particularly promising for tool-oriented and multimodal agents. However, a model’s existent capacity pinch devices should beryllium tested pinch your application’s circumstantial tools. A benchmark people cannot reliably show whether a exemplary produces valid arguments for your soul functions.

Build an information group of conversations that see grounded instrumentality calls, ambiguous instructions, agelong speech histories, punctual injection, and faulty instrumentality outputs. Benchmark some the completion complaint and costs per completed task alternatively than costs per token.

Should you usage serverless aliases dedicated inference?

Serverless inference is typically perfect for prototypes, workloads pinch adaptable postulation patterns, and teams that don’t want to operate/manage GPUs. Pricing is based connected tokens used, pinch the vendor managing batching, scaling, and exemplary serving.

Potential downsides see cold starts, shared-capacity queueing, complaint limits, constricted customization, and little predictable tail latency. The magnitude of these effects varies by supplier and work tier.

Dedicated inference allocates capacity for a azygous organization. Use erstwhile you person sustained traffic, strict latency requirements, aliases request predictable throughput from your application. It whitethorn besides let much power complete networking, scaling, observability, and exemplary configuration.

The break-even constituent depends connected utilization:

image

A dedicated GPU tin beryllium economical astatine precocious utilization but costly erstwhile idle. Serverless shifts utilization consequence to the provider.

DigitalOcean provides serverless and dedicated inference. They supply dedicated conclusion per GPU-hour and database AMD MI300X arsenic good arsenic NVIDIA H100, H200, and B300 offerings. You tin spot DigitalOcean’s existent conclusion pricing page for configurations.

When should you self-host Qwen?

Use self-hosting if you require civilization weights/adapters/quantization, backstage networking/data residency, aliases fixed exemplary versions / nonstop power of the conclusion engine.

RunPod and GPU Droplets are infrastructure solutions, not hosted exemplary endpoints. Your squad chooses the GPU, deploys an conclusion server (e.g., vLLM, SGLang), configures autoscaling, and manages monitoring and upgrades.

A basal vLLM deployment tin expose Qwen done an OpenAI-compatible endpoint:

# 1) Install vLLM (pin a type to debar surprises) pip instal "vllm>=0.8.4" # 2) Run vLLM pinch Qwen3-8B complete an OpenAI-compatible HTTP API export LOCAL_API_KEY="your-local-key" vllm service Qwen/Qwen3-8B \ --host 0.0.0.0 \ --port 8000 \ --api-key "$LOCAL_API_KEY" \ --max-model-len 32768 \ --gpu-memory-utilization 0.90 \ --trust-remote-code # The exertion tin past telephone it pinch the aforesaid OpenAI client: # --------- # Python: telephone Qwen3-8B via OpenAI client # --------- import os from openai import OpenAI # Read the aforesaid API cardinal utilized by vLLM; autumn backmost to a default for demos api_key = os.getenv("LOCAL_API_KEY", "your-local-key") client = OpenAI( api_key=api_key, base_url="http://localhost:8000/v1", ) response = client.chat.completions.create( model="Qwen/Qwen3-8B", messages=[ {"role": "user", "content": "Explain continuous batching simply."} ], temperature=0.2, max_tokens=300, ) print(response.choices[0].message.content)

This illustration is intended for learning purposes and not meant to beryllium a ready-for-production deployment. For a accumulation service, you would want to adhd TLS, authentication, wellness checks, metrics, petition limits, instrumentality security, aggregate redundant replicas, autoscaling, deployment rollback, GPU-capacity planning, etc. to your work arsenic well.

DigitalOcean’s GPU Droplets support this self-managed approach. Lower-cost GPUs tin beryllium utilized to tally smaller quantized Qwen models. For the ample MoE variants, you whitethorn require aggregate high-memory GPU accelerators. DigitalOcean precocious launched 1-Click Models that fto you quickly deploy supported unfastened models pinch an OpenAI-compatible endpoint. Check retired DigitalOcean’s guideline connected hosting models connected GPUs.

How should compliance power the decision?

Don’t presume a supplier is compliant pinch your regulated workloads because they show a SOC 2 badge. It will dangle connected the service, statement terms, region, information flow, and configuration.

Ask each provider:

  • Is the conclusion work included successful its SOC 2 report?
  • Will they motion a business subordinate statement for HIPAA workloads?
  • Are prompts aliases responses retained?
  • Will customer information beryllium utilized for training?
  • Where are requests and information processed and logged?
  • Are backstage networking and customer-managed keys available?
  • Can subprocessors aliases routed conclusion providers entree the data?
  • What audit logs and deletion controls are provided?

If you usage an aggregator, beryllium judge to inquire further questions since different institution will beryllium moving the underlying inference. Self-hosting will springiness you much power complete architecture, but your statement will ain security, patching, and audits.

Conclusion

The champion spot to tally Qwen 3 aliases Qwen 3.5 depends connected the workload, not the provider’s wide reputation.

DeepInfra and Novita guidelines retired for cost-sensitive inference. Groq offers compelling capacity for interactive applications pinch debased latency requirements, but verifies their existent exemplary readiness and deprecation timeline. Together AI and Fireworks connection much full-fledged accumulation environments if your squad needs much precocious serving optimization, customization, aliases dedicated infrastructure. OpenRouter makes it easy to way to aggregate providers and fallback, astatine the disbursal of adding an further routing layer. DigitalOcean offers a bully continuum from serverless conclusion astatine a pay-per-token complaint to afloat dedicated conclusion and moreover self-managed GPU Droplets. RunPod useful good for teams that for illustration to negociate their ain infrastructure and tally their ain serving stack.

The safest accumulation strategy is to debar imperishable dependence connected untested claims. Choose a circumstantial exemplary version, hole a realistic information dataset, benchmark a fewer providers nether applicable concurrency levels, and estimate your costs utilizing the existent input-output token ratio. Keep your exertion down an OpenAI-compatible soul interface. However, beryllium judge to trial immoderate provider-specific differences successful instrumentality usage, system output, discourse limits, and correction handling.

Inference catalogs will proceed to alteration arsenic Qwen introduces newer generations. A reproducible information process is truthful much valuable than immoderate fixed supplier ranking.

References

  • Qwen models connected Hugging Face
  • Qwen3.5-27B API reference and pricing
  • Inference overview: serverless, provisioned throughput, and dedicated
  • Available serverless models
  • Querying matter models done serverless conclusion and dedicated deployments
  • Supported models
  • Provider routing and supplier selection

Creative CommonsThis activity is licensed nether a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.

More