qwen2.5-3b-instruct

Qwen2.5 3B Instruct · Chat · Qwen Research License (non-commercial use only)

Development only

Sign in to see whether this model is running right now.

Development only. This model's licence (Qwen Research License) allows non-commercial use only. This development server offers it for testing, and a production Pym server never does. Don't use it for commercial work. Read the Qwen Research License text (on huggingface.co).

Call it

curl

curl
curl https://app.pymlabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $PYM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen2.5-3b-instruct",
       "messages": [{"role": "user", "content": "Say hello in five words."}],
       "max_tokens": 64}'

Python

Python · openai SDK
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://app.pymlabs.ai/v1",
    api_key=os.environ["PYM_API_KEY"],
)

response = client.chat.completions.create(
    model="qwen2.5-3b-instruct",
    messages=[{"role": "user", "content": "Say hello in five words."}],
    max_tokens=64,
)
print(response.choices[0].message.content)
print(response.usage)  # the tokens you were charged for

No key yet? Create an account to get an API key. Create account

Price

Input
$0.01 per 1M tokens (text and images; images count as input tokens)
Output
$0.02 per 1M tokens
Hold
$0.00008704 held for a request at the default max_tokens (512) · How billing works
Example: a chat request at this model's rates
35 input tokens × $0.01 / 1M$0.00000035
10 output tokens × $0.02 / 1M$0.0000002 
Charge$0.00000055

Price history

Prices for this model, newest first. Times in UTC.
In effect from (UTC)Input TokensOutput TokensVersion
current price (added) Current $0.01$0.02 1

A new price applies to requests that start after it takes effect. A request that's already running keeps the price it was held at.

What it supports

Not supported on this model: image input.

"Supported" means the API accepts these on this model and bills them under a measured bound. It isn't a quality rating.

Limits

Context
8,192 tokens (prompt + output)
Max output
2,048 tokens per request
Request time
up to 120 s for a non-streamed request

Licence

Qwen Research License · Read the Qwen Research License text (on huggingface.co)

Commercial use: not allowed. Your use must follow the licence's terms.