> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/cheahjs/free-llm-api-resources/llms.txt
> Use this file to discover all available pages before exploring further.

# Alibaba Cloud Model Studio

> Get 1 million tokens per model to access various Qwen models

## Overview

Alibaba Cloud Model Studio (International) provides 1 million tokens per model, giving you extensive access to their Qwen family of language models, including both open-source and proprietary variants.

<CardGroup cols={2}>
  <Card title="Trial Credits" icon="coins">
    1 million tokens per model
  </Card>

  <Card title="Models" icon="layer-group">
    Multiple Qwen models available
  </Card>
</CardGroup>

## Available Models

Alibaba Cloud offers access to the **Qwen family of models**, developed by Alibaba Cloud and known for strong multilingual capabilities.

<Info>
  View the complete list of available models at [alibabacloud.com/en/product/modelstudio](https://www.alibabacloud.com/en/product/modelstudio)
</Info>

### Qwen Model Family

* **Qwen 3**: Latest generation with improved performance
* **Qwen 2.5**: Advanced reasoning and coding capabilities
* **Qwen VL**: Vision-language multimodal models
* **Qwen Coder**: Specialized for code generation
* **Qwen Math**: Optimized for mathematical reasoning

## Per-Model Token Allocation

<Note>
  You receive **1 million tokens for EACH model**, allowing you to thoroughly test different models for your specific use case.
</Note>

## Getting Started

### 1. Sign Up

Visit [bailian.console.alibabacloud.com](https://bailian.console.alibabacloud.com/) and create an international account.

### 2. Access Model Studio

Navigate to Model Studio in your Alibaba Cloud console.

### 3. Get Your API Key

Generate an API key from the console to start making requests.

### 4. Make API Calls

```python theme={null}
import openai

client = openai.OpenAI(
    api_key="YOUR_ALIBABA_API_KEY",
    base_url="https://dashscope.aliyuncs.com/compatible-mode/v1"
)

response = client.chat.completions.create(
    model="qwen-turbo",
    messages=[{
        "role": "user",
        "content": "What is the capital of France?"
    }]
)

print(response.choices[0].message.content)
```

```javascript theme={null}
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: process.env.ALIBABA_API_KEY,
  baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1'
});

const response = await client.chat.completions.create({
  model: 'qwen-turbo',
  messages: [{
    role: 'user',
    content: 'What is the capital of France?'
  }]
});

console.log(response.choices[0].message.content);
```

```bash theme={null}
curl https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
  -H "Authorization: Bearer YOUR_ALIBABA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen-turbo",
    "messages": [{
      "role": "user",
      "content": "What is the capital of France?"
    }]
  }'
```

## Key Features

### Multilingual Excellence

<Info>
  Qwen models excel at **Chinese and English**, with strong performance across many other languages.
</Info>

### Specialized Models

<CardGroup cols={2}>
  <Card title="Qwen Coder" icon="code">
    Optimized for code generation and understanding
  </Card>

  <Card title="Qwen VL" icon="image">
    Vision-language multimodal capabilities
  </Card>

  <Card title="Qwen Math" icon="calculator">
    Enhanced mathematical reasoning
  </Card>

  <Card title="Qwen Turbo" icon="bolt">
    Fast inference for real-time applications
  </Card>
</CardGroup>

## Use Cases

* **Multilingual Applications**: Build apps supporting Chinese and English
* **Code Generation**: Leverage specialized coding models
* **Vision Tasks**: Process images with Qwen VL models
* **Mathematical Problems**: Solve complex math with Qwen Math
* **Enterprise Applications**: Reliable models for production use

## Resources

<CardGroup cols={2}>
  <Card title="Model Studio Console" icon="link" href="https://bailian.console.alibabacloud.com/">
    Access the platform
  </Card>

  <Card title="Model Studio Info" icon="book" href="https://www.alibabacloud.com/en/product/modelstudio">
    Learn more about models
  </Card>
</CardGroup>

<Warning>
  This is the **International** Alibaba Cloud service. Make sure you're accessing the correct regional endpoint.
</Warning>
