tccli 3.0.1323.1__py2.py3-none-any.whl → 3.0.1324.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/batch/v20170312/api.json +16 -16
- tccli/services/cloudaudit/v20190319/api.json +4 -4
- tccli/services/csip/v20221121/api.json +1 -1
- tccli/services/cvm/v20170312/api.json +35 -35
- tccli/services/cvm/v20170312/examples.json +6 -6
- tccli/services/cynosdb/cynosdb_client.py +334 -16
- tccli/services/cynosdb/v20190107/api.json +558 -0
- tccli/services/cynosdb/v20190107/examples.json +48 -0
- tccli/services/emr/v20190103/api.json +4 -4
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/monitor/v20180724/api.json +5 -2
- tccli/services/monitor/v20180724/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +201 -2
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/ses/ses_client.py +170 -11
- tccli/services/ses/v20201002/api.json +138 -0
- tccli/services/ses/v20201002/examples.json +24 -0
- tccli/services/tcss/v20201101/api.json +3 -3
- tccli/services/tcss/v20201101/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/trtc/v20190722/examples.json +6 -0
- {tccli-3.0.1323.1.dist-info → tccli-3.0.1324.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1323.1.dist-info → tccli-3.0.1324.1.dist-info}/RECORD +30 -30
- {tccli-3.0.1323.1.dist-info → tccli-3.0.1324.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1323.1.dist-info → tccli-3.0.1324.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1323.1.dist-info → tccli-3.0.1324.1.dist-info}/license_files/LICENSE +0 -0
@@ -330,6 +330,14 @@
|
|
330
330
|
"title": "查询备份配置信息"
|
331
331
|
}
|
332
332
|
],
|
333
|
+
"DescribeBackupDownloadRestriction": [
|
334
|
+
{
|
335
|
+
"document": "查询备份下载限制",
|
336
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupDownloadRestriction\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-2p3wjmzt\"\n ]\n}",
|
337
|
+
"output": "{\n \"Response\": {\n \"BackupLimitClusterRestrictions\": [\n {\n \"BackupLimitRestriction\": {\n \"IpComparisonSymbol\": \"In\",\n \"LimitIps\": [],\n \"LimitType\": \"Customize\",\n \"LimitVpcs\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"VpcList\": []\n }\n ],\n \"VpcComparisonSymbol\": \"In\"\n },\n \"ClusterId\": \"cynosdbmysql-2p3wjmzt\"\n }\n ],\n \"RequestId\": \"36eca298-c9b7-4e13-8f33-3c07926ee0d8\"\n }\n}",
|
338
|
+
"title": "查询备份下载限制"
|
339
|
+
}
|
340
|
+
],
|
333
341
|
"DescribeBackupDownloadUrl": [
|
334
342
|
{
|
335
343
|
"document": "",
|
@@ -338,6 +346,14 @@
|
|
338
346
|
"title": "查询集群备份文件下载地址"
|
339
347
|
}
|
340
348
|
],
|
349
|
+
"DescribeBackupDownloadUserRestriction": [
|
350
|
+
{
|
351
|
+
"document": "当前地域用户级别设置的默认备份下载来源限制",
|
352
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupDownloadUserRestriction\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Offset\": 0,\n \"OnlyUserRestriction\": false\n}",
|
353
|
+
"output": "{\n \"Response\": {\n \"BackupLimitClusterRestrictions\": [\n {\n \"BackupLimitRestriction\": {\n \"IpComparisonSymbol\": \"In\",\n \"LimitIps\": [],\n \"LimitType\": \"Customize\",\n \"LimitVpcs\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"VpcList\": []\n }\n ],\n \"VpcComparisonSymbol\": \"In\"\n },\n \"ClusterId\": \"cynosdbmysql-2p3wjmzt\"\n }\n ],\n \"RequestId\": \"36eca298-c9b7-4e13-8f33-3c07926ee0d8\"\n }\n}",
|
354
|
+
"title": "当前地域用户级别设置的默认备份下载来源限制"
|
355
|
+
}
|
356
|
+
],
|
341
357
|
"DescribeBackupList": [
|
342
358
|
{
|
343
359
|
"document": "查询备份文件列表",
|
@@ -458,6 +474,14 @@
|
|
458
474
|
"title": "查看集群密码复杂度详情"
|
459
475
|
}
|
460
476
|
],
|
477
|
+
"DescribeClusterReadOnly": [
|
478
|
+
{
|
479
|
+
"document": "",
|
480
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterReadOnly\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-jl17y89v\",\n \"cynosdbmysql-2d9pq38h\"\n ]\n}",
|
481
|
+
"output": "{\n \"Response\": {\n \"ClusterReadOnlyValues\": [\n {\n \"ClusterId\": \"cynosdbmysql-jl17y89v\",\n \"ReadOnlyValue\": \"ON\"\n },\n {\n \"ClusterId\": \"cynosdbmysql-2d9pq38h\",\n \"ReadOnlyValue\": \"ON\"\n }\n ],\n \"RequestId\": \"48b7cd8a-f6dd-4e47-a78a-ssfff\"\n }\n}",
|
482
|
+
"title": "查询集群只读开关"
|
483
|
+
}
|
484
|
+
],
|
461
485
|
"DescribeClusterTransparentEncryptInfo": [
|
462
486
|
{
|
463
487
|
"document": "",
|
@@ -856,6 +880,22 @@
|
|
856
880
|
"title": "修改集群备份配置"
|
857
881
|
}
|
858
882
|
],
|
883
|
+
"ModifyBackupDownloadRestriction": [
|
884
|
+
{
|
885
|
+
"document": "",
|
886
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupDownloadRestriction\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-2p3wjmzt\"\n ],\n \"LimitType\": \"NoLimit\",\n \"VpcComparisonSymbol\": \"\",\n \"IpComparisonSymbol\": \"\",\n \"LimitVpcs\": [],\n \"LimitIps\": []\n}",
|
887
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1530aee8-5130-45ce-9f4e-dfb50a55e4d4\"\n }\n}",
|
888
|
+
"title": "修改集群下载限制"
|
889
|
+
}
|
890
|
+
],
|
891
|
+
"ModifyBackupDownloadUserRestriction": [
|
892
|
+
{
|
893
|
+
"document": "",
|
894
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupDownloadUserRestriction\n<公共请求参数>\n\n{\n \"LimitType\": \"NoLimit\",\n \"VpcComparisonSymbol\": \"\",\n \"IpComparisonSymbol\": \"\",\n \"LimitVpcs\": [],\n \"LimitIps\": []\n}",
|
895
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1530aee8-5130-45ce-9f4e-dfb50a55e4d4\"\n }\n}",
|
896
|
+
"title": "修改用户当前地域的备份文件限制"
|
897
|
+
}
|
898
|
+
],
|
859
899
|
"ModifyBackupName": [
|
860
900
|
{
|
861
901
|
"document": "",
|
@@ -912,6 +952,14 @@
|
|
912
952
|
"title": "用于修改/开启集群密码复杂度"
|
913
953
|
}
|
914
954
|
],
|
955
|
+
"ModifyClusterReadOnly": [
|
956
|
+
{
|
957
|
+
"document": "",
|
958
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterReadOnly\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-jl17y89v\",\n \"cynosdbmysql-2d9pq38h\"\n ],\n \"ReadOnlyOperation\": \"ON\",\n \"IsInMaintainPeriod\": \"no\"\n}",
|
959
|
+
"output": "{\n \"Response\": {\n \"ClusterTaskIds\": [\n {\n \"ClusterId\": \"cynosdbmysql-jl17y89v\",\n \"TaskId\": \"176551\"\n },\n {\n \"ClusterId\": \"cynosdbmysql-2d9pq38h\",\n \"TaskId\": \"176552\"\n }\n ],\n \"RequestId\": \"48b7cd8a-f6dd-4e47-a78a-ssfff\"\n }\n}",
|
960
|
+
"title": "修改集群只读开关"
|
961
|
+
}
|
962
|
+
],
|
915
963
|
"ModifyClusterSlaveZone": [
|
916
964
|
{
|
917
965
|
"document": "",
|
@@ -442,11 +442,11 @@
|
|
442
442
|
"status": "online"
|
443
443
|
},
|
444
444
|
"ModifyResourceScheduleConfig": {
|
445
|
-
"document": "修改YARN资源调度的资源配置。已废弃,请使用`ModifyYarnQueueV2`来修改队列配置",
|
445
|
+
"document": "已废弃,请使用ModifyYarnQueueV2来修改队列配置,近一年无相关日志\n\n修改YARN资源调度的资源配置。已废弃,请使用`ModifyYarnQueueV2`来修改队列配置",
|
446
446
|
"input": "ModifyResourceScheduleConfigRequest",
|
447
447
|
"name": "修改YARN资源调度的资源配置(旧)",
|
448
448
|
"output": "ModifyResourceScheduleConfigResponse",
|
449
|
-
"status": "
|
449
|
+
"status": "deprecated"
|
450
450
|
},
|
451
451
|
"ModifyResourceScheduler": {
|
452
452
|
"document": "修改了yarn的资源调度器,点击部署生效。",
|
@@ -498,11 +498,11 @@
|
|
498
498
|
"status": "online"
|
499
499
|
},
|
500
500
|
"ModifyYarnDeploy": {
|
501
|
-
"document": "部署生效。已废弃,请使用`DeployYarnConf`接口进行部署生效",
|
501
|
+
"document": "该接口已废弃,请使用DeployYarnConf完成部署生效\n\n部署生效。已废弃,请使用`DeployYarnConf`接口进行部署生效",
|
502
502
|
"input": "ModifyYarnDeployRequest",
|
503
503
|
"name": "部署生效(旧)",
|
504
504
|
"output": "ModifyYarnDeployResponse",
|
505
|
-
"status": "
|
505
|
+
"status": "deprecated"
|
506
506
|
},
|
507
507
|
"ModifyYarnQueueV2": {
|
508
508
|
"document": "修改资源调度中队列信息",
|
@@ -6261,7 +6261,7 @@
|
|
6261
6261
|
},
|
6262
6262
|
{
|
6263
6263
|
"disabled": false,
|
6264
|
-
"document": "应用模板的执行状态。\n\n- SUCCESS:成功\n- FAILED:失败",
|
6264
|
+
"document": "应用模板的执行状态。\n\n- SUCCESS:成功\n- RUNNING:运行中\n- FAILED:失败",
|
6265
6265
|
"example": "SUCCESS",
|
6266
6266
|
"member": "string",
|
6267
6267
|
"name": "ApplyState",
|
@@ -767,7 +767,7 @@
|
|
767
767
|
"SaveDoc": [
|
768
768
|
{
|
769
769
|
"document": "",
|
770
|
-
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SaveDoc\n<公共请求参数>\n\n{\n \"BotBizId\": \"1727231073371148288\",\n \"FileName\": \"测试.docx\",\n \"FileType\": \"docx\",\n \"CosUrl\": \"/corp/23432432/233432/doc/zeSOHIBjwcWoEmlMMXOp-1796022574489010176.docx\",\n \"ETag\": \"\\\"58e88ad7665f11c4f66eba0eada383a5\\\"\",\n \"CosHash\": \"xxxxxxxxx\",\n \"Size\": \"643000\",\n \"Source\":
|
770
|
+
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SaveDoc\n<公共请求参数>\n\n{\n \"BotBizId\": \"1727231073371148288\",\n \"FileName\": \"测试.docx\",\n \"FileType\": \"docx\",\n \"CosUrl\": \"/corp/23432432/233432/doc/zeSOHIBjwcWoEmlMMXOp-1796022574489010176.docx\",\n \"ETag\": \"\\\"58e88ad7665f11c4f66eba0eada383a5\\\"\",\n \"CosHash\": \"xxxxxxxxx\",\n \"Size\": \"643000\",\n \"Source\": 0,\n \"WebUrl\": \"\",\n \"AttrRange\": 1,\n \"AttrLabels\": [],\n \"ReferUrlType\": 0\n}",
|
771
771
|
"output": "{\n \"Response\": {\n \"DocBizId\": \"1694921462777761792\",\n \"ErrorMsg\": \"\",\n \"ErrorLink\": \"\",\n \"ErrorLinkText\": \"\",\n \"RequestId\": \"e3338103-3165-49c0-b218-245be865cca5\"\n }\n}",
|
772
772
|
"title": "知识库文档录入"
|
773
773
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"ChatCompletions": {
|
4
|
-
"document": "### 接口功能\n\n调用接口,发起一次对话请求。默认该接口下的单账号QPM上限为15000 ,TPM上限为1200000\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云智能体开发平台](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持128K上下文长度,最大输出16k(不含思维链)。\n - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输出16k。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-Prover-V2(model 参数值为**deepseek-prover-v2**)\n - DeepSeek-Prover-V2 为671B 参数 MoE 模型,在数学定理证明和复杂计算任务中表现出色。\n - 支持64K上下文长度,最大输出16k。\n\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。\n\n - DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-V3 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-V3-0324 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-Prover-V2 模型 | 暂不计费\n\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。",
|
4
|
+
"document": "### 接口功能\n\n调用接口,发起一次对话请求。默认该接口下的单账号QPM上限为15000 ,TPM上限为1200000\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云智能体开发平台](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持128K上下文长度,最大输出16k(不含思维链)。\n - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输出16k。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-R1-0528(model 参数值为**deepseek-r1-0528**)\n - DeepSeek-R1-0528为671B 模型,架构优化与训练策略升级后,相比上一版本在代码生成、长文本处理和复杂推理领域提升明显。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-Prover-V2(model 参数值为**deepseek-prover-v2**)\n - DeepSeek-Prover-V2 为671B 参数 MoE 模型,在数学定理证明和复杂计算任务中表现出色。\n - 支持64K上下文长度,最大输出16k。\n\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。\n\n - DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-R1-0528 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-V3 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-V3-0324 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-Prover-V2 模型 | 暂不计费\n\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。",
|
5
5
|
"input": "ChatCompletionsRequest",
|
6
6
|
"name": "DeepSeek API 接口",
|
7
7
|
"output": "ChatCompletionsResponse",
|
@@ -2315,9 +2315,10 @@
|
|
2315
2315
|
{
|
2316
2316
|
"disabled": false,
|
2317
2317
|
"document": "告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.\n注意:此字段可能返回 null,表示取不到有效值。",
|
2318
|
-
"example": "
|
2318
|
+
"example": "0",
|
2319
2319
|
"member": "int64",
|
2320
2320
|
"name": "IsUnionRule",
|
2321
|
+
"output_required": true,
|
2321
2322
|
"required": true,
|
2322
2323
|
"type": "int",
|
2323
2324
|
"value_allowed_null": true
|
@@ -2325,9 +2326,10 @@
|
|
2325
2326
|
{
|
2326
2327
|
"disabled": false,
|
2327
2328
|
"document": "告警触发条件列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
2328
|
-
"example": "
|
2329
|
+
"example": "[{\"MetricName\": \"CpuUsage\", \"Period\": 60, \"Operator\": \"gt\", \"Value\": 60}]",
|
2329
2330
|
"member": "AlarmPolicyRule",
|
2330
2331
|
"name": "Rules",
|
2332
|
+
"output_required": true,
|
2331
2333
|
"required": true,
|
2332
2334
|
"type": "list",
|
2333
2335
|
"value_allowed_null": true
|
@@ -2338,6 +2340,7 @@
|
|
2338
2340
|
"example": "(1 OR 2) AND (3 OR 4)",
|
2339
2341
|
"member": "string",
|
2340
2342
|
"name": "ComplexExpression",
|
2343
|
+
"output_required": true,
|
2341
2344
|
"required": false,
|
2342
2345
|
"type": "string",
|
2343
2346
|
"value_allowed_null": true
|
@@ -577,7 +577,7 @@
|
|
577
577
|
},
|
578
578
|
{
|
579
579
|
"document": "按照实例过滤策略,需要填入监控类型、策略类型、实例的维度信息。我们以搜索两个云服务器为例,假设他们的实例 ID 分别为 `ins-qr8d555g`, `ins-qr8d555h`。\n\nMonitorTypes 指定为 `MT_QCE`\n\nNamespaces 指定为 `cvm_device`\n\nDimensions 的 JSON 字符串为\n\n```\n[\n {\n \"Dimensions\": {\n \"unInstanceId\": \"ins-qr8d555g\"\n }\n },\n {\n \"Dimensions\": {\n \"unInstanceId\": \"ins-qr8d555h\"\n }\n }\n]\n```\n\n不同云产品参数示例详见 [维度信息Dimensions列表](https://cloud.tencent.com/document/product/248/50397)",
|
580
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAlarmPolicies\n<公共请求参数>\n\n{\n \"Module\": \"monitor\",\n \"PageSize\": 10,\n \"PageNumber\": 1,\n \"MonitorTypes\": [\n \"MT_QCE\"\n ],\n \"Namespaces\": [\n \"cvm_device\"\n ],\n \"Dimensions\": \"[{\\\"
|
580
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAlarmPolicies\n<公共请求参数>\n\n{\n \"Module\": \"monitor\",\n \"PageSize\": 10,\n \"PageNumber\": 1,\n \"MonitorTypes\": [\n \"MT_QCE\"\n ],\n \"Namespaces\": [\n \"cvm_device\"\n ],\n \"Dimensions\": \"[[{\\\"name\\\":\\\"unInstanceId\\\",\\\"value\\\":\\\"ins-qr8d555g\\\"}],[{\\\"name\\\":\\\"unInstanceId\\\",\\\"value\\\":\\\"ins-qr8d555g\\\"}]]\"\n}",
|
581
581
|
"output": "{\n \"Response\": {\n \"Policies\": [\n {\n \"AdvancedMetricNumber\": 0,\n \"CanSetDefault\": 1,\n \"Condition\": {\n \"ComplexExpression\": \"\",\n \"IsUnionRule\": 0,\n \"Rules\": [\n {\n \"ContinuePeriod\": 1,\n \"Description\": \"CPU利用率\",\n \"Filter\": {\n \"Dimensions\": \"\",\n \"Type\": \"\"\n },\n \"HierarchicalValue\": {\n \"Remind\": \"\",\n \"Serious\": \"\",\n \"Warn\": \"\"\n },\n \"IsAdvanced\": 0,\n \"IsLatenessMetric\": 0,\n \"IsOpen\": 1,\n \"IsPowerNotice\": 0,\n \"MetricName\": \"CpuUsage\",\n \"NoticeFrequency\": 300,\n \"Operator\": \"gt\",\n \"Period\": 60,\n \"ProductId\": \"\",\n \"RuleType\": \"STATIC\",\n \"Unit\": \"%\",\n \"Value\": \"1\",\n \"ValueMax\": 100,\n \"ValueMin\": 0\n },\n {\n \"ContinuePeriod\": 1,\n \"Description\": \"外网出带宽使用率\",\n \"Filter\": {\n \"Dimensions\": \"\",\n \"Type\": \"\"\n },\n \"HierarchicalValue\": {\n \"Remind\": \"\",\n \"Serious\": \"\",\n \"Warn\": \"\"\n },\n \"IsAdvanced\": 0,\n \"IsLatenessMetric\": 0,\n \"IsOpen\": 1,\n \"IsPowerNotice\": 0,\n \"MetricName\": \"Outratio\",\n \"NoticeFrequency\": 300,\n \"Operator\": \"gt\",\n \"Period\": 60,\n \"ProductId\": \"\",\n \"RuleType\": \"STATIC\",\n \"Unit\": \"%\",\n \"Value\": \"1\",\n \"ValueMax\": 100,\n \"ValueMin\": 0\n },\n {\n \"ContinuePeriod\": 1,\n \"Description\": \"内存利用率\",\n \"Filter\": {\n \"Dimensions\": \"\",\n \"Type\": \"\"\n },\n \"HierarchicalValue\": {\n \"Remind\": \"\",\n \"Serious\": \"\",\n \"Warn\": \"\"\n },\n \"IsAdvanced\": 0,\n \"IsLatenessMetric\": 0,\n \"IsOpen\": 1,\n \"IsPowerNotice\": 0,\n \"MetricName\": \"MemUsage\",\n \"NoticeFrequency\": 300,\n \"Operator\": \"gt\",\n \"Period\": 60,\n \"ProductId\": \"\",\n \"RuleType\": \"STATIC\",\n \"Unit\": \"%\",\n \"Value\": \"1\",\n \"ValueMax\": 100,\n \"ValueMin\": 0\n },\n {\n \"ContinuePeriod\": 1,\n \"Description\": \"磁盘利用率\",\n \"Filter\": {\n \"Dimensions\": \"\",\n \"Type\": \"\"\n },\n \"HierarchicalValue\": {\n \"Remind\": \"\",\n \"Serious\": \"\",\n \"Warn\": \"\"\n },\n \"IsAdvanced\": 0,\n \"IsLatenessMetric\": 0,\n \"IsOpen\": 1,\n \"IsPowerNotice\": 0,\n \"MetricName\": \"CvmDiskUsage\",\n \"NoticeFrequency\": 300,\n \"Operator\": \"gt\",\n \"Period\": 60,\n \"ProductId\": \"\",\n \"RuleType\": \"STATIC\",\n \"Unit\": \"%\",\n \"Value\": \"1\",\n \"ValueMax\": 100,\n \"ValueMin\": 0\n },\n {\n \"ContinuePeriod\": 1,\n \"Description\": \"基础CPU利用率\",\n \"Filter\": {\n \"Dimensions\": \"\",\n \"Type\": \"\"\n },\n \"HierarchicalValue\": {\n \"Remind\": \"\",\n \"Serious\": \"\",\n \"Warn\": \"\"\n },\n \"IsAdvanced\": 0,\n \"IsLatenessMetric\": 0,\n \"IsOpen\": 1,\n \"IsPowerNotice\": 0,\n \"MetricName\": \"BaseCpuUsage\",\n \"NoticeFrequency\": 300,\n \"Operator\": \"gt\",\n \"Period\": 60,\n \"ProductId\": \"\",\n \"RuleType\": \"STATIC\",\n \"Unit\": \"%\",\n \"Value\": \"0\",\n \"ValueMax\": 100,\n \"ValueMin\": 0\n }\n ]\n },\n \"ConditionTemplateId\": \"\",\n \"ConditionsTemp\": {\n \"Condition\": null,\n \"EventCondition\": null,\n \"TemplateName\": \"\"\n },\n \"Enable\": 0,\n \"EventCondition\": {\n \"Rules\": [\n {\n \"ContinuePeriod\": 0,\n \"Description\": \"机器重启\",\n \"Filter\": null,\n \"HierarchicalValue\": null,\n \"IsAdvanced\": 0,\n \"IsLatenessMetric\": 0,\n \"IsOpen\": 0,\n \"IsPowerNotice\": 0,\n \"MetricName\": \"cvm:ErrorEvent:GuestReboot\",\n \"NoticeFrequency\": 0,\n \"Operator\": \"\",\n \"Period\": 0,\n \"ProductId\": \"\",\n \"RuleType\": \"\",\n \"Unit\": \"\",\n \"Value\": \"\",\n \"ValueMax\": null,\n \"ValueMin\": null\n }\n ]\n },\n \"Filter\": null,\n \"FilterDimensionsParam\": \"\",\n \"GroupBy\": null,\n \"HierarchicalNotices\": [\n {\n \"Classification\": [\n \"\"\n ],\n \"NoticeId\": \"notice-lnrxepp7\",\n \"PolicyId\": \"policy-s5yso1am\"\n },\n {\n \"Classification\": [\n \"\"\n ],\n \"NoticeId\": \"notice-lzpys7tu\",\n \"PolicyId\": \"policy-s5yso1am\"\n }\n ],\n \"InsertTime\": 1739863161,\n \"InstanceGroupId\": 0,\n \"InstanceGroupName\": \"\",\n \"InstanceSum\": 0,\n \"IsBindAll\": 0,\n \"IsDefault\": 0,\n \"IsOneClick\": 0,\n \"IsSupportAlarmTag\": 1,\n \"LastEditUin\": \"700000233161\",\n \"MonitorType\": \"MT_QCE\",\n \"Namespace\": \"cvm_device\",\n \"NamespaceShowName\": \"云服务器-基础监控\",\n \"NoticeContentTmplBindInfos\": null,\n \"NoticeIds\": [\n \"notice-lnrxepp7\",\n \"notice-lzpys7tu\"\n ],\n \"Notices\": [\n {\n \"AMPConsumerId\": \"\",\n \"CLSNotices\": [],\n \"Id\": \"notice-lnrxepp7\",\n \"IsPreset\": 1,\n \"Name\": \"系统预设通知模板\",\n \"NoticeLanguage\": \"zh-CN\",\n \"NoticeType\": \"ALL\",\n \"PolicyIds\": null,\n \"Tags\": null,\n \"URLNotices\": [],\n \"UpdatedAt\": \"2020-11-13 17:02:44\",\n \"UpdatedBy\": \"1500000685\",\n \"UserNotices\": [\n {\n \"EndTime\": 86399,\n \"GroupIds\": [],\n \"NeedPhoneArriveNotice\": 0,\n \"NoticeWay\": [\n \"SMS\",\n \"EMAIL\"\n ],\n \"OnCallFormIDs\": [\n \"\"\n ],\n \"PhoneCircleInterval\": 0,\n \"PhoneCircleTimes\": 0,\n \"PhoneInnerInterval\": 0,\n \"PhoneOrder\": [],\n \"ReceiverType\": \"USER\",\n \"StartTime\": 0,\n \"UserIds\": [\n 1000909\n ],\n \"Weekday\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7\n ]\n }\n ]\n },\n {\n \"AMPConsumerId\": \"\",\n \"CLSNotices\": [],\n \"Id\": \"notice-lzpys7tu\",\n \"IsPreset\": 0,\n \"Name\": \"Eric-告警回调\",\n \"NoticeLanguage\": \"zh-CN\",\n \"NoticeType\": \"ALL\",\n \"PolicyIds\": null,\n \"Tags\": null,\n \"URLNotices\": [\n {\n \"EndTime\": 86399,\n \"IsValid\": 0,\n \"StartTime\": 0,\n \"URL\": \"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=47483435-2b48-4706-b76e-ac56e98be374\",\n \"ValidationCode\": \"\",\n \"Weekday\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7\n ]\n },\n {\n \"EndTime\": 86399,\n \"IsValid\": 0,\n \"StartTime\": 0,\n \"URL\": \"http://123.com\",\n \"ValidationCode\": \"\",\n \"Weekday\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7\n ]\n }\n ],\n \"UpdatedAt\": \"2023-05-08 20:47:39\",\n \"UpdatedBy\": \"700000233161\",\n \"UserNotices\": []\n }\n ],\n \"OneClickStatus\": 0,\n \"OriginId\": \"2963911\",\n \"PolicyId\": \"policy-s5yso1am\",\n \"PolicyName\": \"Eric-新增收敛测试\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"Region\": [\n \"bj\",\n \"bjjr\",\n \"cd\",\n \"cgoec\",\n \"cq\",\n \"csec\",\n \"de\",\n \"fzec\",\n \"gz\",\n \"gzopen\",\n \"gzwxzf\",\n \"hfeec\",\n \"hk\",\n \"hzec\",\n \"in\",\n \"jkt\",\n \"jnec\",\n \"jp\",\n \"kr\",\n \"nj\",\n \"qy\",\n \"qyxa\",\n \"sao\",\n \"sg\",\n \"sh\",\n \"shadc\",\n \"sheec\",\n \"shhqcft\",\n \"shjr\",\n \"shwxzf\",\n \"sjwec\",\n \"szjr\",\n \"szjxcft\",\n \"szsycft\",\n \"szx\",\n \"th\",\n \"tpe\",\n \"tsn\",\n \"use\",\n \"usw\",\n \"whec\",\n \"xbec\",\n \"xiyec\"\n ],\n \"Remark\": \"\",\n \"RuleType\": \"STATIC\",\n \"TagInstances\": [],\n \"TagOperation\": \"\",\n \"Tags\": [],\n \"TriggerTasks\": [],\n \"UpdateTime\": 1741072433,\n \"UseSum\": 4\n }\n ],\n \"RequestId\": \"cd403f27-3cea-4565-8856-36907e07a026\",\n \"TotalCount\": 216\n }\n}",
|
582
582
|
"title": "搜索一个云服务器绑定的告警策略"
|
583
583
|
}
|
@@ -372,7 +372,7 @@
|
|
372
372
|
"status": "online"
|
373
373
|
},
|
374
374
|
"RecognizeGeneralInvoice": {
|
375
|
-
"document": "本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。\n\n默认接口请求频率限制:5次/秒。\n\n\n支持返回的细项目子票种SubType、子票种中文TypeDescription、以及对应所属大类票种Type 的说明如下列表:\n<table style=\"width:715px\">\n <thead>\n <tr>\n <th style=\"width:200px\">SubType 子票种英文</th>\n <th style=\"width:200px\">TypeDescription子票种中文</th>\n <th >Type 所属大类票种</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td> VatSpecialInvoice</td>\n <td> 增值税专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatCommonInvoice</td>\n <td> 增值税普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicCommonInvoice </td>\n <td> 增值税电子普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoice </td>\n <td> 增值税电子专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceBlockchain</td>\n <td> 区块链电子发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceToll</td>\n <td> 增值税电子普通发票(通行费)</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatSalesList</td>\n <td> 增值税销货清单</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoiceFull</td>\n <td> 电子发票(专用发票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceFull</td>\n <td> 电子发票(普通发票) </td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicFlightTicketFull</td>\n <td> 电子发票(机票行程单)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicTrainTicketFull</td>\n <td> 电子发票(铁路电子客票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> MotorVehicleSaleInvoice </td>\n <td> 机动车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> UsedCarPurchaseInvoice </td>\n <td> 二手车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> VatInvoiceRoll </td>\n <td> 增值税普通发票(卷票) </td>\n <td> 11 </td>\n </tr>\n <tr>\n <td> TaxiTicket </td>\n <td> 出租车发票 </td>\n <td> 0 </td>\n </tr>\n <tr>\n <td> QuotaInvoice </td>\n <td> 定额发票 </td>\n <td> 1 </td>\n </tr>\n <tr>\n <td> TrainTicket </td>\n <td> 火车票 </td>\n <td> 2 </td>\n </tr>\n <tr>\n <td> AirTransport </td>\n <td> 机票行程单 </td>\n <td> 5 </td>\n </tr>\n <tr>\n <td> MachinePrintedInvoice </td>\n <td> 通用机打发票 </td>\n <td> 8 </td>\n </tr>\n <tr>\n <td> BusInvoice </td>\n <td> 汽车票 </td>\n <td> 9 </td>\n </tr>\n <tr>\n <td> ShippingInvoice </td>\n <td> 轮船票 </td>\n <td> 10 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeGeneralBill </td>\n <td> 非税收入通用票据 </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeElectronicBill </td>\n <td> 非税收入一般缴款书(电子) </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> TollInvoice </td>\n <td> 过路过桥费发票 </td>\n <td> 13 </td>\n </tr>\n <tr>\n <td> MedicalOutpatientInvoice </td>\n <td> 医疗门诊收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> MedicalHospitalizedInvoice </td>\n <td> 医疗住院收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> TaxPayment </td>\n <td> 完税凭证 </td>\n <td> 18 </td>\n </tr>\n <tr>\n <td> CustomsPaymentReceipt </td>\n <td> 海关缴款 </td>\n <td> 19 </td>\n </tr>\n <tr>\n <td> BankSlip </td>\n <td> 银行回单 </td>\n <td> 20 </td>\n </tr>\n <tr>\n <td> OtherInvoice </td>\n <td> 其他发票 </td>\n <td> -1 </td>\n </tr>\n </tbody>\n </table>",
|
375
|
+
"document": "本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。\n\n默认接口请求频率限制:5次/秒。\n\n\n支持返回的细项目子票种SubType、子票种中文TypeDescription、以及对应所属大类票种Type 的说明如下列表:\n<table style=\"width:715px\">\n <thead>\n <tr>\n <th style=\"width:200px\">SubType 子票种英文</th>\n <th style=\"width:200px\">TypeDescription子票种中文</th>\n <th >Type 所属大类票种</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td> VatSpecialInvoice</td>\n <td> 增值税专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatCommonInvoice</td>\n <td> 增值税普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicCommonInvoice </td>\n <td> 增值税电子普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoice </td>\n <td> 增值税电子专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceBlockchain</td>\n <td> 区块链电子发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceToll</td>\n <td> 增值税电子普通发票(通行费)</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatSalesList</td>\n <td> 增值税销货清单</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoiceFull</td>\n <td> 电子发票(专用发票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceFull</td>\n <td> 电子发票(普通发票) </td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicFlightTicketFull</td>\n <td> 电子发票(机票行程单)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicTrainTicketFull</td>\n <td> 电子发票(铁路电子客票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> MotorVehicleSaleInvoice </td>\n <td> 机动车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> UsedCarPurchaseInvoice </td>\n <td> 二手车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> VatInvoiceRoll </td>\n <td> 增值税普通发票(卷票) </td>\n <td> 11 </td>\n </tr>\n <tr>\n <td> TaxiTicket </td>\n <td> 出租车发票 </td>\n <td> 0 </td>\n </tr>\n <tr>\n <td> QuotaInvoice </td>\n <td> 定额发票 </td>\n <td> 1 </td>\n </tr>\n <tr>\n <td> TrainTicket </td>\n <td> 火车票 </td>\n <td> 2 </td>\n </tr>\n <tr>\n <td> AirTransport </td>\n <td> 机票行程单 </td>\n <td> 5 </td>\n </tr>\n <tr>\n <td> MachinePrintedInvoice </td>\n <td> 通用机打发票 </td>\n <td> 8 </td>\n </tr>\n <tr>\n <td> BusInvoice </td>\n <td> 汽车票 </td>\n <td> 9 </td>\n </tr>\n <tr>\n <td> ShippingInvoice </td>\n <td> 轮船票 </td>\n <td> 10 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeGeneralBill </td>\n <td> 非税收入通用票据 </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeElectronicBill </td>\n <td> 非税收入一般缴款书(电子) </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> TollInvoice </td>\n <td> 过路过桥费发票 </td>\n <td> 13 </td>\n </tr>\n <tr>\n <td> MedicalOutpatientInvoice </td>\n <td> 医疗门诊收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> MedicalHospitalizedInvoice </td>\n <td> 医疗住院收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> TaxPayment </td>\n <td> 完税凭证 </td>\n <td> 18 </td>\n </tr>\n <tr>\n <td> CustomsPaymentReceipt </td>\n <td> 海关缴款 </td>\n <td> 19 </td>\n </tr>\n <tr>\n <td> BankSlip </td>\n <td> 银行回单 </td>\n <td> 20 </td>\n </tr>\n <tr>\n <td> OnlineTaxiItinerary </td>\n <td> 网约车行程单 </td>\n <td> 21 </td>\n </tr>\n <tr>\n <td> CustomsDeclaration </td>\n <td> 海关进/出口货物报关单 </td>\n <td> 22 </td>\n </tr>\n <tr>\n <td> OverseasInvoice </td>\n <td> 海外发票 </td>\n <td> 23 </td>\n </tr>\n <tr>\n <td> ShoppingReceipt </td>\n <td> 购物小票 </td>\n <td> 24 </td>\n </tr>\n <tr>\n <td> SaleInventory </td>\n <td> 销货清单 </td>\n <td> 25 </td>\n </tr>\n <tr>\n <td> OtherInvoice </td>\n <td> 其他发票 </td>\n <td> -1 </td>\n </tr>\n </tbody>\n </table>",
|
376
376
|
"input": "RecognizeGeneralInvoiceRequest",
|
377
377
|
"name": "通用票据识别(高级版)",
|
378
378
|
"output": "RecognizeGeneralInvoiceResponse",
|
@@ -2881,6 +2881,32 @@
|
|
2881
2881
|
],
|
2882
2882
|
"usage": "out"
|
2883
2883
|
},
|
2884
|
+
"CustomsDeclaration": {
|
2885
|
+
"document": "海关进/出口货物报关单",
|
2886
|
+
"members": [
|
2887
|
+
{
|
2888
|
+
"disabled": false,
|
2889
|
+
"document": "发票名称",
|
2890
|
+
"example": "无",
|
2891
|
+
"member": "string",
|
2892
|
+
"name": "Title",
|
2893
|
+
"output_required": true,
|
2894
|
+
"type": "string",
|
2895
|
+
"value_allowed_null": false
|
2896
|
+
},
|
2897
|
+
{
|
2898
|
+
"disabled": false,
|
2899
|
+
"document": "识别出的字段名称(关键字)",
|
2900
|
+
"example": "无",
|
2901
|
+
"member": "OtherInvoiceItem",
|
2902
|
+
"name": "Content",
|
2903
|
+
"output_required": true,
|
2904
|
+
"type": "list",
|
2905
|
+
"value_allowed_null": false
|
2906
|
+
}
|
2907
|
+
],
|
2908
|
+
"usage": "out"
|
2909
|
+
},
|
2884
2910
|
"CustomsPaymentReceipt": {
|
2885
2911
|
"document": "海关缴款书",
|
2886
2912
|
"members": [
|
@@ -8070,6 +8096,16 @@
|
|
8070
8096
|
"output_required": true,
|
8071
8097
|
"type": "list",
|
8072
8098
|
"value_allowed_null": false
|
8099
|
+
},
|
8100
|
+
{
|
8101
|
+
"disabled": false,
|
8102
|
+
"document": "二维码数据。",
|
8103
|
+
"example": "01,01,4400153130,24741581,86013.75,20160330,,35FB,",
|
8104
|
+
"member": "string",
|
8105
|
+
"name": "QRCode",
|
8106
|
+
"output_required": false,
|
8107
|
+
"type": "string",
|
8108
|
+
"value_allowed_null": false
|
8073
8109
|
}
|
8074
8110
|
],
|
8075
8111
|
"usage": "out"
|
@@ -10512,6 +10548,32 @@
|
|
10512
10548
|
],
|
10513
10549
|
"usage": "out"
|
10514
10550
|
},
|
10551
|
+
"OnlineTaxiItinerary": {
|
10552
|
+
"document": "网约车行程单",
|
10553
|
+
"members": [
|
10554
|
+
{
|
10555
|
+
"disabled": false,
|
10556
|
+
"document": "发票名称",
|
10557
|
+
"example": "无",
|
10558
|
+
"member": "string",
|
10559
|
+
"name": "Title",
|
10560
|
+
"output_required": true,
|
10561
|
+
"type": "string",
|
10562
|
+
"value_allowed_null": false
|
10563
|
+
},
|
10564
|
+
{
|
10565
|
+
"disabled": false,
|
10566
|
+
"document": "识别出的字段名称(关键字)",
|
10567
|
+
"example": "无",
|
10568
|
+
"member": "OtherInvoiceItem",
|
10569
|
+
"name": "Content",
|
10570
|
+
"output_required": true,
|
10571
|
+
"type": "list",
|
10572
|
+
"value_allowed_null": false
|
10573
|
+
}
|
10574
|
+
],
|
10575
|
+
"usage": "out"
|
10576
|
+
},
|
10515
10577
|
"OnlineTaxiItineraryInfo": {
|
10516
10578
|
"document": "网约车行程单识别结果",
|
10517
10579
|
"members": [
|
@@ -10722,6 +10784,32 @@
|
|
10722
10784
|
],
|
10723
10785
|
"usage": "out"
|
10724
10786
|
},
|
10787
|
+
"OverseasInvoice": {
|
10788
|
+
"document": "海外发票",
|
10789
|
+
"members": [
|
10790
|
+
{
|
10791
|
+
"disabled": false,
|
10792
|
+
"document": "发票名称",
|
10793
|
+
"example": "无",
|
10794
|
+
"member": "string",
|
10795
|
+
"name": "Title",
|
10796
|
+
"output_required": true,
|
10797
|
+
"type": "string",
|
10798
|
+
"value_allowed_null": false
|
10799
|
+
},
|
10800
|
+
{
|
10801
|
+
"disabled": false,
|
10802
|
+
"document": "识别出的字段名称(关键字)",
|
10803
|
+
"example": "无",
|
10804
|
+
"member": "OtherInvoiceItem",
|
10805
|
+
"name": "Content",
|
10806
|
+
"output_required": true,
|
10807
|
+
"type": "list",
|
10808
|
+
"value_allowed_null": false
|
10809
|
+
}
|
10810
|
+
],
|
10811
|
+
"usage": "out"
|
10812
|
+
},
|
10725
10813
|
"PassInvoiceInfo": {
|
10726
10814
|
"document": "通行费发票信息",
|
10727
10815
|
"members": [
|
@@ -13319,7 +13407,7 @@
|
|
13319
13407
|
},
|
13320
13408
|
{
|
13321
13409
|
"disabled": false,
|
13322
|
-
"document": "需要识别的票据类型列表,为空或不填表示识别全部类型。当传入单个类型时,图片均采用该票类型进行处理。\n暂不支持多个参数进行局部控制。\n0:出租车发票\n1:定额发票\n2:火车票\n3:增值税发票\n5:机票行程单\n8:通用机打发票\n9:汽车票\n10:轮船票\n11:增值税发票(卷票 )\n12:购车发票\n13:过路过桥费发票\n15:非税发票\n16:全电发票\n17:医疗发票\n18:完税凭证\n19:海关缴款书\n20:银行回单\n-1:其他发票",
|
13410
|
+
"document": "需要识别的票据类型列表,为空或不填表示识别全部类型。当传入单个类型时,图片均采用该票类型进行处理。\n暂不支持多个参数进行局部控制。\n0:出租车发票\n1:定额发票\n2:火车票\n3:增值税发票\n5:机票行程单\n8:通用机打发票\n9:汽车票\n10:轮船票\n11:增值税发票(卷票 )\n12:购车发票\n13:过路过桥费发票\n15:非税发票\n16:全电发票\n17:医疗发票\n18:完税凭证\n19:海关缴款书\n20:银行回单\n21:网约车行程单\n22:海关进/出口货物报关单\n23:海外发票\n24:购物小票\n25:销货清单\n-1:其他发票",
|
13323
13411
|
"example": "[0,1]",
|
13324
13412
|
"member": "int64",
|
13325
13413
|
"name": "Types",
|
@@ -13379,6 +13467,15 @@
|
|
13379
13467
|
"name": "EnableItemPolygon",
|
13380
13468
|
"required": false,
|
13381
13469
|
"type": "bool"
|
13470
|
+
},
|
13471
|
+
{
|
13472
|
+
"disabled": false,
|
13473
|
+
"document": "是否开启二维码识别。",
|
13474
|
+
"example": "false",
|
13475
|
+
"member": "bool",
|
13476
|
+
"name": "EnableQRCode",
|
13477
|
+
"required": false,
|
13478
|
+
"type": "bool"
|
13382
13479
|
}
|
13383
13480
|
],
|
13384
13481
|
"type": "object"
|
@@ -15341,6 +15438,32 @@
|
|
15341
15438
|
],
|
15342
15439
|
"type": "object"
|
15343
15440
|
},
|
15441
|
+
"SaleInventory": {
|
15442
|
+
"document": "销货清单",
|
15443
|
+
"members": [
|
15444
|
+
{
|
15445
|
+
"disabled": false,
|
15446
|
+
"document": "发票名称",
|
15447
|
+
"example": "无",
|
15448
|
+
"member": "string",
|
15449
|
+
"name": "Title",
|
15450
|
+
"output_required": true,
|
15451
|
+
"type": "string",
|
15452
|
+
"value_allowed_null": false
|
15453
|
+
},
|
15454
|
+
{
|
15455
|
+
"disabled": false,
|
15456
|
+
"document": "识别出的字段名称(关键字)",
|
15457
|
+
"example": "无",
|
15458
|
+
"member": "OtherInvoiceItem",
|
15459
|
+
"name": "Content",
|
15460
|
+
"output_required": true,
|
15461
|
+
"type": "list",
|
15462
|
+
"value_allowed_null": false
|
15463
|
+
}
|
15464
|
+
],
|
15465
|
+
"usage": "out"
|
15466
|
+
},
|
15344
15467
|
"SealInfo": {
|
15345
15468
|
"document": "印章信息",
|
15346
15469
|
"members": [
|
@@ -15747,6 +15870,32 @@
|
|
15747
15870
|
],
|
15748
15871
|
"usage": "out"
|
15749
15872
|
},
|
15873
|
+
"ShoppingReceipt": {
|
15874
|
+
"document": "购物小票",
|
15875
|
+
"members": [
|
15876
|
+
{
|
15877
|
+
"disabled": false,
|
15878
|
+
"document": "发票名称",
|
15879
|
+
"example": "无",
|
15880
|
+
"member": "string",
|
15881
|
+
"name": "Title",
|
15882
|
+
"output_required": true,
|
15883
|
+
"type": "string",
|
15884
|
+
"value_allowed_null": false
|
15885
|
+
},
|
15886
|
+
{
|
15887
|
+
"disabled": false,
|
15888
|
+
"document": "识别出的字段名称(关键字)",
|
15889
|
+
"example": "无",
|
15890
|
+
"member": "OtherInvoiceItem",
|
15891
|
+
"name": "Content",
|
15892
|
+
"output_required": true,
|
15893
|
+
"type": "list",
|
15894
|
+
"value_allowed_null": false
|
15895
|
+
}
|
15896
|
+
],
|
15897
|
+
"usage": "out"
|
15898
|
+
},
|
15750
15899
|
"SingleInvoiceInfo": {
|
15751
15900
|
"document": "混贴票据中单张发票的内容",
|
15752
15901
|
"members": [
|
@@ -16085,6 +16234,56 @@
|
|
16085
16234
|
"output_required": true,
|
16086
16235
|
"type": "object",
|
16087
16236
|
"value_allowed_null": true
|
16237
|
+
},
|
16238
|
+
{
|
16239
|
+
"disabled": false,
|
16240
|
+
"document": "网约车行程单\n注意:此字段可能返回 null,表示取不到有效值。",
|
16241
|
+
"example": "无",
|
16242
|
+
"member": "OnlineTaxiItinerary",
|
16243
|
+
"name": "OnlineTaxiItinerary",
|
16244
|
+
"output_required": true,
|
16245
|
+
"type": "object",
|
16246
|
+
"value_allowed_null": true
|
16247
|
+
},
|
16248
|
+
{
|
16249
|
+
"disabled": false,
|
16250
|
+
"document": "海关进/出口货物报关单\n注意:此字段可能返回 null,表示取不到有效值。",
|
16251
|
+
"example": "无",
|
16252
|
+
"member": "CustomsDeclaration",
|
16253
|
+
"name": "CustomsDeclaration",
|
16254
|
+
"output_required": true,
|
16255
|
+
"type": "object",
|
16256
|
+
"value_allowed_null": true
|
16257
|
+
},
|
16258
|
+
{
|
16259
|
+
"disabled": false,
|
16260
|
+
"document": "海外发票\n注意:此字段可能返回 null,表示取不到有效值。",
|
16261
|
+
"example": "无",
|
16262
|
+
"member": "OverseasInvoice",
|
16263
|
+
"name": "OverseasInvoice",
|
16264
|
+
"output_required": true,
|
16265
|
+
"type": "object",
|
16266
|
+
"value_allowed_null": true
|
16267
|
+
},
|
16268
|
+
{
|
16269
|
+
"disabled": false,
|
16270
|
+
"document": "购物小票\n注意:此字段可能返回 null,表示取不到有效值。",
|
16271
|
+
"example": "无",
|
16272
|
+
"member": "ShoppingReceipt",
|
16273
|
+
"name": "ShoppingReceipt",
|
16274
|
+
"output_required": true,
|
16275
|
+
"type": "object",
|
16276
|
+
"value_allowed_null": true
|
16277
|
+
},
|
16278
|
+
{
|
16279
|
+
"disabled": false,
|
16280
|
+
"document": "销货清单\n注意:此字段可能返回 null,表示取不到有效值。",
|
16281
|
+
"example": "无",
|
16282
|
+
"member": "SaleInventory",
|
16283
|
+
"name": "SaleInventory",
|
16284
|
+
"output_required": true,
|
16285
|
+
"type": "object",
|
16286
|
+
"value_allowed_null": true
|
16088
16287
|
}
|
16089
16288
|
],
|
16090
16289
|
"usage": "out"
|