{
  "id": "qwen",
  "icon": "https://cdn.simpleicons.org/qwen",
  "activation": {
    "onStartup": false
  },
  "enabledByDefault": true,
  "providers": [
    "qwen",
    "qwencloud",
    "modelstudio",
    "dashscope",
    "qwen-token-plan",
    "bailian-token-plan"
  ],
  "providerEndpoints": [
    {
      "endpointClass": "modelstudio-native",
      "baseUrls": [
        "https://coding-intl.dashscope.aliyuncs.com/v1",
        "https://coding.dashscope.aliyuncs.com/v1",
        "https://dashscope.aliyuncs.com/compatible-mode/v1",
        "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
        "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
        "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"
      ]
    }
  ],
  "providerRequest": {
    "providers": {
      "qwen": {
        "family": "modelstudio"
      },
      "qwencloud": {
        "family": "modelstudio"
      },
      "modelstudio": {
        "family": "modelstudio"
      },
      "dashscope": {
        "family": "modelstudio"
      },
      "qwen-token-plan": {
        "family": "modelstudio"
      },
      "bailian-token-plan": {
        "family": "modelstudio"
      }
    }
  },
  "modelCatalog": {
    "suppressions": [
      {
        "provider": "qwen",
        "model": "qwen3.6-flash",
        "reason": "qwen3.6-flash is not supported on the Qwen Coding Plan endpoint; use a Standard pay-as-you-go Qwen endpoint.",
        "when": {
          "baseUrlHosts": ["coding.dashscope.aliyuncs.com", "coding-intl.dashscope.aliyuncs.com"],
          "providerConfigApiIn": ["qwen", "modelstudio"]
        }
      },
      {
        "provider": "qwen",
        "model": "qwen3.7-max",
        "reason": "qwen3.7-max is not supported on the Qwen Coding Plan endpoint; use a Standard pay-as-you-go Qwen endpoint.",
        "when": {
          "baseUrlHosts": ["coding.dashscope.aliyuncs.com", "coding-intl.dashscope.aliyuncs.com"],
          "providerConfigApiIn": ["qwen", "modelstudio"]
        }
      },
      {
        "provider": "modelstudio",
        "model": "qwen3.6-flash",
        "reason": "qwen3.6-flash is not supported on the Qwen Coding Plan endpoint; use a Standard pay-as-you-go Qwen endpoint.",
        "when": {
          "baseUrlHosts": ["coding.dashscope.aliyuncs.com", "coding-intl.dashscope.aliyuncs.com"],
          "providerConfigApiIn": ["qwen", "modelstudio"]
        }
      },
      {
        "provider": "modelstudio",
        "model": "qwen3.7-max",
        "reason": "qwen3.7-max is not supported on the Qwen Coding Plan endpoint; use a Standard pay-as-you-go Qwen endpoint.",
        "when": {
          "baseUrlHosts": ["coding.dashscope.aliyuncs.com", "coding-intl.dashscope.aliyuncs.com"],
          "providerConfigApiIn": ["qwen", "modelstudio"]
        }
      }
    ],
    "providers": {
      "qwen-token-plan": {
        "baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
        "api": "openai-completions",
        "models": [
          {
            "id": "qwen3.7-max",
            "name": "qwen3.7-max",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "qwen3.7-plus",
            "name": "qwen3.7-plus",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "qwen3.6-plus",
            "name": "qwen3.6-plus",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "qwen3.6-flash",
            "name": "qwen3.6-flash",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "deepseek-v4-pro",
            "name": "deepseek-v4-pro",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 393216
          },
          {
            "id": "deepseek-v4-flash",
            "name": "deepseek-v4-flash",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 393216
          },
          {
            "id": "deepseek-v3.2",
            "name": "deepseek-v3.2",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 131072,
            "maxTokens": 65536
          },
          {
            "id": "kimi-k2.7-code",
            "name": "kimi-k2.7-code",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 262144,
            "maxTokens": 98304
          },
          {
            "id": "kimi-k2.6",
            "name": "kimi-k2.6",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 262144,
            "maxTokens": 98304
          },
          {
            "id": "kimi-k2.5",
            "name": "kimi-k2.5",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 262144,
            "maxTokens": 98304
          },
          {
            "id": "glm-5.2",
            "name": "glm-5.2",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 131072
          },
          {
            "id": "glm-5.1",
            "name": "glm-5.1",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 202752,
            "maxTokens": 131072
          },
          {
            "id": "glm-5",
            "name": "glm-5",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 202752,
            "maxTokens": 16384
          },
          {
            "id": "MiniMax-M2.5",
            "name": "MiniMax-M2.5",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 196608,
            "maxTokens": 32768
          }
        ]
      }
    },
    "discovery": {
      "qwen": "runtime",
      "qwen-token-plan": "refreshable"
    }
  },
  "contracts": {
    "mediaUnderstandingProviders": ["qwen"],
    "videoGenerationProviders": ["qwen"]
  },
  "mediaUnderstandingProviderMetadata": {
    "qwen": {
      "capabilities": ["image", "video"],
      "defaultModels": {
        "image": "qwen3.6-plus",
        "video": "qwen3.6-plus"
      },
      "autoPriority": {
        "video": 15
      }
    }
  },
  "setup": {
    "providers": [
      {
        "id": "qwen",
        "envVars": ["QWEN_API_KEY", "MODELSTUDIO_API_KEY", "DASHSCOPE_API_KEY"]
      },
      {
        "id": "qwen-token-plan",
        "envVars": ["QWEN_TOKEN_PLAN_API_KEY"]
      }
    ]
  },
  "providerAuthChoices": [
    {
      "provider": "qwen",
      "method": "standard-api-key-cn",
      "choiceId": "qwen-standard-api-key-cn",
      "appGuidedSecret": true,
      "deprecatedChoiceIds": ["modelstudio-standard-api-key-cn"],
      "choiceLabel": "Standard API Key for China (pay-as-you-go)",
      "choiceHint": "Endpoint: dashscope.aliyuncs.com",
      "groupId": "qwen",
      "groupLabel": "Qwen Cloud",
      "groupHint": "Standard / Coding Plan (CN / Global) + multimodal roadmap",
      "optionKey": "modelstudioStandardApiKeyCn",
      "cliFlag": "--modelstudio-standard-api-key-cn",
      "cliOption": "--modelstudio-standard-api-key-cn <key>",
      "cliDescription": "Qwen Cloud standard API key (China)"
    },
    {
      "provider": "qwen",
      "method": "standard-api-key",
      "choiceId": "qwen-standard-api-key",
      "appGuidedSecret": true,
      "deprecatedChoiceIds": ["modelstudio-standard-api-key"],
      "choiceLabel": "Standard API Key for Global/Intl (pay-as-you-go)",
      "choiceHint": "Endpoint: dashscope-intl.aliyuncs.com",
      "groupId": "qwen",
      "groupLabel": "Qwen Cloud",
      "groupHint": "Standard / Coding Plan (CN / Global) + multimodal roadmap",
      "optionKey": "modelstudioStandardApiKey",
      "cliFlag": "--modelstudio-standard-api-key",
      "cliOption": "--modelstudio-standard-api-key <key>",
      "cliDescription": "Qwen Cloud standard API key (Global/Intl)"
    },
    {
      "provider": "qwen",
      "method": "api-key-cn",
      "choiceId": "qwen-api-key-cn",
      "appGuidedSecret": true,
      "deprecatedChoiceIds": ["modelstudio-api-key-cn"],
      "choiceLabel": "Coding Plan API Key for China (subscription)",
      "choiceHint": "Endpoint: coding.dashscope.aliyuncs.com",
      "groupId": "qwen",
      "groupLabel": "Qwen Cloud",
      "groupHint": "Standard / Coding Plan (CN / Global) + multimodal roadmap",
      "optionKey": "modelstudioApiKeyCn",
      "cliFlag": "--modelstudio-api-key-cn",
      "cliOption": "--modelstudio-api-key-cn <key>",
      "cliDescription": "Qwen Cloud Coding Plan API key (China)"
    },
    {
      "provider": "qwen",
      "method": "api-key",
      "choiceId": "qwen-api-key",
      "appGuidedSecret": true,
      "deprecatedChoiceIds": ["modelstudio-api-key"],
      "choiceLabel": "Coding Plan API Key for Global/Intl (subscription)",
      "choiceHint": "Endpoint: coding-intl.dashscope.aliyuncs.com",
      "groupId": "qwen",
      "groupLabel": "Qwen Cloud",
      "groupHint": "Standard / Coding Plan (CN / Global) + multimodal roadmap",
      "optionKey": "modelstudioApiKey",
      "cliFlag": "--modelstudio-api-key",
      "cliOption": "--modelstudio-api-key <key>",
      "cliDescription": "Qwen Cloud Coding Plan API key (Global/Intl)"
    },
    {
      "provider": "qwen-token-plan",
      "method": "api-key",
      "choiceId": "qwen-token-plan",
      "appGuidedSecret": true,
      "choiceLabel": "Qwen Token Plan (Global/Intl)",
      "choiceHint": "Endpoint: token-plan.ap-southeast-1.maas.aliyuncs.com",
      "groupId": "qwen",
      "groupLabel": "Qwen Cloud",
      "groupHint": "Standard / Coding Plan / Token Plan",
      "optionKey": "qwenTokenPlanApiKey",
      "cliFlag": "--qwen-token-plan-api-key",
      "cliOption": "--qwen-token-plan-api-key <key>",
      "cliDescription": "Qwen Token Plan API key (Global/Intl)"
    },
    {
      "provider": "qwen-token-plan",
      "method": "api-key-cn",
      "choiceId": "qwen-token-plan-cn",
      "appGuidedSecret": true,
      "choiceLabel": "Qwen Token Plan (China)",
      "choiceHint": "Endpoint: token-plan.cn-beijing.maas.aliyuncs.com",
      "groupId": "qwen",
      "groupLabel": "Qwen Cloud",
      "groupHint": "Standard / Coding Plan / Token Plan",
      "optionKey": "qwenTokenPlanApiKeyCn",
      "cliFlag": "--qwen-token-plan-api-key-cn",
      "cliOption": "--qwen-token-plan-api-key-cn <key>",
      "cliDescription": "Qwen Token Plan API key (China)"
    }
  ],
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {}
  }
}
