Qwen2-VL-7B-Instruct
Qwen/Qwen2-VL-7B-Instruct
Overview
Part of the Qwen2 VL family, Qwen2-VL-7B-Instruct is an open-source vision-language model with 7 billion parameters. It is purpose-built for tasks involving both visual and textual understanding, such as image captioning, visual question answering, and content generation. This model is designed for high-performance inference and is suitable for applications requiring the integration of visual and textual information.
Tags
CentML Optimized
Chat
Dedicated
LLM
Serverless
VLM
API
curl -X POST "https://api.centml.com/openai/v1/chat/completions" \
-H "Authorization: Bearer *******************************************" \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen/Qwen2-VL-7B-Instruct",
"messages": [{ "role": "system", "content": "You are a helpful assistant." }],
"stream": false
}'
from openai import OpenAI
client = OpenAI(
api_key="*******************************************",
base_url="https://api.centml.com/openai/v1"
)
completion = client.chat.completions.create(
model="Qwen/Qwen2-VL-7B-Instruct",
messages=[{ "role": "system", "content": "You are a helpful assistant." }],
stream=False,
)
print(completion.choices[0].message)
import OpenAI from "openai";
const client = new OpenAI(
api_key="*******************************************",
base_url="https://api.centml.com/openai/v1"
)
async function main() {
const completion = await client.chat.completions.create({
model: "Qwen/Qwen2-VL-7B-Instruct",
messages: [{ "role": "system", "content": "You are a helpful assistant." }],
stream: false,
});
console.log(completion.choices[0])
}
main()