Qwen3.5
Use Alibaba's Qwen3.5-VL vision-language model through Workflows, Dedicated Deployments, or self-hosted Inference
Last updated
Was this helpful?
Was this helpful?
export ROBOFLOW_API_KEY="your-key-here"pip install -U inference-sdk supervisionimport os
import supervision as sv
from inference_sdk import InferenceHTTPClient
image = sv.load_image_from_url("https://media.roboflow.com/quickstart/dog.jpeg")
client = InferenceHTTPClient(
api_url="https://your-deployment.roboflow.cloud",
api_key=os.environ["ROBOFLOW_API_KEY"],
)
result = client.infer_lmm(
image,
model_id="qwen3_5-2b",
prompt="Describe this image briefly.",
max_new_tokens=256,
)
print(result["response"])A person wearing a white t-shirt and red shorts is carrying a black backpack on their shoulder, with a beagle dog perched on top of it. The scene takes place outdoors in a residential area, with modern apartment buildings in the background and greenery along the sidewalk. The person appears to be walking or standing near a building with large windows.pip install "inference[transformers]"from inference.models.qwen3_5vl.qwen3_5vl_inference_models import (
InferenceModelsQwen35VLAdapter,
)
model = InferenceModelsQwen35VLAdapter(
model_id="qwen3_5-0.8b",
api_key="YOUR_API_KEY",
)
image = "https://media.roboflow.com/dog.jpeg"
prompt = "How many dogs are in this image?"
preprocessed, metadata = model.preprocess(image, prompt)
predictions = model.predict(preprocessed)
result = model.postprocess(predictions, metadata)
print(result[0].response)