Manage model groups

Updated at:

Use a model group to open or authorize models together. Learn how to select and authorize a group and how membership changes affect endpoints and existing grants.

Ways to use a model group

Operation

Purpose

Effect of later membership changes

Select a model group for an endpoint

Adds the group's members to the API's callable models.

After the group configuration takes effect, the API follows membership changes.

Authorize a model group for consumers

Grants access to group members exposed by the current API.

When more members of the group become exposed by the API, consumers with group-based authorization automatically receive access to them.

Authorize current models individually

Grants access to the selected invocation names.

New models added later require additional authorization.

Selecting a model group and authorizing a model group control exposure and access permissions separately. Model groups do not route requests; clients always use an individual member's invocation name.

Create a model group

  1. Log on to the new console, select the region of your instance, and select the target dedicated instance.

  2. In the left navigation pane, click Model Groups, then click Create Model Group.

  3. Choose a name for the group, such as Model Group A, and optionally enter a description. The name is used only for console management and can include Chinese characters. It must be unique within the instance and can contain up to 128 UTF-8 bytes. The description can contain up to 1024 characters.

  4. Click Add Model and select provider models, activated preset models, or logical models from the instance. Check the sources of models that share a name.

  5. Click Save. Next, open the group at the required endpoint and choose which consumers can call its members.

A model can belong to multiple model groups, but the same model cannot be added twice to one group. Groups cannot contain other model groups. Adding a logical model adds its logical invocation name; it does not automatically include its underlying target models.

Open and authorize a group

  1. Under Instance Settings → Model Calls → Callable Models, click Edit and select the group. In multi-API mode, select the group under Models and Routing → Select Models in the target API.

  2. Check the members and paths, save, and verify publication. To stop opening a member through the group, remove it from that group. Resolve invocation-name conflicts and any member with no supported request path before opening the group.

  3. Open Model Calls → Authorization, or the target API's Authorization tab in multi-API mode. Click Configure Consumer Authorization, select a consumer or consumer group, select the model group, and confirm.

  4. Wait for permissions to take effect, then verify invocation using an individual member's invocation name.

If a consumer should access a model only through a logical model, do not also expose its underlying targets through direct authorization or other model groups. Effective permissions are the union of all valid authorization sources, including consumer group inheritance.

Example: Add a model later

Suppose Model Group A initially contains a single logical model, model-a. A Model API selects the group, and consumer A is authorized for the group. Consumer B is individually authorized only for model-a .

Change

Consumer A

Consumer B

Add the logical model model-b to the group. The group configuration takes effect and the API includes the model through the group.

Can invoke model-b without granting the group permission again.

Can still invoke only model-a; the new model requires separate authorization.

The API does not select the group, retains only group-based authorization, and has not exposed the new model.

Cannot invoke the new model yet. Access is granted only when the API exposes it and it is still a group member.

Access depends on individual authorization and the API's exposed models.

The scope of group-based authorization is always the intersection of current group members and models currently exposed by the API.

Change members and review the impact

A group grant covers members open at the endpoint. Check other grants after removing a member. In simple mode, removing the last callable model also takes the endpoint offline.

Figure 4. A group grant covers members open at the endpoint. Check other grants after removing a member. In simple mode, removing the last callable model also takes the endpoint offline.

  1. Open the model group edit page and add or remove members.

  2. Review the impact of this change: which APIs gain or lose callable models, which consumers or groups have permission changes, and whether fallback configuration is also removed.

  3. Resolve conflicting invocation names, inactive presets, or an occupied request path before continuing. In multi-API mode, a change that leaves an API with no callable models is rejected.

  4. In simple mode, a membership change recalculates callable models and paths. Removing the last callable model takes the endpoint offline while retaining settings and grants. Opening a compatible model and publishing successfully brings it back online.

  5. For failure or partial failure, follow the information on the page and use Retry Delivery. If the status is unknown or the record does not match the current version, query again before deciding whether the change is effective.

After saving, check the delivery result in the group details. In simple mode, also check whether the endpoint was published or taken offline. Verify the result with an authorized consumer.

Removing a member revokes permissions obtained through that group. Valid access through individual authorization, other model groups, or consumer groups may remain. If the model is no longer in the API's callable model list, it cannot be invoked through that API even if other authorization records remain.

Delete a model group

  1. Deselect the group under Callable Models, save, and confirm the result. In multi-API mode, remove the group from each API that selects it before deleting it.

  2. Check the consumers or consumer groups that still receive access through the group, then confirm deletion.

Deleting a model group revokes permissions obtained through it without deleting the member models. Check permissions from other sources separately.