Qwen3 is the newest in the Qwen series, featuring dense and MoE models with major improvements in reasoning, instruction-following, agent tasks, and multilingual support.
import os
from openai import OpenAI
client = OpenAI( base_url="https://api.clarifai.com/v2/ext/openai/v1", api_key=os.environ["CLARIFAI_PAT"],)response = client.chat.completions.create( model="https://clarifai.com/qwen/qwenLM/models/Qwen3-30B-A3B-FP8", messages=[{"role":"developer","content":"Talk like a pirate."},{"role":"user","content":"How do I check if a Python object is an instance of a class?",},], temperature=0.7, stream=False,# stream=True also works, just iterator over the response)print(response)