Skip to main content
PUT
Create or change the account's custom AI model of one model type

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

accountId
string
required

Account ID

modelUse
enum<string>
required
Available options:
conversationModel,
summaryModel,
imageAnalysisModel,
audioAnalysisModel,
ttsModel,
moderationModel,
imageGenerationModel,
videoGenerationModel,
videoAnalysisModel,
kagAnalysisModel,
kagAnalysisFallbackModel

Body

application/json
name
string
description
string
client_library
string

One of the Client Library Types the GET lists for this model type.

api_url
string

Required, except for anthropic_cli, google_cli and bedrock_cli. For anthropic_cli, the base address without /v1; for google_cli, without an API version (/v1, /v1beta, /v1alpha). Never sent for bedrock_cli.

api_key
string

Write-only. Leave it empty to keep the stored key. Never sent for bedrock_cli.

features
object
deprecated

Not read. May be left out.

input_media
object
deprecated

Not read. May be left out.

output_media
object
deprecated

Not read. May be left out.

max_input_tokens
integer

Used by the Conversation, Document Summarization and Image Analysis models only.

max_output_tokens
integer

Used by the Conversation, Document Summarization, Image Analysis, Video Analysis, Knowledge Generation and Knowledge Generation Fallback models only.

reasoning_effort
string | null
extended_context
boolean
picture_url
string
status
enum<string>
Available options:
active,
inactive

Response

The model as saved

model
object