Skip to content

Commit 8da3262

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-413: docs: add qwen3-max-preview and qwen3-max-instruct
1 parent e28fb50 commit 8da3262

8 files changed

Lines changed: 180 additions & 11 deletions

File tree

docs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* [qwen3-next-80b-a3b-instruct](api-references/text-models-llm/alibaba-cloud/qwen3-next-80b-a3b-instruct.md)
2727
* [qwen3-next-80b-a3b-thinking](api-references/text-models-llm/alibaba-cloud/qwen3-next-80b-a3b-thinking.md)
2828
* [qwen3-max-preview](api-references/text-models-llm/alibaba-cloud/qwen3-max-preview.md)
29+
* [qwen3-max-instruct](api-references/text-models-llm/alibaba-cloud/qwen3-max-instruct.md)
2930
* [Anthracite](api-references/text-models-llm/Anthracite/README.md)
3031
* [magnum-v4](api-references/text-models-llm/Anthracite/magnum-v4.md)
3132
* [Anthropic](api-references/text-models-llm/Anthropic/README.md)

docs/api-references/model-database.md

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/api-references/text-models-llm/README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# qwen3-max-instruct
2+
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following model: </p><p><code>alibaba/qwen3-max-instruct</code></p></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=alibaba/qwen3-max-instruct&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
4+
5+
## Model Overview
6+
7+
This model offers improved accuracy in math, coding, logic, and science, handles complex instructions in Chinese and English more reliably, reduces hallucinations, supports 100+ languages with stronger translation and commonsense reasoning, and is optimized for RAG and tool use, though it lacks a dedicated ‘thinking’ mode.
8+
9+
## How to Make a Call
10+
11+
<details>
12+
13+
<summary>Step-by-Step Instructions</summary>
14+
15+
### :digit\_one: Setup You Can’t Skip
16+
17+
:black\_small\_square: [**Create an Account**](https://aimlapi.com/app/sign-up): Visit the AI/ML API website and create an account (if you don’t have one yet).\
18+
:black\_small\_square: [**Generate an API Key**](https://aimlapi.com/app/keys): After logging in, navigate to your account dashboard and generate your API key. Ensure that key is enabled on UI.
19+
20+
### &#x20;:digit\_two: Copy the code example
21+
22+
At the bottom of this page, you'll find [a code example](qwen3-max-instruct.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
23+
24+
### :digit\_three: Modify the code example
25+
26+
:black\_small\_square: Replace `<YOUR_AIMLAPI_KEY>` with your actual AI/ML API key from your account.\
27+
:black\_small\_square: Insert your question or request into the `content` field—this is what the model will respond to.
28+
29+
### :digit\_four: <sup><sub><mark style="background-color:yellow;">(Optional)<mark style="background-color:yellow;"><sub></sup> Adjust other optional parameters if needed
30+
31+
Only `model` and `messages` are required parameters for this model (and we’ve already filled them in for you in the example), but you can include optional parameters if needed to adjust the model’s behavior. Below, you can find the corresponding [API schema](qwen3-max-instruct.md#api-schema), which lists all available parameters along with notes on how to use them.
32+
33+
### :digit\_five: Run your modified code
34+
35+
Run your modified code in your development environment. Response time depends on various factors, but for simple prompts it rarely exceeds a few seconds.
36+
37+
{% hint style="success" %}
38+
If you need a more detailed walkthrough for setting up your development environment and making a request step by step — feel free to use our [Quickstart guide](../../../quickstart/setting-up.md).
39+
{% endhint %}
40+
41+
</details>
42+
43+
## API Schema
44+
45+
{% openapi-operation spec="qwen3-max-instruct" path="/v1/chat/completions" method="post" %}
46+
[OpenAPI qwen3-max-instruct](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/Alibaba-Cloud/qwen3-max-instruct.json)
47+
{% endopenapi-operation %}
48+
49+
## Code Example
50+
51+
{% tabs %}
52+
{% tab title="Python" %}
53+
{% code overflow="wrap" %}
54+
```python
55+
import requests
56+
import json # for getting a structured output with indentation
57+
58+
response = requests.post(
59+
"https://api.aimlapi.com/v1/chat/completions",
60+
headers={
61+
# Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
62+
"Authorization":"Bearer <YOUR_AIMLAPI_KEY>",
63+
"Content-Type":"application/json"
64+
},
65+
json={
66+
"model":"alibaba/qwen3-max-instruct",
67+
"messages":[
68+
{
69+
"role":"user",
70+
"content":"Hello" # insert your prompt here, instead of Hello
71+
}
72+
],
73+
"enable_thinking": False
74+
}
75+
)
76+
77+
data = response.json()
78+
print(json.dumps(data, indent=2, ensure_ascii=False))
79+
```
80+
{% endcode %}
81+
{% endtab %}
82+
83+
{% tab title="JavaScript" %}
84+
{% code overflow="wrap" %}
85+
```javascript
86+
async function main() {
87+
const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {
88+
method: 'POST',
89+
headers: {
90+
// insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>
91+
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
92+
'Content-Type': 'application/json',
93+
},
94+
body: JSON.stringify({
95+
model: 'alibaba/qwen3-max-instruct',
96+
messages:[
97+
{
98+
role:'user',
99+
content: 'Hello' // insert your prompt here, instead of Hello
100+
}
101+
],
102+
}),
103+
});
104+
105+
const data = await response.json();
106+
console.log(JSON.stringify(data, null, 2));
107+
}
108+
109+
main();
110+
```
111+
{% endcode %}
112+
{% endtab %}
113+
{% endtabs %}
114+
115+
<details>
116+
117+
<summary>Response</summary>
118+
119+
{% code overflow="wrap" %}
120+
```json5
121+
{
122+
"id": "chatcmpl-bec5dc33-8f63-96b9-89a4-00aecfce7af8",
123+
"system_fingerprint": null,
124+
"object": "chat.completion",
125+
"choices": [
126+
{
127+
"index": 0,
128+
"finish_reason": "stop",
129+
"logprobs": null,
130+
"message": {
131+
"role": "assistant",
132+
"content": "Hello! How can I help you today?"
133+
}
134+
}
135+
],
136+
"created": 1758898624,
137+
"model": "qwen3-max",
138+
"usage": {
139+
"prompt_tokens": 23,
140+
"completion_tokens": 113,
141+
"total_tokens": 136
142+
}
143+
}
144+
```
145+
{% endcode %}
146+
147+
</details>

docs/api-references/text-models-llm/alibaba-cloud/qwen3-max-preview.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
---
2-
hidden: true
3-
noIndex: true
4-
---
5-
61
# qwen3-max-preview
72

83
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following model: </p><p><code>alibaba/qwen3-max-preview</code></p></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=alibaba/qwen3-max-preview&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
94

105
## Model Overview
116

12-
7+
The preview version of [Qwen3 Max Instruct](qwen3-max-instruct.md).
138

149
## How to Make a Call
1510

@@ -123,6 +118,29 @@ main();
123118

124119
{% code overflow="wrap" %}
125120
```json5
121+
{
122+
"id": "chatcmpl-8ffebc65-b625-926a-8208-b765371cb1d0",
123+
"system_fingerprint": null,
124+
"object": "chat.completion",
125+
"choices": [
126+
{
127+
"index": 0,
128+
"finish_reason": "stop",
129+
"logprobs": null,
130+
"message": {
131+
"role": "assistant",
132+
"content": "Hello! How can I assist you today? 😊"
133+
}
134+
}
135+
],
136+
"created": 1758898044,
137+
"model": "qwen3-max-preview",
138+
"usage": {
139+
"prompt_tokens": 23,
140+
"completion_tokens": 139,
141+
"total_tokens": 162
142+
}
143+
}
126144
```
127145
{% endcode %}
128146

docs/api-references/video-models/README.md

Lines changed: 1 addition & 2 deletions
Large diffs are not rendered by default.

docs/capabilities/code-generation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Let's go over this again: any [text chat model](../api-references/model-database
2020
* [Qwen/Qwen2.5-Coder-32B-Instruct](../api-references/text-models-llm/Alibaba-Cloud/Qwen2.5-Coder-32B-Instruct.md)
2121
* [alibaba/qwen3-coder-480b-a35b-instruct](../api-references/text-models-llm/alibaba-cloud/qwen3-coder-480b-a35b-instruct.md)
2222
* [alibaba/qwen3-next-80b-a3b-instruct](../api-references/text-models-llm/alibaba-cloud/qwen3-next-80b-a3b-instruct.md)
23+
* [alibaba/qwen3-max-preview](../api-references/text-models-llm/alibaba-cloud/qwen3-max-preview.md)
24+
* [alibaba/qwen3-max-instruct](../api-references/text-models-llm/alibaba-cloud/qwen3-max-instruct.md)
2325
* [anthropic/claude-opus-4](../api-references/text-models-llm/anthropic/claude-4-opus.md)
2426
* [anthropic/claude-sonnet-4](../api-references/text-models-llm/anthropic/claude-4-sonnet.md)
2527
* [anthropic/claude-opus-4.1](../api-references/text-models-llm/anthropic/claude-opus-4.1.md)

docs/capabilities/function-calling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ print(json.dumps(response.choices[0].message.model_dump()['tool_calls'], indent=
116116
* [alibaba/qwen3-32b](../api-references/text-models-llm/alibaba-cloud/qwen3-32b.md)
117117
* [alibaba/qwen3-coder-480b-a35b-instruct](../api-references/text-models-llm/alibaba-cloud/qwen3-coder-480b-a35b-instruct.md)
118118
* [alibaba/qwen3-235b-a22b-thinking-2507](../api-references/text-models-llm/alibaba-cloud/qwen3-235b-a22b-thinking-2507.md)
119+
* [alibaba/qwen3-max-preview](../api-references/text-models-llm/alibaba-cloud/qwen3-max-preview.md)
120+
* [alibaba/qwen3-max-instruct](../api-references/text-models-llm/alibaba-cloud/qwen3-max-instruct.md)
119121

120122
***
121123

0 commit comments

Comments
 (0)