All articles
LLM API Comparison & Cost/

Call Qwen3.8 Max API via Python

Integrate Qwen3.8 Max using an OpenAI-compatible endpoint with live pricing and code.

2 minutes read

Call Qwen3.8 Max API via Python. A macro shot of a single high-end GPU die glowing with a warm amber under-glow, partially obscured by a dense matrix of braided fiber-optic cables reflecting sharp blue light — GPUniq
Data as of 1 source

Drafted with AI tools and edited by a human. The figures and conclusions were checked by a GPUniq editor.

TL;DR

You can call the Qwen3.8 Max API through GPUniq at https://api.gpuniq.com/v1/openai/chat/completions for $1.80 per million input tokens. It delivers 35.5 tokens per second while supporting a 1000k context window and a 10.0% discount compared to list prices.

Qwen3.8 Max API Overview

The Qwen3.8 Max API provides OpenAI compatibility through the GPUniq gateway. It supports a 1000k tokens context window.

Pricing Details

Input costs $1.80 per million tokens, or 169.54 RUB. Output costs $5.40 per million tokens, which equals 508.63 RUB. These rates include a 10.0% discount versus list price.

ModelInput Price, $/M tokensOutput Price, $/M tokensContext, k tokens
Qwen3.8 Max1.805.401000
Qwen3.8 Flash0.1350.4231000
Qwen Max2.85711.429128

Throughput Performance

The service delivers an average speed of 35.5 tokens per second.

Endpoint Location

GPUniq hosts the endpoint at https://api.gpuniq.com/v1/openai/chat/completions. Because the gateway is OpenAI-compatible, you only need to change your base URL and API key in the standard SDK.

Python Integration

Install the openai package and configure the client base URL to point to GPUniq. Pass your API key directly.

from openai import OpenAI

client = OpenAI(
    api_key="your-gpuniq-api-key",
    base_url="https://api.gpuniq.com/v1/openai"
)

response = client.chat.completions.create(
    model="qwen3.8-max",
    messages=[
        {"role": "user", "content": "Explain asynchronous programming in Python."}
    ]
)

print(response.choices[0].message.content)

Methodology

Prices are GPUniq's public retail rates per million tokens, read from the live model catalog at the moment of the snapshot. Ruble figures use the rate GPUniq applies to ruble top-ups at that moment. The discount is against the model vendor's own list price. Speed is output tokens per second measured on the GPUniq gateway for real requests, as a moving average; models with too little traffic to measure are left out rather than estimated. Requests go to GPUniq's OpenAI-compatible chat endpoint, as documented on gpuniq.com/models.

Sources

  1. 1.GPUniq model catalog and prices — GPUniq (accessed )

Want cheap GPUs for your next project?

Browse live GPU prices and rent the right card in seconds — H100, A100, RTX 4090, and 50+ more models.

More from the GPUniq blog