Copy {
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"data"
],
"properties" : {
"data" : {
"type" : "object" ,
"properties" : {
"items" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"required" : [
"model_name" ,
"official_price"
],
"properties" : {
"generation_capabilities" : {
"type" : "object" ,
"description" : "Version 1 execution constraints projected from the uniquely resolved enabled plugin; absent when unknown or ambiguous" ,
"required" : [
"version"
],
"properties" : {
"version" : {
"const" : 1
},
"visual" : {
"type" : "object"
},
"audio" : {
"type" : "object"
}
}
},
"model_name" : {
"type" : "string" ,
"description" : "实际推理调用 ID(用于请求体 model、详情查询及 Key 模型限制;切勿用 display_name 代替)"
},
"display_name" : {
"type" : "string" ,
"description" : "管理员可修改的展示名称(未设置时回退为 model_name,仅用于页面展示)"
},
"official_price" : {
"oneOf" : [
{
"type" : "object" ,
"additionalProperties" : false,
"required" : [
"currency" ,
"unit" ,
"rates"
],
"description" : "Administrator-owned display-only USD reference price. It never changes billing, routing or wallets." ,
"properties" : {
"currency" : {
"type" : "string" ,
"enum" : [
"USD"
]
},
"unit" : {
"type" : "string" ,
"enum" : [
"per_million_tokens"
]
},
"rates" : {
"type" : "object" ,
"additionalProperties" : false,
"minProperties" : 1 ,
"properties" : {
"input" : {
"type" : "string" ,
"pattern" : "^(0|[1-9]\\d{0,5})(\\.\\d{1,8})?$"
},
"output" : {
"type" : "string" ,
"pattern" : "^(0|[1-9]\\d{0,5})(\\.\\d{1,8})?$"
},
"cache_read" : {
"type" : "string" ,
"pattern" : "^(0|[1-9]\\d{0,5})(\\.\\d{1,8})?$"
},
"cache_write" : {
"type" : "string" ,
"pattern" : "^(0|[1-9]\\d{0,5})(\\.\\d{1,8})?$"
}
}
}
}
},
{
"type" : "object" ,
"additionalProperties" : false,
"required" : [
"currency" ,
"unit" ,
"rates"
],
"description" : "Administrator-owned display-only USD reference price. It never changes billing, routing or wallets." ,
"properties" : {
"currency" : {
"type" : "string" ,
"enum" : [
"USD"
]
},
"unit" : {
"type" : "string" ,
"enum" : [
"per_image" ,
"per_second" ,
"per_request"
]
},
"rates" : {
"type" : "object" ,
"additionalProperties" : false,
"required" : [
"price"
],
"properties" : {
"price" : {
"type" : "string" ,
"pattern" : "^(0|[1-9]\\d{0,5})(\\.\\d{1,8})?$"
}
}
}
}
},
{
"type" : "null"
}
],
"description" : "管理员维护的美元展示基准价(未配置为 null,仅用于同规格展示对比,不参与实际计费结算)"
},
"description" : {
"type" : "string" ,
"description" : "模型说明"
},
"tags" : {
"type" : "string" ,
"description" : "逗号分隔标签字符串"
},
"enable_groups" : {
"type" : "array" ,
"items" : {
"type" : "string"
},
"description" : "已启用的用户分组列表"
},
"supported_endpoint_types" : {
"type" : "array" ,
"items" : {
"type" : "string"
},
"description" : "支持的协议端点类型(如 openai、openai-response、anthropic、image-generation、openai-video)"
},
"pricing" : {
"type" : "object" ,
"description" : "管理员生效售价结构(mode 为 tiered_expr、per_request 或 ratio;含 billing_expr、billing_usage_schema、billing_plugin_variants 等)" ,
"properties" : {
"mode" : {
"type" : "string" ,
"enum" : [
"tiered_expr" ,
"per_request" ,
"ratio"
]
},
"billing_expr" : {
"type" : "string"
},
"billing_usage_schema" : {
"type" : "object" ,
"additionalProperties" : true
},
"billing_usage_examples" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"additionalProperties" : true
}
},
"billing_plugin_variants" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"additionalProperties" : true
}
},
"model_price" : {
"type" : "number"
},
"model_ratio" : {
"type" : "number"
},
"completion_ratio" : {
"type" : "number"
}
},
"additionalProperties" : true
}
},
"additionalProperties" : true
}
}
}
}
}
}
}
}
}