@@ -358,23 +358,15 @@ def get_uf_square_model_detail(
358358
359359 **Response Model**
360360
361- **InferenceRegionInfo**
362- - **ModelId** (str) - 地域模型ID (例如: deepseek-v4-flash-sg)
363- - **RegionCode** (str) - 地域代码: sg(新加坡)/us(美国)/hk(香港)
364- - **RegionName** (str) - 地域名称: 新加坡/美国/香港
365- - **RegionNameEn** (str) - 地域名称(英文): Singapore/United States/Hong Kong
366- - **SquareModelId** (str) - 广场模型ID (umodel-xxx)
367- - **Status** (str) - 状态: published(已发布)/unpublished(未发布)
368-
369-
370- **ModelTypeMap**
371- - **ImageToImage** (bool) - 图生图模型
372- - **ImageToVideo** (bool) - 图生视频模型
373- - **Inference** (bool) - 微调模型
374- - **Sensitive** (bool) - 海外模型
375- - **TextGeneration** (bool) - 文生文模型,true 表示是文生文模型,下同
376- - **TextToImage** (bool) - 文生图模型
377- - **TextToVideo** (bool) - 文生视频模型
361+ **ModelCapabilities**
362+ - **BatchInference** (bool) - 是否支持批量推理
363+ - **ContextCaching** (bool) - 是否支持上下文缓存
364+ - **Experience** (bool) - 是否支持体验
365+ - **FunctionCall** (bool) - 是否支持函数调用
366+ - **KnowledgeBase** (bool) - 是否支持知识库
367+ - **Mcp** (bool) - 是否支持MCP
368+ - **StructuredOutput** (bool) - 是否支持结构化输出
369+ - **WebSearch** (bool) - 是否支持联网搜索
378370
379371
380372 **Pricing**
@@ -387,6 +379,16 @@ def get_uf_square_model_detail(
387379 - **Video** (str) - 生视频定价
388380
389381
382+ **ModelTypeMap**
383+ - **ImageToImage** (bool) - 图生图模型
384+ - **ImageToVideo** (bool) - 图生视频模型
385+ - **Inference** (bool) - 微调模型
386+ - **Sensitive** (bool) - 海外模型
387+ - **TextGeneration** (bool) - 文生文模型,true 表示是文生文模型,下同
388+ - **TextToImage** (bool) - 文生图模型
389+ - **TextToVideo** (bool) - 文生视频模型
390+
391+
390392 **PriceRate**
391393 - **ChargeItem** (str) - 收费项:input/output/thinking/tool...
392394 - **ChargeItemDescription** (str) - 收费项描述
@@ -397,22 +399,13 @@ def get_uf_square_model_detail(
397399 - **UnitEn** (str) - 计价单位英文
398400
399401
400- **ApiProtocols**
401- - **Anthropic** (bool) - 是否支持Anthropic协议
402- - **ChatCompletions** (bool) - 是否支持chat协议
403- - **Gemini** (bool) - 是否支持gemini协议
404- - **Responses** (bool) - 是否支持responses协议
405-
406-
407- **ModelCapabilities**
408- - **BatchInference** (bool) - 是否支持批量推理
409- - **ContextCaching** (bool) - 是否支持上下文缓存
410- - **Experience** (bool) - 是否支持体验
411- - **FunctionCall** (bool) - 是否支持函数调用
412- - **KnowledgeBase** (bool) - 是否支持知识库
413- - **Mcp** (bool) - 是否支持MCP
414- - **StructuredOutput** (bool) - 是否支持结构化输出
415- - **WebSearch** (bool) - 是否支持联网搜索
402+ **InferenceRegionInfo**
403+ - **ModelId** (str) - 地域模型ID (例如: deepseek-v4-flash-sg)
404+ - **RegionCode** (str) - 地域代码: sg(新加坡)/us(美国)/hk(香港)
405+ - **RegionName** (str) - 地域名称: 新加坡/美国/香港
406+ - **RegionNameEn** (str) - 地域名称(英文): Singapore/United States/Hong Kong
407+ - **SquareModelId** (str) - 广场模型ID (umodel-xxx)
408+ - **Status** (str) - 状态: published(已发布)/unpublished(未发布)
416409
417410
418411 **PriceTier**
@@ -422,6 +415,13 @@ def get_uf_square_model_detail(
422415 - **Rates** (list) - 见 **PriceRate** 模型定义
423416
424417
418+ **ApiProtocols**
419+ - **Anthropic** (bool) - 是否支持Anthropic协议
420+ - **ChatCompletions** (bool) - 是否支持chat协议
421+ - **Gemini** (bool) - 是否支持gemini协议
422+ - **Responses** (bool) - 是否支持responses协议
423+
424+
425425 **SquareModel**
426426 - **ApiProtocols** (dict) - 见 **ApiProtocols** 模型定义
427427 - **BatchName** (str) - 关联的 batch 模型名称
@@ -492,7 +492,7 @@ def get_uf_square_model_prices(
492492 - **ChargeItemDescription** (str) - 收费项描述
493493 - **ChargeItemDescriptionEn** (str) - 收费项描述英文描述
494494 - **Currency** (str) - 货币单位
495- - **Price** (str ) - 价格
495+ - **Price** (int ) - 价格
496496 - **Unit** (str) - 计价单位
497497 - **UnitEn** (str) - 计价单位英文
498498
@@ -842,16 +842,6 @@ def list_uf_square_model(
842842
843843 **Response Model**
844844
845- **Pricing**
846- - **Completion** (float) - 输出定价
847- - **Currency** (str) - 币种
848- - **Image** (float) - 生图定价
849- - **Prompt** (float) - 提示词定价
850- - **Unit** (str) - 单位(中文),如“次” “百万”
851- - **UnitEn** (str) - 单位(English),如“Time” “Million”
852- - **Video** (str) - 生视频定价
853-
854-
855845 **PriceRate**
856846 - **ChargeItem** (str) - 收费项:input/output/thinking/tool...
857847 - **ChargeItemDescription** (str) - 收费项描述
@@ -862,6 +852,16 @@ def list_uf_square_model(
862852 - **UnitEn** (str) - 计价单位英文
863853
864854
855+ **Pricing**
856+ - **Completion** (float) - 输出定价
857+ - **Currency** (str) - 币种
858+ - **Image** (float) - 生图定价
859+ - **Prompt** (float) - 提示词定价
860+ - **Unit** (str) - 单位(中文),如“次” “百万”
861+ - **UnitEn** (str) - 单位(English),如“Time” “Million”
862+ - **Video** (str) - 生视频定价
863+
864+
865865 **PriceTier**
866866 - **Condition** (str) - 档位/条件(例如 "32k"、"128k")
867867 - **Description** (str) - 档位描述(例如 "标准上下文 32k")
0 commit comments