modelconfig

Save model configs

Saves a list of model configs

post/api/model_configs/

Request body

configobject
created_atstring
exclude_from_testsboolean
image_pricesobject

map[size]price_per_image

image_quality_pricesobject

map[size]map[quality]price_per_image

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'
retry_timesinteger
rpminteger
tpminteger
type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
updated_atstring

Response

OK

{"stackTrail":"components:schemas:middleware.APIResponse:properties:data","oasType":"schema","type":"unknown"}
messagestring
successboolean

Changes