Skip to main content

List custom models

List custom models. GET /api/openapi/v1/models/custom, scope admin.v1.models.read.

  • Scope: admin.v1.models.read
  • Permission: Read Models
  • Action: read
  • Endpoint: GET/api/openapi/v1/models/custom
Use Authorization: Bearer \<API_KEY\>. The application must have subject_scope={"mode":"all"}; restricted scopes return 403. Scopes are independently granted. Do not cache responses. Model configuration covers BYOK custom models and system-model listing. Creation reuses UI test-and-save: probe first, persist nothing on failure, and save without activating on success. models/connection-tests is an independent preflight that persists neither model nor credentials. BYOK feature and management gates, endpoint restrictions and credential handling remain unchanged. Lists remain paginated. Creation requires Idempotency-Key. No update, deletion, activation or credential-rotation operation is added.

Common request headers

Apply the “Authentication and headers” section in “Configure the QwenWork console through APIs”: Authorization is required and X-Request-Id is optional. See this page for the required scope. Whether Idempotency-Key applies and is required is specified in this page’s request parameters; a tracing identifier does not replace an idempotency key.

Request parameters

NameLocationTypeRequiredDescriptionExample
pagequeryinteger · int64NoPage number, starting at 1; format="int64", minimum=1, default=1 default=1-
page_sizequeryinteger · int64NoPage size; format="int64", minimum=1, maximum=100, default=20 default=20-

Response statuses

HTTP statusTriggerResponse structureClient action
200Request succeededSee “Response” on this pageRead the response.
defaultOther authentication, authorization, validation or dependency errorsSee “General error” in “Configure the QwenWork console through APIs”Handle the status and code; verify the result and idempotency requirements before retrying writes.

Response

Content-Type: application/json
NameTypeRequiredDescriptionExample
itemsarray\<object\>Yesitems-
management_enabledbooleanYesmanagement enabled-
pageinteger · int64YesPage number, starting at 1; format="int64"-
page_sizeinteger · int64YesPage size; format="int64"-
total_pagesinteger · int64YesTotal pages; zero when no records match; format="int64"-
total_rowsinteger · int64YesTotal matching records; format="int64"-

items[]

FieldTypeRequiredDescription
api_key_configuredbooleanYesWhether an API key is configured; plaintext is never returned
created_atstring · date-timeYescreated at; format="date-time"
created_byobjectYesCreator ID
credential_configuredbooleanYesWhether credentials are configured
credential_fingerprintstringNoCredential fingerprint, not the plaintext secret
credential_versioninteger · int64Nocredential version; format="int64"
descriptionstringNoDescription text
description_i18nobjectNoDescriptions keyed by locale
display_namestringYesDisplay name
display_name_i18nobjectNoDisplay names by locale
endpoint_urlstringYesModel service endpoint
idstring · uuidYesid; format="uuid"
is_reasoningbooleanYesWhether reasoning is supported
is_vlbooleanYesWhether visual input is supported
last_test_codestringNoLatest connection-test result code
last_test_resultstringNolast test result; enum=["success", "failed"] Values: "failed", "success"
last_tested_atstring · date-timeNolast tested at; format="date-time"
lifecyclestringYeslifecycle; enum=["draft", "test", "active", "disabled"] Values: "active", "disabled", "draft", "test"
max_context_window_tokensinteger · int64Yesmax context window tokens; format="int64", minimum=1
model_keystringYesModel key
pass_third_party_user_idbooleanYesWhether to forward third-party user IDs to the model provider
protocol_profilestringYesprotocol profile; enum=["openai_chat_completions_v1"] Values: "openai_chat_completions_v1"
provider_adapterstringYesprovider adapter; enum=["openai_compatible"] Values: "openai_compatible"
row_versioninteger · int64Yesrow version; format="int64"
target_versioninteger · int64Yestarget version; format="int64"
updated_atstring · date-timeYesupdated at; format="date-time"
updated_byobjectYesUpdater ID
upstream_modelstringYesUpstream model name

items[].created_by

FieldTypeRequiredDescription
emailstring · emailNoemail; format="email"
namestringNoName
user_idstring · uuidYesuser id; format="uuid"

items[].updated_by

FieldTypeRequiredDescription
emailstring · emailNoemail; format="email"
namestringNoName
user_idstring · uuidYesuser id; format="uuid"

Errors and retries

Existing UI error codes and validation are preserved. 401/403 indicate authentication or authorization failure; 409 requires rereading before retry; 413 indicates an oversized request; 400/422 indicate invalid input; 503 indicates an unavailable dependency. The response and machine contract are authoritative. Retry idempotent creates with the same Idempotency-Key and payload.