MarketSupport← Back to app

Qwen Chat

Qwen Chat chat models are called through one simple endpoint: send a messages array plus the model slug and get the reply text back. This family exposes 3 models.

Overview

Send a standard messages array (user / assistant / system roles). Billing is deducted from your credit balance per response; the response includes your remaining balance.

Authentication

Create an API key at /api-keys, then send it as a Bearer token. Requests from the browser while logged in also work via the session cookie.

Authorization: Bearer <YOUR_API_KEY>

OpenAI-compatible Chat Completions

POST
POST https://api.lithovas.com/v1/chat/completions

Use this endpoint for developer integrations: point your OpenAI SDK base_url to https://api.lithovas.com/v1 and send a Lithovas API key.

Qwen3.7 Plus
Qwen3.7 Plus uses model: "chat/qwen3-7-plus"; /v1/chat/completions also accepts the Qwen model ID qwen/qwen3.7-plus. Vision input accepts public HTTPS image URLs and data:image/...;base64,... image Data URLs. Publicly accessible COS, CloudBase, and OSS signed URLs can be used as image input. Public pricing is $0.32/M input tokens and $1.28/M output tokens.
Qwen3.8 Max
Qwen3.8 Max uses model: "chat/qwen3-8-max"; /v1/chat/completions also accepts the Qwen model ID qwen/qwen3.8-max. Text and image image_url content parts are supported; video input is not yet exposed by the Lithovas chat parser. Public pricing is $2/M input tokens and $6/M output tokens.
Python SDK
Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_LITHOVAS_API_KEY",
    base_url="https://api.lithovas.com/v1",
)

completion = client.chat.completions.create(
    model="chat/qwen3-7-plus",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "你是谁"},
    ],
)

print(completion.choices[0].message.content)
cURL
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/qwen3-7-plus",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." },
      { "role": "user", "content": "你是谁" }
    ]
  }'
Qwen3.7 Plus image input
Python
from openai import OpenAI
import base64

client = OpenAI(
    api_key="YOUR_LITHOVAS_API_KEY",
    base_url="https://api.lithovas.com/v1",
)

image_url = "https://example.com/photo.jpg"

# Alternative: local image as Base64 Data URL.
# with open("photo.png", "rb") as f:
#     image_url = f"data:image/png;base64,{base64.b64encode(f.read()).decode('utf-8')}"

completion = client.chat.completions.create(
    model="chat/qwen3-7-plus",
    messages=[{
        "role": "user",
        "content": [
            {"type": "image_url", "image_url": {"url": image_url}},
            {"type": "text", "text": "请描述这张图片"},
        ],
    }],
)

print(completion.choices[0].message.content)
Upload first, then pass the image URL
cURL
curl -X POST https://api.lithovas.com/api/uploads \
  -H "Authorization: Bearer $API_KEY" \
  -F "file=@photo.png"

# Use the returned "url" as image_url.url in /v1/chat/completions.

Chat Completions

POST
POST https://api.lithovas.com/api/chat

Body: { "model": "<slug>", "messages": [{ "role": "user", "content": "…" }] }

Response: { "text": "<assistant reply>", "credits": <billed>, "balance": <remaining> }

Models

ModelProvidermodel slug
Qwen3 VL 32B InstructQwenchat/qwen3-vl-32b-instruct
Qwen3.7 PlusQwenchat/qwen3-7-plus
Qwen3.8 MaxQwenchat/qwen3-8-max

Qwen3 VL 32B Instruct

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/qwen3-vl-32b-instruct",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Qwen3.7 Plus

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/qwen3-7-plus",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'

Qwen3.8 Max

POST/v1/chat/completions
cURL
curl -X POST https://api.lithovas.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chat/qwen3-8-max",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
      ]
    }]
  }'