Model configuration
Model configuration operations in the Hlix API.
See the OpenAPI document for schemas and operation IDs.
Prerequisites
Section titled “Prerequisites”- Protected operations require an API key in
x-api-keyor a browser session cookie; some actions require a verified user session - Tenant-scoped operations use
X-Organization-Id; browser sessions can use their active workspace. Discovery and personal-workspace bootstrap do not require an active workspace - The base URL for your deployment,
https://server.hlix.aiby default
Operations
Section titled “Operations”List the workspace’s AI settings rows
Section titled “List the workspace’s AI settings rows”GET /v1/api/model-config · operation ID listAiSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
CoreSettingsRow[] | Configured AI settings: workspace rows have projectId: null, followed by project overrides. Omitted groups use defaults. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Clear one workspace settings group
Section titled “Clear one workspace settings group”DELETE /v1/api/model-config/{slot} · operation ID clearAiSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slot |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
DeletedAck | Cleared; the group falls back to the default. |
400 |
ApiError | The path segment is not a settings group (project_manager or cycle), or the request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing workspace settings requires owner or admin access because these settings select the harness and default models across projects. |
404 |
ApiError | That group had no workspace setting to clear. |
Set one workspace settings group
Section titled “Set one workspace settings group”PUT /v1/api/model-config/{slot} · operation ID setAiSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slot |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, UpsertSettings (required)
| Property | Type | Required | Notes |
|---|---|---|---|
coder |
hlix | claude-code | codex | opencode | goose | qwen-code | pi | null |
no | |
effort |
low | medium | high | xhigh | max | null |
no | |
fast |
boolean | null | no | |
funding |
object | null | no | |
maxParallelCycles |
integer | null | no | |
model |
string | null | no |
Responses
| Status | Body | Description |
|---|---|---|
200 |
CoreSettingsRow | The stored row. Omitted fields keep their value and null clears one. Moving the harness without naming a provider resets an incompatible provider to hlix-managed. |
400 |
ValidationError | ApiError | The path segment is not a settings group (project_manager or cycle), the JSON body failed validation, the projectManager group was given a cycle-only field, the harness cannot use the selected provider, or the request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing workspace settings requires owner or admin access because these settings select the harness and default models across projects. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
409 |
ApiError | The settings changed while this request was being checked; read them again and retry. |
List the models a picker offers: thinking models, or the media models of one capability
Section titled “List the models a picker offers: thinking models, or the media models of one capability”GET /v1/api/model-config/catalog · operation ID listModelCatalog
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
makes |
query | no | string | text (the default: tool-capable chat models), or a media capability: video, image, speech or music. Media rows carry makes, media (what it starts from, its limits and its unit price) and recommended from the hlix policy. |
startsFrom |
query | no | string | What the work starts from (image, first_last_frame, reference_images, sound): each row then carries fit, { usable: true } or { usable: false, reason }. |
projectId |
query | no | string | A project whose cost cap applies: a media model whose dearest call exceeds what the cap leaves is above_cost_cap. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ModelCatalog | Model catalog, with freshness metadata. |
400 |
ApiError | The query is not one the catalog takes. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Clear the workspace’s media slot
Section titled “Clear the workspace’s media slot”DELETE /v1/api/model-config/media · operation ID clearMediaSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
DeletedAck | Cleared; the capabilities follow the hlix policy. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing workspace settings requires owner or admin access because these settings select the harness and default models across projects. |
404 |
ApiError | The workspace had no media slot to clear. |
Read the workspace’s media slot
Section titled “Read the workspace’s media slot”GET /v1/api/model-config/media · operation ID getMediaSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
WorkspaceMediaSettings | The model the workspace chose per media capability, and the catalog models it turned off. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Set the workspace’s media slot
Section titled “Set the workspace’s media slot”PUT /v1/api/model-config/media · operation ID setMediaSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, MediaSettings (required)
| Property | Type | Required | Notes |
|---|---|---|---|
disabled |
string[] | no | |
models |
object | no |
Responses
| Status | Body | Description |
|---|---|---|
200 |
MediaSettingsRow | The stored slot. A capability the body names is set (null clears it); one it leaves out keeps its value. |
400 |
ValidationError | ApiError | A model that does not make that capability, an unknown model, or a chosen model that is turned off (code: turned_off). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing workspace settings requires owner or admin access because these settings select the harness and default models across projects. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Clear a project’s override of one settings group
Section titled “Clear a project’s override of one settings group”DELETE /v1/api/model-config/projects/{projectId}/{slot} · operation ID clearProjectAiSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
path | yes | string | |
slot |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
DeletedAck | Cleared; the project now uses the workspace’s setting, or the default. |
400 |
ApiError | The path segment is not a settings group (project_manager or cycle), or the request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing a project’s settings is agency administration; a client collaborator is refused even with message access. |
404 |
ApiError | No such project in this workspace, or it had no override to clear. |
Set a project’s override of one settings group
Section titled “Set a project’s override of one settings group”PUT /v1/api/model-config/projects/{projectId}/{slot} · operation ID setProjectAiSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
path | yes | string | |
slot |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, UpsertSettings (required)
| Property | Type | Required | Notes |
|---|---|---|---|
coder |
hlix | claude-code | codex | opencode | goose | qwen-code | pi | null |
no | |
effort |
low | medium | high | xhigh | max | null |
no | |
fast |
boolean | null | no | |
funding |
object | null | no | |
maxParallelCycles |
integer | null | no | |
model |
string | null | no |
Responses
| Status | Body | Description |
|---|---|---|
200 |
CoreSettingsRow | The stored row. Omitted fields keep their value and null clears one; a cleared field inherits from the workspace. |
400 |
ValidationError | ApiError | The path segment is not a settings group (project_manager or cycle), the JSON body failed validation, the projectManager group was given a cycle-only field, the harness cannot use the selected provider, or the request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing a project’s settings is agency administration; a client collaborator is refused even with message access. |
404 |
ApiError | No such project in this workspace. |
409 |
ApiError | The settings changed while this request was being checked; read them again and retry. |
Clear a project’s override of the media slot
Section titled “Clear a project’s override of the media slot”DELETE /v1/api/model-config/projects/{projectId}/media · operation ID clearProjectMediaSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
DeletedAck | Cleared; the project follows the workspace. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing a project’s settings is agency administration; a client collaborator is refused even with message access. |
404 |
ApiError | No such project, or it had no override. |
Set a project’s override of the media slot
Section titled “Set a project’s override of the media slot”PUT /v1/api/model-config/projects/{projectId}/media · operation ID setProjectMediaSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, ProjectMediaSettings (required)
| Property | Type | Required | Notes |
|---|---|---|---|
models |
object | no |
Responses
| Status | Body | Description |
|---|---|---|
200 |
MediaSettingsRow | The stored override. A capability left unset follows the workspace. |
400 |
ValidationError | ApiError | A model that does not make that capability, or one the workspace turned off (code: turned_off). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Changing a project’s settings is agency administration; a client collaborator is refused even with message access. |
404 |
ApiError | No such project in this workspace. |
Resolve a project’s AI settings, with provenance
Section titled “Resolve a project’s AI settings, with provenance”GET /v1/api/model-config/projects/{projectId}/resolved · operation ID getResolvedProjectAiSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ResolvedSettings | What would run for this project (its override, else the workspace’s, else the default), and which setting chose each field. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | No such project in this workspace. |
Resolve the workspace’s AI settings, with provenance
Section titled “Resolve the workspace’s AI settings, with provenance”GET /v1/api/model-config/resolved · operation ID getResolvedAiSettings
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
ResolvedSettings | What the workspace resolves to, and which setting chose each field. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
If a request fails
Section titled “If a request fails”The response table for each operation lists its documented errors. Common status codes include:
400— the body failed schema validation, or the request named no active organization. AValidationErrorbody carries the failing fields; anApiErrorbody carries onlyerror.401— no valid session or API key.403— authenticated, but not a member of the named organization, or a client collaborator without the required access.404— check the resource ID and your access to the selected Workspace.409— the expected revision or state is stale, or another operation currently owns the transition.500— the operation failed server-side. Retry only where an idempotency key makes that safe.