Qwen Flash
Qwen logo

Qwen Flash

qwen-flashllms.txt
Qwen
The model adopts tiered pricing.

Pricing

TierInputOutputCache Read
Input ≤128K tokens$0.0205/M tokens$0.2055/M tokens-
Input >128K, ≤256K tokens$0.0822/M tokens$0.8219/M tokens-
Input >256K, ≤1M tokens$0.1644/M tokens$1.6438/M tokens-

Input Modalities

    Output Modalities

    • Text

    Try this model

    Python
    import os
    from openai import OpenAI
    
    client = OpenAI(
        api_key=os.environ["AIHUBMIX_API_KEY"],
        base_url="https://aihubmix.com/v1",
    )
    
    response = client.chat.completions.create(
        model="qwen-flash",
        messages=[
          {
            "role": "user",
            "content": "Hello, how are you?"
          }
        ],
        max_tokens=1024,
        stream=False,
    )
    
    print(response.choices[0].message.content)

    Frequently asked questions

    What is Qwen Flash?

    The model adopts tiered pricing.