TL;DR: On a 401, check three things: the key belongs to the same region and plan as the endpoint, the host matches your region (intl hosts for Singapore/US), and the path matches your client (/compatible-mode/v1 for OpenAI-compatible clients, /api/v1 for the DashScope SDK). For production use the workspace-dedicated domain, not the trial domain, to get proper rate limits.

## Fix
1. On a 401, check three things: the key belongs to the same region and plan as the endpoint, the host matches your region (intl hosts for Singapore/US), and the path matches your client (/compatible-mode/v1 for OpenAI-compatible clients, /api/v1 for the DashScope SDK).
   Expected: this specific failure stops.
2. For production use the workspace-dedicated domain, not the trial domain, to get proper rate limits.
   Expected: the request routes instead of erroring.

## When to use
You hit exactly this: Model Studio 401s: pair the API key with the right plan, region, and base URL path in Model Studio 401s.

## When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.

## Compatibility
Model Studio 401s (versions mentioned here: v1).