Upgrade Qwen chat branding and new-credential gateway defaults

Summary

Complete the upgrade of the existing Alibaba / Qwen chat integration to 千问 AI 平台 (Qianwen AI Platform) for mainland China and QwenCloud internationally, including new-credential gateways and setup guidance. Keep existing credentials and workflows usable through their current call paths.

Motivation

The existing chat integration is branded Qwen Cloud, but its region mapping in n8n@2.46.4 still uses Alibaba DashScope hosts:

  • China: https://dashscope.aliyuncs.com
  • Singapore: https://dashscope-intl.aliyuncs.com

Source: alibaba-cloud-base-url.ts.

The node appends /compatible-mode/v1. Its Qwen Cloud label already reflects part of the branding update, but new-credential endpoint defaults and regional guidance still need alignment. Existing gateway URLs remain valid for legacy configurations.

Proposed Solution

Upgrade the existing credential/node onboarding, with explicit China/international selection and these new-credential defaults:

Platform / region OpenAI-compatible Base URL
Qianwen AI Platform / mainland China https://maas.qianwenaiapi.com/compatible-mode/v1
QwenCloud / international, Singapore https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1

Reuse the existing chat node, credential infrastructure, and interaction pattern. Replace any remaining legacy-brand primary labels and documentation rather than adding a separate parallel legacy-brand node for new users.

  • Preserve the existing credential type IDs, saved workflows, and legacy credential resolution.
  • Ensure older credentials keep their current gateway even when they rely on an implicit/default region mapping. Use credential versioning or another explicit compatibility mechanism as needed; do not derive a new gateway for old credentials solely because the default changed.
  • Use the same resolved endpoint for credential checks, model discovery, and chat requests where those operations are supported by the selected platform.
  • Ensure /compatible-mode/v1 is appended exactly once.
  • Limit this request to pay-as-you-go chat. Do not implicitly reroute image/video or other shared-credential consumers without separate validation.

Acceptance Criteria

  • The existing credential/node setup consistently uses the upgraded brands, official links, and regional new-gateway defaults.
  • Existing workflows and credentials keep their current routing.
  • Credential checks, model discovery, and chat agree on the resolved host.
  • Tests cover old credentials with implicit defaults, new credential creation, and URL suffix composition.
  • Documentation explains regional setup and continued operation of old workflows without mandatory credential migration.
  • The implementing PR identifies the published n8n version.

Alternatives Considered

A generic OpenAI-compatible credential is a workaround, but upgrading the existing Qwen integration provides a consistent branded experience while keeping old credential IDs and workflows compatible.

Additional Context

References: Qianwen AI Platform, QwenCloud documentation.

If you have questions about API keys, endpoint selection, or setup, please refer to the corresponding official site: