Manage model sources
A model source manages a specific provider account or endpoint and the models connected through it. You can add multiple model sources for one provider and configure an independent AI service for each source.
What a model source contains
|
Configuration |
Purpose |
Example |
|---|---|---|
|
Model source name |
Distinguishes sources in the console and must be unique within the instance. Renaming a source does not change model invocation names. |
Source A |
|
Provider |
Identifies the provider to which the source belongs. The provider cannot be changed after creation. |
Qwen Cloud / Alibaba Cloud Model Studio |
|
Bound AI service |
Stores the request endpoint, upstream authentication, and provider configuration. A service can belong to only one model source. |
|
|
Model list |
The specific models connected through the source and their capability information. |
|
Create separate model sources for different accounts, API keys, access regions, or endpoints of the same provider. With provider API key authentication, each new service uses one key or one supported KMS secret reference. Configure other authentication methods as required by the provider template.
Add Model Source
-
Log on to the new console, select the region of your instance, and select the target dedicated instance.
-
In the Models page, click Add Model Source and select a provider. To connect an OpenAI-compatible self-hosted service, you can select the OpenAI Compatible template.
-
Enter a model source name that identifies the account and purpose, such as Source A or Source B. The name must be unique within the current instance and can contain up to 128 UTF-8 bytes.
-
Select Create Service and enter the connection details, or select Use Existing Service to bind an AI service from the same instance and provider that does not already belong to another model source.
-
Select models from the catalog. If a model is not listed, expand Enter Model Name Manually, enter the name accepted by the upstream, select the Chat, Responses, or Messages requests that it actually supports, and click Add Model to add it to the current list. Entering a name and saving immediately does not add the model.
-
Review the list and click Create Now. Simple mode attempts to open the compatible models in this addition. It generates an endpoint on first use or adds models to the existing configuration. Verify publication and grant consumer access. In multi-API mode, select and publish the models in the target API.
|
Parameter |
Configuration requirements |
|---|---|
|
Service name |
Must start with a lowercase letter and contain only lowercase letters, digits, and hyphens. Maximum length: 64 characters. |
|
Request endpoint |
Use the HTTP or HTTPS endpoint for the target provider, site, region, or workspace. The URL cannot contain a username, password, or fragment. |
|
Upstream authentication |
Select an authentication method supported by the provider template. For API key authentication, configure one key for each new service. For KMS, select the corresponding reference. |
|
Region and plan |
The credentials must match the selected endpoint and plan. Model Studio pay-as-you-go and Token Plan access, different regions, and different workspaces may use different endpoints. |
|
Models and request paths |
Model names must match the upstream. Declaring a path describes a model capability; it does not add a protocol or API capability to the upstream. |
View model information and edit prices and paths
On the Models page, click a provider model name to open its details. The current page lets you edit only model prices and request paths. The model name, invocation name, model source, and existing context, maximum output, and input type information are read-only. There is no editor for output modalities or capability features.
|
Information |
Meaning and usage |
|---|---|
|
Request paths |
Editable. Declare the request paths supported by the model by selecting common paths or entering custom paths. A custom path declaration does not add request types to Model API. The API currently provides Chat, Completions, Responses, and Messages. |
|
Token limits |
Read-only, based on existing model information. Context length and maximum output cannot be changed on the details page. Logical models use these values to calculate shared limits. |
|
Input/output modalities and capabilities |
Provided by existing model information. The current page does not offer an editor for output modalities or capability features. Actual input, output, and tool-calling support must match the upstream model. |
|
Model prices |
You can edit input, output, and cache-hit prices in Credits per million tokens. All three values must be nonnegative; enter 0 for a free item. These values are used for quota consumption, not the provider's prices in CNY. |
If a model is the only one serving an open path, close it under Instance Settings → Model Calls → Callable Models or add another model that supports the path before removing it. A model that declares only an unsupported path such as /v1/embeddings can be saved but cannot be opened. Verify paths used by logical models and applications after editing.
Use multiple sources for one provider
For example, both Source A and Source B connect qwen-plus. The console distinguishes them by source, but both client-facing invocation names are qwen/qwen-plus.
-
If you need one source, identify the model by its source under Callable Models. If the model is marked as unavailable, check the notice at the top of the model list. Resolve a path conflict if reported. For an existing anonymous endpoint, enable authentication before opening the new model manually.
-
To distribute traffic between the two sources, create a logical model named
model-a, select the models from both sources as targets, and configure their weights. -
For failover, use the model from the other source as a fallback. A fallback can be a different model source with the same invocation name; actual attempts are distinguished by model identity.
A Model API's directly callable list cannot contain two models with the same complete invocation name. A model source display name cannot replace the provider prefix in an invocation name.
Change a service endpoint or credentials
-
On the Models page, find the target model source and choose to edit it.
-
Check the service endpoint, authentication method, and model list. Existing provider credentials are not displayed. Keep the saved value if you are not changing it; use the replacement option on the page to enter a new value.
-
Review the service references and configuration changes on the confirmation page, then save.
-
After the configuration takes effect, new requests that use the service use the updated endpoint and credentials, including requests through published Model APIs. Verify the related model invocations after the change.
Changing an endpoint or credentials affects calls that share this service. If you are editing a legacy service with multiple keys, replacing credentials replaces the entire old key set with the single new key you enter. Check the impact displayed on the page first.
If the page reports that the version or references have changed, reload the configuration and review your draft before saving. If the complete impact cannot be retrieved, retry the read first.
Remove models or delete a model source
-
Check model group, logical model, and fallback references. In simple mode, when you remove a callable model from a source, the console removes it from the invocation configuration and confirms publication before deleting the model. Removing the last callable model takes the endpoint offline.
-
On the model source edit page, deselect models that are no longer needed and save. Remove references to models that are still in use first.
-
Before deleting the entire source, remove references that block deletion as prompted, then remove or delete the source.
Removing a model may also remove associated configuration, such as model group membership and permissions for that model. Review the impact confirmation before saving. Deleting a model source preserves the underlying service and credentials; it does not release those resources for you.
Platform Presets is maintained by the system. It cannot be edited or deleted like a user-created model source.