Huawei Cloud’s newest Pangu model has two unusually specific coding assignments: build HarmonyOS apps and generate operators for Ascend AI chips. openPangu-2.1-Pro arrived on Huawei’s Model-as-a-Service platform on November 15, alongside tool-use upgrades, a 512K-token context window and pricing that sharply discounts cache-hit input.

An operator is the low-level software routine that performs a mathematical job inside an AI model. Making that routine work efficiently on a particular accelerator is much more specialised than writing an ordinary app function. Huawei says the new model is optimised both for that Ascend work and for ArkTS, the language used for HarmonyOS app development.

That is a more interesting target than another generic promise of better coding. It suggests a model being tuned around the tools and hardware its developer ecosystem actually uses. The limitation is equally clear: Huawei’s launch page provides no compile-rate results or independent coding benchmarks, so the quality of that generated code remains untested.

Agents, long prompts and cached repeats

Huawei says it used more than 100,000 specialised training examples to improve the model’s skill triggering, tool selection and tool calls. Those are the decisions that turn a chatbot into an agent: not merely describing a task, but choosing a function and executing the steps in a useful order.

A HarmonyOS developer might, for example, want an assistant that inspects project material before calling a code-generation tool. That is a possible use of the advertised capabilities, not a demonstrated result from this model.

The official listing describes text input and output in Chinese and English, optional deep thinking, function calling and APIs compatible with OpenAI and Anthropic formats. It lists a 512K-token context window, with a maximum input of 500K tokens. Tokens are chunks of text rather than words; a large window allows long documents or substantial project context to be supplied together, but does not guarantee that the model will use every detail reliably.

The prices are 0.8 yuan per million ordinary input tokens and 3.2 yuan per million output tokens. Cache-hit input costs 0.016 yuan per million tokens—just 2% of the ordinary input rate. Prefix caching reuses previously processed input, so an application that repeatedly sends the same large documentation or project context can pay much less when the cache actually hits. New questions and generated answers still incur their own charges.

I think this caching arrangement is as worth inspecting as the huge context ceiling. Long context becomes much more practical when repeatedly supplying that context does not mean repeatedly paying the full input price.

Huawei describes openPangu-2.1-Pro as the latest model in its open-source Pangu line. The hosted model page, however, does not provide a weight download, licence, parameter count or architecture details. The “open” label should therefore not be read here as confirmation that this exact version is downloadable and self-hostable.

The useful test is narrower than asking it to write another poem. Give it a real ArkTS app task or an Ascend operator problem, check whether the result compiles, and measure how often a repeated-context workload hits the cache. That is where Huawei’s claimed specialisation would become genuinely valuable.

Sources