modelconfig

Save model configs

Changed on

Saves a list of model configs

post/api/model_configs/

Request

  • The document declares no server URL.
  • Auth
    API key in header Authorization

Request body

allowed_resolutionsstring[]
configobject
created_atstring
disable_resolution_fuzzy_matchboolean
exclude_from_testsboolean
force_save_detailboolean
max_image_generation_countinteger
max_video_generation_countinteger
max_video_generation_secondsinteger
modelstring
owner'openai' | 'alibaba' | 'tencent' | 'xunfei' | 'deepseek' | 'moonshot' | 'minimax' | 'baidu' | 'google' | 'baai' | 'funaudiollm' | 'doubao' | 'fishaudio' | 'chatglm' | 'stabilityai' | 'netease' | 'ai360' | 'anthropic' | 'meta' | 'baichuan' | 'mistral' | 'openchat' | 'microsoft' | 'defog' | 'nexusflow' | 'cohere' | 'huggingface' | 'lingyiwanwu' | 'stepfun' | 'xai' | 'doc2x' | 'jina' | 'antgroup'
pluginobject
request_body_storage_max_sizeinteger
response_body_storage_max_sizeinteger
retry_budgetinteger

Seconds; nil inherits the global budget, zero disables it.

retry_timesinteger
rpminteger
summary_claude_long_contextboolean
summary_service_tierboolean
tpminteger
type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40
updated_atstring

Response

OK

dataunknown
messagestring
successboolean

Changes