配置项 | 是否必填 | 说明 | 举例 |
月预算 | 是 | 100,000 积分 | |
套餐名称 | 是 | 自定义套餐名称,便于区分管理(如“研发团队套餐”、“产品线 A 套餐”等)。 | 研发团队套餐 |
购买时长 | 是 | 可选择 1 至 12 个月。 | 1 个月 |
自动续费 | 否 | 按需开启。开启后,套餐到期会自动扣除下一个月的套餐费用。 | 否 |
配置项 | 是否必填 | 说明 | 举例 |
月 Token 数 | 是 | 50,000,000 tokens | |
套餐名称 | 是 | 自定义套餐名称,便于区分管理(如“研发团队套餐”、“产品线 A 套餐”等)。 | 研发团队套餐 |
购买时长 | 是 | 选择 1 至 12 个月。 | 1 个月 |
自动续费 | 否 | 按需开启。开启后,套餐到期会自动扣除下一个月的套餐费用。 | 否 |


字段 | 是否必填 | 说明 | 举例 |
复用已有 Key | 否 | 下拉选择当前套餐下已创建的 Key,选中后自动回填该 Key 的配置(模型选择、独占额度、总额度上限、TPM 限制)到下方表单,便于快速创建同配置的新 Key。Key 名称不回填,需重新输入。 选择“不复用”则从空白开始配置。 | 不复用 |
Key 名称 | 是 | 为 Key 自定义命名,便于识别用途和归属(如“员工001”、“客服 Bot”)。 命名规则:只能包含中文、字母、数字、下划线、连字符,以中文或字母开头,以中文或字母或数字结尾,长度 2~50 个字符。 | 员工001 |
创建数量 | 是 | 本次创建的 Key 数量,范围 1~10。系统会自动在 Key 名称后追加序号(如“员工001-1”、“员工001-2”)。批量创建时,所有 Key 共享相同的配置参数。 | 1 |
模型选择 | 是 | 选择该 Key 可以调用的模型,支持多选。可选模型包括 Auto 智能路由、GLM-5、Kimi-K2.5、MiniMax-M2.5。 未勾选的模型,该 Key 调用时将返回无权限错误。 | Auto 智能路由 |
独占额度 | 是 | 为该 Key 预留的专属额度(单位:积分/tokens),仅该 Key 可使用,其他 Key 无法占用。设为 0 表示不预留专属额度,该 Key 仅使用共享池。输入值不得超过当前可分配的独占额度(页面会提示“当前最大可配置 X 额度”)。 | 0 |
总额度上限 | 是 | 该 Key 在本计费周期内最多可使用的额度总量(独占 + 共享部分之和)。提供两种模式: 同套餐包上限(默认):上限等于套餐包的总额度,即该 Key 理论上可使用整个额度池(实际受共享池竞争限制)。 自定义上限:手动输入一个具体数值,限制该 Key 的最大可用额度,适合需要严格控制单 Key 成本的场景。 | 同套餐包上限 |
TPM 限制 | 是 | 该 Key 每分钟可处理的最大 Token 数(Tokens Per Minute),用于控制调用速率,防止单个 Key 过度占用带宽。提供两种模式: 同套餐包上限(默认):TPM 上限与套餐包级别一致。 自定义上限:手动输入值,不可超过套餐包级 TPM 上限。 | 同套餐包上限 |

$your_api_key 替换为您在上一步中创建并复制的 API Key。curl --location 'https://tokenhub.tencentcloudmaas.com/plan/v3/chat/completions' \\--header 'Authorization: Bearer $your_api_key' \\--header 'Content-Type: application/json' \\--data '{"model": "$model_id","messages": [{"role": "user","content": "写一首关于春天的诗"}],"stream": false}'
{"id": "********-****-****-****-************","object": "chat.completion","model": "auto","created": *******,"choices": [{"index": 0,"message": {"role": "assistant","content": "**春日漫步**\\n\\n春风拂面柳絮轻, \\n桃红李白映湖光。 \\n碧草如烟铺小径, \\n燕舞蜂歌映日晴。 \\n翠鸟鸣枝声细细, \\n清泉石上映星光。 \\n万物苏醒歌盛世, \\n人间四月尽芳菲。","reasoning_content": "The user is speaking Chinese: \\"写一首关于春天的诗\\" which translates to \\"Write a poem about spring\\". So we need to comply, providing a poem about spring in Chinese.\\n\\nWe should generate a Chinese poem. There's no policy conflict. The user wants a poem about spring. That is fine.\\n\\nWe should produce a poem in Chinese, maybe a classical style or free verse. The user is Chinese, likely wants a Chinese poem.\\n\\nThe policy: There's no disallowed content. So just comply.\\n\\nWe could produce a 5- or 7-character per line poem, e.g., a \\"七绝\\" or a \\"五律\\". Or a free verse. Let's produce a short Chinese poem with vivid imagery. The poem might be 4-8 lines. Should be about spring. Use imagery of blossoming, birds, gentle breezes, green grass, etc.\\n\\nThus we can output something like:\\n\\n春风拂面柳絮轻, \\n桃红李白映湖光。 \\n碧草如烟铺小径, \\n燕舞蜂歌映日晴。 \\n\\nThat's a four-line poem with 7 characters each maybe? Let's count: \\"春风拂面柳絮轻\\" has 7 characters: 春风 (2) 拂 (1) 面 (1) 柳 (1) 絮 (1) 轻 (1) - it's 7? Actually Chinese characters: 春(1) 风2 拂3 面4 柳5 絮6 轻7. Yes 7. Then second line \\"桃红李白映湖光\\" also 7. Third line \\"碧草如烟铺小径\\" also 7. Fourth line \\"燕舞蜂歌映日晴\\" also 7. Good.\\n\\nAlternatively, maybe do a 5- or 7-line poem in a more modern style. But the user just said \\"写一首关于春天的诗\\", so either is fine.\\n\\nWe can also add a title: \\"春之韵\\".\\n\\nLet's provide a short poem: \\"春风拂面柳絮轻,桃红李白映湖光,碧草如烟铺小径,燕舞蜂歌映日晴\\". Possibly add more lines to fill up to 8 lines: \\"翠鸟鸣枝声细细,清泉石上映星光,万物苏醒歌盛世,人间四月尽芳菲\\". That would be 8 lines of 7 characters each (if we maintain 7 characters each). Let's see: \\"翠鸟鸣枝声细细\\" - characters: 翠1 鸟2 鸣3 枝4 声5 细6 细7: yes 7. \\"清泉石上映星光\\" - 清1 泉2 石3 上4 映5 星6 光7. \\"万物苏醒歌盛世\\" - 万1 物2 苏3 醒4 歌5 盛6 世7. \\"人间四月尽芳菲\\" - 人1 间2 三3 月4 尽5 芳6 菲7. Good. Then that is 8 lines of 7 characters each, forming a \\"七绝\\" variant. Actually it's 8 lines, maybe a \\"七律\\" (seven-character regulated verse) but 8 lines is okay.\\n\\nWe can present the poem with a title \\"春日漫步\\". Then provide the poem.\\n\\nWe should be mindful of possible Chinese punctuation. Use Chinese punctuation: \\",\\" and \\"。\\" or just line breaks.\\n\\nWe can give a note: It's a classical style poem, describing spring scenery.\\n\\nTherefore answer: a poem.\\n\\nWill respond in Chinese, as the user wrote in Chinese. Provide the poem. That's it.\\n\\nNow output."},"finish_reason": "stop"}],"usage": {"prompt_tokens": 46,"completion_tokens": 813,"total_tokens": 859,"prompt_tokens_details": {"cached_tokens": 0},"completion_tokens_details": {"reasoning_tokens": 748}}}
curl --location 'https://tokenhub-intl.tencentcloudmaas.com/plan/v3/chat/completions' \\--header 'Authorization: Bearer $your_api_key' \\--header 'Content-Type: application/json' \\--data '{"model": "$model_id","messages": [{"role": "user","content": "写一首关于春天的诗"}],"stream": false}'
{"id": "********-****-****-****-************","object": "chat.completion","model": "auto","created": *******,"choices": [{"index": 0,"message": {"role": "assistant","content": "**春日漫步**\\n\\n春风拂面柳絮轻, \\n桃红李白映湖光。 \\n碧草如烟铺小径, \\n燕舞蜂歌映日晴。 \\n翠鸟鸣枝声细细, \\n清泉石上映星光。 \\n万物苏醒歌盛世, \\n人间四月尽芳菲。","reasoning_content": "The user is speaking Chinese: \\"写一首关于春天的诗\\" which translates to \\"Write a poem about spring\\". So we need to comply, providing a poem about spring in Chinese.\\n\\nWe should generate a Chinese poem. There's no policy conflict. The user wants a poem about spring. That is fine.\\n\\nWe should produce a poem in Chinese, maybe a classical style or free verse. The user is Chinese, likely wants a Chinese poem.\\n\\nThe policy: There's no disallowed content. So just comply.\\n\\nWe could produce a 5- or 7-character per line poem, e.g., a \\"七绝\\" or a \\"五律\\". Or a free verse. Let's produce a short Chinese poem with vivid imagery. The poem might be 4-8 lines. Should be about spring. Use imagery of blossoming, birds, gentle breezes, green grass, etc.\\n\\nThus we can output something like:\\n\\n春风拂面柳絮轻, \\n桃红李白映湖光。 \\n碧草如烟铺小径, \\n燕舞蜂歌映日晴。 \\n\\nThat's a four-line poem with 7 characters each maybe? Let's count: \\"春风拂面柳絮轻\\" has 7 characters: 春风 (2) 拂 (1) 面 (1) 柳 (1) 絮 (1) 轻 (1) - it's 7? Actually Chinese characters: 春(1) 风2 拂3 面4 柳5 絮6 轻7. Yes 7. Then second line \\"桃红李白映湖光\\" also 7. Third line \\"碧草如烟铺小径\\" also 7. Fourth line \\"燕舞蜂歌映日晴\\" also 7. Good.\\n\\nAlternatively, maybe do a 5- or 7-line poem in a more modern style. But the user just said \\"写一首关于春天的诗\\", so either is fine.\\n\\nWe can also add a title: \\"春之韵\\".\\n\\nLet's provide a short poem: \\"春风拂面柳絮轻,桃红李白映湖光,碧草如烟铺小径,燕舞蜂歌映日晴\\". Possibly add more lines to fill up to 8 lines: \\"翠鸟鸣枝声细细,清泉石上映星光,万物苏醒歌盛世,人间四月尽芳菲\\". That would be 8 lines of 7 characters each (if we maintain 7 characters each). Let's see: \\"翠鸟鸣枝声细细\\" - characters: 翠1 鸟2 鸣3 枝4 声5 细6 细7: yes 7. \\"清泉石上映星光\\" - 清1 泉2 石3 上4 映5 星6 光7. \\"万物苏醒歌盛世\\" - 万1 物2 苏3 醒4 歌5 盛6 世7. \\"人间四月尽芳菲\\" - 人1 间2 三3 月4 尽5 芳6 菲7. Good. Then that is 8 lines of 7 characters each, forming a \\"七绝\\" variant. Actually it's 8 lines, maybe a \\"七律\\" (seven-character regulated verse) but 8 lines is okay.\\n\\nWe can present the poem with a title \\"春日漫步\\". Then provide the poem.\\n\\nWe should be mindful of possible Chinese punctuation. Use Chinese punctuation: \\",\\" and \\"。\\" or just line breaks.\\n\\nWe can give a note: It's a classical style poem, describing spring scenery.\\n\\nTherefore answer: a poem.\\n\\nWill respond in Chinese, as the user wrote in Chinese. Provide the poem. That's it.\\n\\nNow output."},"finish_reason": "stop"}],"usage": {"prompt_tokens": 46,"completion_tokens": 813,"total_tokens": 859,"prompt_tokens_details": {"cached_tokens": 0},"completion_tokens_details": {"reasoning_tokens": 748}}}
文档反馈