OpenThai 2.2 Qwen4 35B-A3B
Chat completions on OpenThai 2.2 Qwen4 35B-A3B, Qwen4-35B-A3B fine-tuned to keep its answers in Thai and English, through an OpenAI-compatible endpoint.
/v3/llm/openthai2p2-qwen4/chat/completionsTry itInput
- model
- openthai2.2-qwen4-35b-a3b
- messages
- role: user content: สรุปประโยชน์ของการออกกำลังกายใน 1 ประโยค
- chat_template_kwargs
- enable_thinking: false
OutputPOST /v3/llm/openthai2p2-qwen4/chat/completions
- id
- chatcmpl-...
- model
- openthai2.2-qwen4-35b-a3b
- choices
- message: { role, content }
- usage
- prompt_tokens: 33 completion_tokens: 24
Request
JSON, in the OpenAI chat-completions shape; the OpenAI SDK works as-is with the base URL https://api.iapp.co.th/v3/llm/openthai2p2-qwen4 and the key as apikey or Authorization: Bearer. The context window is 65,536 tokens. The route serves text only.
Headers
apikeystringrequiredBody
modelstringopenthai2.2-qwen4-35b-a3b, the one model this route serves; any other value is replaced with it.messagesarrayrequiredchat_template_kwargsobject{"enable_thinking": false} gives a direct answer and uses fewer output tokens.temperaturetop_ptop_kpresence_penaltyfloatmax_tokensintegertoolsarraystreambooleantrue for server-sent events, with stream_options: {"include_usage": true}. Recommended with thinking on: see Limits.Price
A call costs 0.01 IC per 1K input tokens and 0.02 IC per 1K output tokens, each rounded up to the next 1K.
Response
message.reasoning and only the answer in message.content, so OpenAI SDK code needs no change. Reasoning tokens are output tokens and are billed as such.The OpenAI chat-completion object, as in the panel. With thinking on, the reasoning is in message.reasoning and only the answer in message.content, so OpenAI SDK code needs no change. Reasoning tokens are output tokens and are billed as such.
Details
What it is
OpenThai 2.2 Qwen4 35B-A3B is Qwen4-35B-A3B (35B parameters, 3B active per token) fine-tuned by the OpenThai team so that answers stay in Thai and English. It still writes Chinese when asked. The weights are open under Apache-2.0 on Hugging Face; the results, the comparison with Wisp by Centillex and the limits are in the launch post.
Measured
Measured by the OpenThai team with vLLM and BF16 weights, the original against this model, question by question.
| Measure | Qwen4-35B-A3B | This model |
|---|---|---|
| Answers with a character outside Thai and English, 4,060 unseen prompts, thinking off | 1,232 (30.3%) | 6 (0.15%) |
| The same, thinking on, the reasoning counted | 2,378 (58.6%) | 5 (0.12%) |
| ThaiExam, thinking off | 71.54 | 75.19 |
| OpenThaiEval, thinking off | 74.11 | 75.65 |
| MMLU-Redux, thinking off | 90.44 | 90.23 |
| GPQA Diamond, thinking on | 85.73 | 85.86 |
| BFCL v3, tool calling | 73.24 | 76.05 |
A difference smaller than about twice its standard error is not a change of the model; the standard errors are on the model card.
When to use another model
- Whole answers in Hindi, Korean, Russian, Arabic or another language, or prompts written in Chinese: the original Qwen4-35B-A3B. This model met 6 of 23 such instructions (the original 20), and 27 of 200 prompts written in Chinese looped with greedy decoding.
- Thai law, official letters and local facts: OpenThai 2.0 or OpenThai 2.0 Legal. This model knows only a little more about Thailand than the original.
- Reading images and documents: OpenThai 2.0. This route serves text only.
Limits
- 30 requests per minute per key (3 a second, 400 an hour).
- A request that is not streamed may return HTTP 504 if the answer takes longer than 180 seconds. With thinking on, send
stream: truewithstream_options: {"include_usage": true}: tokens arrive as they are generated, which keeps the request open while the model reasons, and the call is billed by its tokens. A stream withoutinclude_usageis billed a flat 1 IC. - A stray English word inside a Thai sentence remains in about one Thai answer in five.
Data handling
Prompts and completions are processed in memory and not kept after the response. Consent and notice under PDPA and GDPR remain with you as the data controller. The same model also runs on your own hardware.