Configure model endpoints and authorization
Simple mode provides one invocation configuration per instance. Use it to manage an endpoint, open models, grant consumer access, and set up failover. Enable multi-API management if you need independent paths, model selections, and grants for different endpoints.
Choose a management mode
|
Mode |
Experience |
When to use it |
|---|---|---|
|
Simple mode |
The console attempts to generate an endpoint when you first add compatible models and opens those models. Manage the address, callable models, and failover under Instance Settings → Model Calls. |
One endpoint is sufficient for the current application. |
|
Multi-API mode |
Create multiple APIs from a list, such as |
You need to configure endpoints and their permissions independently. |
Under Instance Settings → Instance Information → Management Mode, enable Multi-API Management. The existing invocation configuration appears in the API list with its address, grants, and publication state preserved.
You can return to simple mode when there are no new-console APIs or only one. Multi-API management cannot be disabled when there are two or more APIs or the inventory cannot be confirmed. Scenario-based APIs from the classic console are managed separately and do not count toward this condition.
Simple mode: manage model calls
When you add supported provider models, create a logical model, or activate presets, the console attempts to open the models. Initial automatic setup normally uses the debug domain and root prefix (/). If models already exist without an endpoint, select Generate Endpoint at the top of the model list or in Instance Settings → Model Calls and choose at least one domain. Bind your own domain for production.
Manage domains and the path prefix under Access Address. If a path is occupied, identify its owner, then choose an unused prefix or migrate the classic API that owns the path. Changing an existing prefix requires clients using the old address to update their base URL.
Under Callable Models → Edit, open individual models or model groups. Closing a model for direct calls clears its own fallback settings and retains its model and grant records. It can still serve as another model's fallback or a logical model's target. Closing the last callable model takes the endpoint offline. Reopening a compatible model and publishing successfully brings it back online.
Manage consumer permissions in Model Calls → Authorization and protection in Model Calls → Security Protection. Initial setup enables request logging with request and response bodies excluded by default. Review or change request logging under Observability → Collection Settings.
Multi-API mode: create and publish an independent endpoint
-
Log on to the new console, select the region of your instance, and select the target dedicated instance.
-
With multi-API management enabled, open Model API in the sidebar and click Create Model API.
-
Select the access domain and enter the API name and path prefix. Check for conflicting routes on that domain.
-
Select individual models or model groups. Provider models, preset models, and logical models share the same selection area. Check the sources of provider models that share a name.
-
The creation page automatically generates supported request paths from the selected models. Check each path and its associated models on the confirmation page. There is no separate request-path selection area during creation.
-
New endpoints require consumer authentication. Configure request logs and AutoFallback as needed. Review charges, domains, models, and paths, then confirm creation and publication.
-
Wait for the publication result, then obtain the actual callable endpoints and model list from the overview or playground.
One API can select multiple domain names. They share the same models, path prefix, authentication, and authorization configuration. Debugging domain names have access restrictions; use custom domain names in production.
Request paths and Base URL
Simple mode derives request paths from callable models. In multi-API mode, adjust paths under Models and Routing → Select Models or Settings → Request Paths for the target API. Keep a supported path for each selected model.
|
Request type |
Standard suffix |
Main request body fields |
|---|---|---|
|
Chat Completions |
|
|
|
Completions |
|
|
|
Responses |
|
|
|
Anthropic Messages |
|
|
A complete endpoint consists of the domain name, API path prefix, and request suffix. For example, with the prefix /api-a , the Chat endpoint is https://YOUR_GATEWAY_DOMAIN/api-a/v1/chat/completions. The corresponding Base URL for an OpenAI-compatible SDK is https://YOUR_GATEWAY_DOMAIN/api-a/v1.
Available request types do not mean that every model supports every protocol. Select an API based on the target model's information and the paths actually published. Anthropic and OpenAI SDKs use different endpoints and authentication headers. Prefer the console-generated example for the specific request and consumer.
Configure model authorization
-
Create or select an existing consumer. Confirm that it is enabled and has a valid gateway API key. If multiple callers need the same permissions, you can add them to a consumer group first.
-
Open Model Calls → Authorization in simple mode, or the target API's Authorization tab in multi-API mode. Click Configure Consumer Authorization and choose a consumer or consumer group.
-
Select models or model groups, confirm the grant, and wait for it to take effect. Save changes when editing an existing grant. After generating an endpoint or publishing an API, verify the consumer's effective permissions for the target model.
|
Authorization target |
Permissions granted |
Permissions not granted automatically |
|---|---|---|
|
A specific provider model or preset model |
Access to the current API using that model's invocation name. |
Other models in the same API, models added later, or other APIs. |
|
Logical model |
Access using the logical invocation name, with routing performed by the logical model. |
Direct access using a target or fallback model's invocation name. |
|
Model group |
Access to group members exposed by the current API, updated as effective membership changes. |
Access to group members not exposed by the current API or access to other APIs. |
A consumer can have direct authorizations, model group permissions, and inherited consumer group permissions at the same time. Revoking one source may leave access through other sources. The authorization page can display permissions by consumer, model, or model group.
A consumer and its key can be used across multiple instances in the same region, but each API requires its own authorization. Obtaining a key does not grant access to any particular API or model.
Authentication is mandatory for new endpoints. Only existing anonymous endpoints can continue to accept anonymous calls. Anyone with their address can incur preset charges, and consumer grants do not restrict anonymous access. Newly added models are not automatically opened on these endpoints. Prepare credentials and grants before enabling authentication. Once enabled, it cannot be disabled. Smart routing requires authenticated consumers.
Configure fallback models
In simple mode, open Instance Settings → Model Calls → Failover. Select the model to configure, then add up to five fallbacks in order. In multi-API mode, use Models and Routing in the target API. Choose provider models or activated presets compatible with the request path. Configure a logical model's own fallbacks on its logical model page.
Fallback models do not need to be included in the API's client-callable list or separately authorized. They are used only for internal failover. To allow direct client access, add them to the API and authorize them separately.
Only specified upstream failures trigger failover: upstream 404, 429, and 5xx responses, connection failures, and first-byte timeouts. Other 4xx responses, gateway-generated 404 responses, and authentication, authorization, quota, or security rejections do not. Fallbacks are attempted separately for each path based on compatibility; failover does not switch paths.
For a platform fallback, check AutoFallback under Failover in simple mode or in the target API's settings in multi-API mode. It can try aigw/pro at the end of the chain for compatible requests and requires active, billable platform presets.
First-Byte Timeout (ms) controls only the wait for the first byte. A value of 0 uses the gateway's default configuration. It does not limit the duration of the complete streamed response.
Confirm that configuration has taken effect
|
Changed object |
Status to confirm |
What to do |
|---|---|---|
|
Endpoint address, callable models, or paths |
Publication result after saving. |
Wait for publication to succeed. On failure, resolve the error and publish again. If the result is unknown, continue querying. |
|
Consumer model authorization |
Authorization delivery status. |
Wait for permissions to take effect. On failure, retain the error and check the currently effective permissions. |
|
A referenced logical model |
Shared configuration delivery status for the logical model's current version. |
After saving, check beneath the saved item in the logical model list. Reopening the edit page shows delivery information only for failures or retries. Use the provided retry option if needed. |
|
A selected model group |
Group configuration delivery status for the current model group version. |
Check delivery in the group details. Simple mode recalculates the paths from the current members. Verify that the endpoint is online or was taken offline as expected. |
Saving an object, delivering configuration, and successfully invoking a model are different outcomes. Verify final availability through the published endpoint with an actual request.
Troubleshooting
|
Symptom |
What to check |
|---|---|
|
A model appears in the model list, but clients cannot invoke it |
Check the notice at the top of the model list. Under Instance Settings → Model Calls, verify that the model and path are open and the endpoint is online. Then verify the consumer's grants. In multi-API mode, check the target API. |
|
Models from the same provider cannot be selected together |
Check for conflicting complete invocation names. For traffic splitting across sources, use a logical model or configure one source as a fallback. |
|
A logical model is authorized, but its target cannot be invoked directly |
Logical model authorization grants access only to the logical invocation name. Select and authorize the target separately for direct access. |
|
A consumer cannot invoke a model newly added to a group |
Check that the API exposes the new member, the consumer has group-based authorization, and the current group configuration was delivered successfully. |
|
A request returns 401 or 403 |
Use the specific error to check the key, credential location, consumer status, API authentication, and model authorization. Fallback is not a remedy for a gateway rejection. |
|
A request returns 404 |
Check the domain, prefix, and open paths. In simple mode, closing the last callable model takes the endpoint offline. Requests return 404 if no other route matches. If the request reached the provider, check its response. |
|
How do I verify a change to weights or group membership? |
Check the delivery status for the change on the logical model or model group. In simple mode, group changes can also update paths or take the endpoint offline. Verify with a real request. |
|
Preset model status or publication result is unknown |
Query the corresponding status again. An unknown status is not evidence of activation or effective configuration. |