Core concepts
Model sources connect the gateway to providers. Logical models select execution targets. Built-in models provide platform-managed capacity. Model groups let you open and authorize several models together. Learn how these objects work together and which name to send in a request.
Compare the concepts
Figure 1. Model sources connect providers, logical models select targets, and model groups organize callable members and grants. In simple mode, manage the endpoint under Instance Settings → Model Calls.
|
Concept |
What it manages |
When to use it |
Value of model in a request |
|---|---|---|---|
|
Model source |
A specific provider account or endpoint and the models selected from that source. Each user-created model source is bound to one AI service. |
Connect different accounts, credentials, regions, or endpoints for the same provider. |
Use the invocation name of a model from this source, such as |
|
Logical model |
The target models and routing rules behind one invocation name. |
Keep a stable application-facing invocation name while using model mapping, weighted traffic splitting, intelligent routing, or failover. |
Use the logical model's invocation name, such as |
|
Built-in model (preset model) |
Model capabilities maintained and provided by the platform. |
Use a platform-provided model tier without supplying a provider API key. |
Use the platform invocation name, such as |
|
Model group |
A membership list containing models and logical models. |
Open models as a group or grant consumers access to the group's callable members. |
Use an individual member's invocation name. A model group has no invocation name for inference. |
|
Model endpoint |
The domain, path prefix, models, and request paths available at an address. |
Manage one endpoint under Instance Settings → Model Calls in simple mode. Enable multi-API management for independent endpoints and configure each Model API separately. |
The address selects the endpoint. The model field specifies an invocation name available at that endpoint. |
Model sources and provider models
A provider identifies who offers the model service. A model source identifies a specific connection. For example, create Source A and Source B for two accounts with the same provider. One provider can have multiple model sources, each with its own bound service endpoint and credentials.
Models added from a model source are called provider models. The model catalog provides model information to choose from. A model becomes part of the current instance only after you select and save it. Provider templates and the catalog do not mean that account credentials have been configured, and they do not automatically convert models from the classic console into model sources.
A provider model's invocation name consists of provider ID/model name, such as qwen/qwen-plus. The model source display name is not part of this value. Renaming Source A to Source 1 does not change the invocation name. Copy the invocation name displayed in the console.
Models from two sources can have the same invocation name. Each directly callable name at an endpoint must be unique. To use both sources, configure a logical model to distribute traffic or configure failover.
Logical models and target models
A logical model gives applications a stable name for accessing its underlying models. For example, an application requests model-a, and the gateway selects a target according to the routing rules. For a provider model, the gateway uses the AI service bound to its model source. For a preset model, the platform provides access. When the target changes, the application continues to use model-a.
-
Map to one model: always route to the specified target. Use this strategy for model aliases and migration.
-
Split traffic by weight: distribute requests among multiple targets based on relative weights. Use this strategy for gradual rollouts and traffic distribution across sources.
-
Intelligent routing: configure slots for simple, regular, and complex tasks. A decision model assesses task difficulty, and an invocation policy selects the target.
Targets can be provider models or activated preset models. A logical model cannot contain another logical model.
A grant on a logical model covers its invocation name. To call a target directly, open its own invocation name at the endpoint and grant the consumer access to it.
Built-in models and the model catalog
Platform preset models use aigw/* invocation names. The current page offers three tiers: Lite, Pro, and Frontier. The platform maintains the underlying models and may update them. You do not need to configure provider account credentials.
Provider model entries included in the catalog, such as Model Studio and DeepSeek models, still require a model source and provider credentials. Their setup differs from that of platform preset models, which you activate before use.
|
Comparison |
Provider models |
Platform preset models |
|---|---|---|
|
Who supplies upstream credentials |
You configure them in the AI service bound to the model source. |
The platform supplies them. No provider API key is required. |
|
Who selects the underlying model |
You select the provider's model name and endpoint. |
You select a platform tier; the platform maintains the underlying model. |
|
Model invocation charges |
The provider bills your account according to your plan. |
After activation, usage is billed under the platform's rules. Refer to the activation page and your bill. |
|
Application authentication |
Use the consumer's gateway API key. |
Use the consumer's gateway API key for preset models as well. |
Model groups and consumer groups
A model group defines what can be invoked; a consumer group defines which callers receive permissions. You can authorize a model group for a consumer or a consumer group. Members of a consumer group inherit the group's permissions.
Model groups can contain provider models, preset models, and logical models. A model can belong to multiple model groups. A model group cannot contain another model group.
When you open a group, its callable membership follows the group. A group grant covers only members open at the endpoint.
How requests pass through the objects
Figure 2. The application sends a gateway API key and an invocation name to the endpoint. The gateway checks access and forwards the request to the selected model or a logical model's target.
Direct provider model invocation:
Application → model endpoint (consumer authentication and authorization) → Provider model → AI service bound to the model source → Provider
Logical model invocation:
Application → model endpoint (consumer authentication and authorization) → Logical model (target selection) → Target model → Corresponding upstream
Preset model invocation:
Application → model endpoint (consumer authentication and authorization) → Preset model → Platform-provided model capabilities
Model groups provide batch selection and authorization during configuration. They are not routing nodes in the request execution path.
Before calling a model, verify that the endpoint is online, the model and request path are open, the consumer is enabled with a valid key, and its grants cover the model. The gateway must also be able to reach the upstream model.
For complete instructions, see Quick start.