> ## Documentation Index
> Fetch the complete documentation index at: https://aivision.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# Configure and manage shared model connections

> Manage Space-scoped model connections in Integrations, check connectivity, diagnostic results, and references, then select a connection within each feature.

This guide applies to platform versions with **Integrations → Model connections**. Older versions may still place this entry in **Space settings**; follow the interface in your version.

A model connection is a shared configuration within the current Space. It stores the service address, model, and credentials. Each feature selects its own connection and manages its own prompts and runtime parameters. LLM diagnosers and semantic checks currently use these connections. Creating one does not set a universal default model or automatically run inference on observation data.

Your Coding Agent still manages its own model account. Saved rule-based diagnosers run without a model connection. Start with [your first diagnosis](https://aivision.mintlify.site/en/guides/diagnosis.md).

For existing model usage that needs pricing evidence, use **Integrations → Model pricing**. It requires no model API key. Follow [complete model costs](https://aivision.mintlify.site/en/guides/model-pricing.md).

## Prepare the connection details

Space members can view connections. Creating, editing, deleting, fetching models, and running tests require administrator or developer permission in the target Space. Prepare the model service's API key. This is different from an AI Vision query SpaceKey. For a custom service, also prepare its **OpenAI Chat Completions-compatible Base URL** and exact model ID.

The platform service sends model requests. Opening the provider's website in your browser does not prove that the server running the platform can reach its API.

## Find a connection and inspect its details

Select the target Space and open **Model connections** under **Integrations** in the sidebar. The inventory shows that Space's shared connections. Search by connection name, model name, or endpoint, and filter by **Connected**, **Connection failed**, or **Not tested**. This filter uses connection status, not the basic diagnostic result.

Select a connection name to open its details:

| Tab | What it shows |
| - | - |
| **Overview** | Provider, Base URL, model, whether credentials are configured, update time, and saved connection status. The API key is never displayed. |
| **Validation results** | The current diagnostic report, test settings, sample results, and usage. Only the latest report is stored; this is not a validation history. |
| **References** | Known configurations using the connection. Currently, these are diagnosers; open one to check its runtime model. |

**Last connection test** shows **Not recorded** because the platform does not store a separate probe time. Neither the update time nor the diagnostic validation time is a connection-test timestamp. Saved connection status does not establish real-time availability. If references fail to load or show an unknown count, retry; this does not mean there are zero references.

[![English model connection inventory showing the current Space, search, connection-state filter, and references](https://mintcdn.com/aivision/zyAMOb0rG3w3D8rV/assets/figures/model-inventory.en.light.png?fit=max\&auto=format\&n=zyAMOb0rG3w3D8rV\&q=85\&s=a5c2811ccea567860f9606cd82255918)](https://aivision.mintlify.site/assets/figures/model-inventory.en.light.png)

[![English model connection inventory showing the current Space, search, connection-state filter, and references](https://mintcdn.com/aivision/zyAMOb0rG3w3D8rV/assets/figures/model-inventory.en.dark.png?fit=max\&auto=format\&n=zyAMOb0rG3w3D8rV\&q=85\&s=d49009ad537394332ecc8a5652e28da8)](https://aivision.mintlify.site/assets/figures/model-inventory.en.dark.png)

Shared model connections in the current Space · Search, connection status, and references · Real local platform · Click to enlarge

An old bookmark such as `/settings?tab=models&spaceId=<space-id>` redirects to the new inventory and retains its Space. Replace `<space-id>` with your Space ID. Existing connections, credentials, and diagnoser references are reused; no recreation is needed. Other Space settings tabs keep their purpose.

## Create and test

1. Select the target Space and open **Integrations → Model connections → New model connection**.
2. Choose a **Provider**. The form fills in the default **Base URL**. If an **API region** selector appears, choose the region that matches your key. You can always edit the default address.
3. Select **Get API key** to open the provider's key management page. Copy your own key into **API Key**.
4. Select **Fetch models**, then search for and choose a model. You can also enter the exact model ID directly. Where fetching is unavailable, choose a preset suggestion or enter the ID manually.
5. Check the generated **Connection name**, change it if needed, and save. The connection appears in the current Space inventory. Open its details and choose **Test connection** or **Diagnostic validation** for your purpose. Saving alone does not call the model or select the connection for each feature.

> [!TIP]
>
> Fetching models successfully only confirms that the list request succeeded. It does not establish inference permissions, available credit, or valid diagnostic output. Preset suggestions have not been checked against your account permissions either.

[![English shared model connection form showing provider, Base URL, API key, model, and connection name](https://mintcdn.com/aivision/zyAMOb0rG3w3D8rV/assets/figures/model-connection-setup.en.light.png?fit=max\&auto=format\&n=zyAMOb0rG3w3D8rV\&q=85\&s=c869369167a4b64522ca77ae1a6c2e05)](https://aivision.mintlify.site/assets/figures/model-connection-setup.en.light.png)

[![English shared model connection form showing provider, Base URL, API key, model, and connection name](https://mintcdn.com/aivision/zyAMOb0rG3w3D8rV/assets/figures/model-connection-setup.en.dark.png?fit=max\&auto=format\&n=zyAMOb0rG3w3D8rV\&q=85\&s=ba14d9adec7173fb02631c3841a5a21e)](https://aivision.mintlify.site/assets/figures/model-connection-setup.en.dark.png)

Model connection form · Choose a provider, address, and model · Real local platform · Click to enlarge

### Manage connections while editing a diagnoser

Select **Manage Connections** in the diagnoser form to open the inline manager. Closing it preserves unsaved prompts, runtime parameters, and loaded Trace materials. After creating a connection here, return to the diagnoser with that new connection selected. Saving the connection does not save the diagnoser or validate its current prompt. Run a trial, review the result, then save the diagnoser.

### Providers, regions, and custom addresses

The platform currently offers 11 provider presets and **Custom · OpenAI compatible**. Chinese lists DashScope, DeepSeek, Zhipu, and SiliconFlow first; English and Japanese list OpenAI, Anthropic, Gemini, OpenRouter, and NVIDIA first. All languages offer the same providers; only their order differs.

When you first select a provider with multiple regions, Chinese defaults to China, while English and Japanese default to the international or Singapore region. Changing the language does not change an address, region, or model you have already selected. Check the region associated with your account instead of relying on the default.

> [accordion] Preset Base URLs and ways to select models
>
> | Provider | Preset Base URL | Model selection |
> | - | - | - |
> | OpenAI | `https://api.openai.com/v1` | Fetch or enter manually |
> | Anthropic | `https://api.anthropic.com/v1` | Fetch or enter manually |
> | Google Gemini | `https://generativelanguage.googleapis.com/v1beta/openai` | Fetch, use a suggestion, or enter manually |
> | DashScope | China: `https://dashscope.aliyuncs.com/compatible-mode/v1`; Singapore: `https://dashscope-intl.aliyuncs.com/compatible-mode/v1` | Fetch, use a suggestion, or enter manually |
> | DeepSeek | `https://api.deepseek.com` | Fetch, use a suggestion, or enter manually |
> | Z.ai / Zhipu | China: `https://open.bigmodel.cn/api/paas/v4`; international: `https://api.z.ai/api/paas/v4` | Use a suggestion or enter manually |
> | SiliconFlow | `https://api.siliconflow.cn/v1` | Fetch, use a suggestion, or enter manually |
> | OpenRouter | `https://openrouter.ai/api/v1` | Fetch, use a suggestion, or enter manually |
> | NVIDIA | `https://integrate.api.nvidia.com/v1` | Fetch or enter manually |
> | Groq | `https://api.groq.com/openai/v1` | Fetch, use a suggestion, or enter manually |
> | Mistral AI | `https://api.mistral.ai/v1` | Fetch, use a suggestion, or enter manually |
>
> These are platform presets, not evidence that every model has passed a real diagnostic test. Available models and account access depend on the provider's current responses and your validation results.

* **DashScope** is the service provider; Qwen is one of its model families. You can select other returned models or enter an ID supported by the service.
* **SiliconFlow** currently uses the China `.cn` address in its preset. Do not combine it with a key for another region.
* **Anthropic** uses the official OpenAI-compatible API with Claude's default sampling and reasoning settings. Keys that require multiple workspaces are not currently supported.
* **NVIDIA** uses a NVIDIA Build API key and the hosted endpoint in the table above.
* **Custom services**: select Custom or edit the Base URL directly, for example `https://model.example.invalid/v1`. This address is only a placeholder. Enter the compatible API root without `/chat/completions`; do not enter a browser chat URL or a native Messages or Responses address. Custom addresses require a manually entered model ID; the platform does not fetch model lists from arbitrary addresses.

### Check connectivity

From the inventory's action menu or the connection details, select **Test connection → Run connection test**. The platform sends **1 request** to the saved model, which may consume tokens. This checks connectivity without running diagnostic validation. Success changes the connection status to **Connected**. On failure, follow the message to check the key, address, permissions, quota, or network.

You can run a connection test and diagnostic validation independently. A successful connection test does not turn an existing diagnostic report into a pass. Other features must also verify their own actual use of the connection.

## Validate basic diagnostic capability

After saving the connection, select **Diagnostic validation → Run validation** from its action menu or details. The system uses the real diagnosis workflow to check two fixed text samples:

* Positive example: request `Return exactly READY.`, reply `READY`; expected verdict: Completed.
* Negative example: the same request, reply `BUSY`; expected verdict: Not completed.

Both examples must receive the correct verdict, a valid diagnostic format, and valid evidence citations. Each validation sends at most **2 real model requests** and consumes tokens. There is no additional connectivity probe or automatic retry. Thinking models may use more output tokens.

Defaults are an output limit of **4096 tokens per request**, temperature **0**, default thinking and reasoning settings, and a **45-second** timeout per request. This is not a guarantee of the total validation duration. Start with the defaults; if output is truncated or parameters are incompatible, expand **Advanced test settings** to adjust them.

> [accordion] Adjust test parameters
>
> | Parameter | Allowed values |
> | - | - |
> | Output limit | 256–8192 tokens |
> | Temperature | 0–2 |
> | Timeout per request | 10–60 seconds |
> | Thinking | Default, Enabled, Disabled |
> | Reasoning effort | Default, Low, Medium, High |
>
> These parameters apply only to this validation; they do not change the diagnoser's settings. Provider support varies. For the official Anthropic address, temperature, thinking, and reasoning controls are disabled and Claude's defaults apply. You can still adjust the output limit and timeout.

[![English model connection Validation results tab showing the current diagnostic report, sample results, test settings, and usage](https://mintcdn.com/aivision/zyAMOb0rG3w3D8rV/assets/figures/model-connection-validation.en.light.png?fit=max\&auto=format\&n=zyAMOb0rG3w3D8rV\&q=85\&s=8d01dfe74c5263c8af78134d6b839ea3)](https://aivision.mintlify.site/assets/figures/model-connection-validation.en.light.png)

[![English model connection Validation results tab showing the current diagnostic report, sample results, test settings, and usage](https://mintcdn.com/aivision/zyAMOb0rG3w3D8rV/assets/figures/model-connection-validation.en.dark.png?fit=max\&auto=format\&n=zyAMOb0rG3w3D8rV\&q=85\&s=c36c404a2ad8289d9cde9c3230467d2c)](https://aivision.mintlify.site/assets/figures/model-connection-validation.en.dark.png)

Current saved diagnostic report · Built-in synthetic positive and negative examples · Reading saved results without another model call · Click to enlarge

The connection name, address, model, test settings, and usage shown come from an isolated test environment. They illustrate the interface, not a recommended configuration or cost guarantee. If you use OpenRouter's `openrouter/free`, it is a routing alias that may select a different model later. A passing result does not guarantee continued availability or diagnostic quality.

## Interpret connection status

Connection status and basic diagnostic results appear separately. **Connected and Basic diagnosis · Failed can appear together**: the API accepted the request, but the model did not produce a valid diagnostic result.

| Basic diagnosis status | Meaning and next step |
| - | - |
| Not validated | There is no current valid report. Select Diagnostic validation. |
| Passed | Both samples have valid verdicts, output formats, and citations. Continue by testing the actual diagnoser. |
| Failed | A verdict was wrong, or the output format or citations were invalid. Follow the message to adjust parameters or change the model, then retry. |
| Incomplete | Authentication, permissions, networking, quota, timeout, output limits, or another issue prevented complete validation. Resolve the specific cause first. A sample that did not run has not passed. |

The **Validation results** tab shows the current report's validation time, effective test settings, per-sample results, request count, and token usage. Saving a new diagnostic report replaces the current report instead of adding a history entry. Usage not returned by the provider appears as unknown, not zero. Refreshing the page only reads the saved report; it does not call the model again.

## The test passes but diagnosis still fails

A basic pass applies only to the fixed text samples and recorded test parameters. It does not replace testing the current diagnoser's prompt, parameters, and actual Trace, or establish tool, image, or long-context capability.

1. Create or edit the target LLM [diagnoser](https://aivision.mintlify.site/en/guides/diagnosers.md), configure its prompt, review its metrics, and select the runtime model you just validated. Metrics are read-only in this form: new diagnosers default to `quality`, and edits preserve existing metric definitions.
2. Choose a representative Trace in **Test and Validate**. If entering a Trace ID manually, press **Enter** and wait for the materials to load.
3. Select **Run Diagnosis**. Check that the verdict, reasons, and evidence fit that Trace. Use both known good and known bad samples.
4. After checking the results, save the diagnoser and add it to a [diagnosis task](https://aivision.mintlify.site/en/guides/diagnosis-tasks.md).

A passed basic diagnosis does not automatically mark the current diagnoser as **Validated**. In the trial section, Validated means that the trial successfully returned a valid diagnostic result; an abnormal result can mean that it correctly identified a bad sample. Neither type of validation automatically creates a diagnosis task.

### Resolve the reported cause

| Message or symptom | Check and next step |
| - | - |
| API key rejected or insufficient permissions | Check the key's provider, region, and model permissions. Update the key if necessary. |
| Model or endpoint not found | Fetch the model list again and check the model ID and Base URL. Do not append `/chat/completions` twice. |
| Rate limit | Wait before retrying; avoid repeatedly selecting validation. |
| Insufficient credit or quota | Check the provider account's usage, balance, and quota. Reducing samples cannot restore exhausted account quota. |
| Connection failure, timeout, or unavailable service | Check connectivity from the platform server to the model API and the provider's service status. Adjust the timeout within the allowed range if needed. |
| Incompatible request or parameters | Confirm the Chat Completions-compatible endpoint and model ID, then check which test parameters the model supports. |
| Output limit reached | Increase the output limit as appropriate. Thinking models can exhaust the budget before producing the final diagnosis. |
| Invalid diagnostic format or citations, or an unexpected verdict | Change the model or adjust test parameters, then retry. HTTP success does not replace a valid diagnostic result. |
| Connection changed during validation | Refresh the connection and validate again using the saved configuration. |
| Basic validation passes, but the actual Trace lacks materials or is not applicable | Check the Trace, Privacy redaction, and diagnoser requirements. Repeating connection validation cannot supply missing materials. |

When reporting a problem, include the connection name, validation time, and on-screen error message. Remove the full API key and sensitive business materials.

## Update or delete

When editing, leaving API Key blank retains the saved credential **only if the Base URL is unchanged**. Changing the Base URL requires a key for the new address. Switching providers or regions clears the key you entered and the model selection, so check them again.

When changing the address, model, or API key, the form shows **Review affected configurations** before saving. Check the listed references, then select **Save connection changes**. Changes to this shared connection affect subsequent runs of those configurations; each feature still manages its own prompts and runtime parameters. Retry if references fail to load; do not treat a failed lookup as no references.

Saving connection changes from the edit form clears the previous basic validation result. Run diagnostic validation again and trial the affected diagnosers, especially after changing the address, model, or key. Basic validation parameters are not automatically copied to the actual diagnoser.

Open **References** and check the diagnosers using a connection before deleting it. Referenced connections cannot be deleted, including those used by diagnosers that are not yet part of a task. Select another runtime model for each referencing diagnoser first, then delete the old connection. Changes affect subsequent execution; use the record from the relevant run when reviewing earlier results.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.