API reference · Alibaba

Qwen: Qwen Plus 0728

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

LLMSynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/chat/completions
Model IDalibaba/qwen-plus-2025-07-28
01

Input Schema

10 parameters · 1 required · 9 optional

ParameterTypeRequiredDescription
messagesobject[]Required
seedintegerOptional
toolsarrayOptional
top_pnumberOptionalMin: 0 · Max: 1
streambooleanOptionalDefault: false
max_tokensintegerOptionalMax: 32768
temperaturenumberOptionalMin: 0 · Max: 2 · Default: 1
tool_choicestringOptional
response_formatobjectOptional
presence_penaltynumberOptionalMin: -2 · Max: 2
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the completion
objectstringObject type, e.g. "chat.completion"
modelstringModel used for the completion
choicesarrayList of completion choices
choices[].message.contentstringGenerated text content
choices[].finish_reasonstringReason the generation stopped
usage.prompt_tokensintegerNumber of tokens in the prompt
usage.completion_tokensintegerNumber of tokens in the completion
usage.total_tokensintegerTotal tokens used
03

Code Examples

Ready-to-run snippets

curl https://api.sandbase.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/qwen-plus-2025-07-28",
    "messages": [{"role": "user", "content": "Hello"}],
    "temperature": 0.7,
    "max_tokens": 2048,
    "stream": true
  }'