
Article Author: Programmer Wan Feng | AI Programming Evangelist | Focused on AI Tool Reviews and Teaching
400k+ followers across platforms, 6 years Python development experience, author of open source project python-office
💡 Technology is not high-cold, AI is very easy to use 👉 Click to experience Tencent Hunyuan
Hello everyone, this is programmer Wan Feng.
Today brings you Tencent Cloud Coding Plan API integration tutorial, hand-holding you through integrating Hunyuan into your own projects.
1. Preparation
1. Activate Service
First make sure you've activated Tencent Cloud Coding Plan:
👉 Click to activate
2. Get Keys
- Enter Tencent Cloud console
- Find "Cloud API Keys"
- Create keys, save SecretId and SecretKey
2. API Call Examples
Python Example
1 | import requests |
JavaScript Example
// Node.js calls Tencent Hunyuan
const axios = require('axios');
async function callHunyuan(prompt) {
const response = await axios.post(
'https://hunyuan.cloud.tencent.com/api/v1/chat/completions',
---
<p align="center" id='进群-banner-AI'>
<a target="_blank" href='https://www.python4office.cn/wechat-group/'>
<img src="https://raw.atomgit.com/user-images/assets/5027920/87fc1ca4-1a6c-47b8-b234-3e323a1aa827/aiq.jpg" width="100%"/>
</a>
</p>
## 🎓 AI Programming Course
Want to learn AI programming systematically? Check out **CoderWanFeng's AI Programming Course**!
- 👉 **Enroll Now**: [Click here to sign up — first 3 lessons are free](https://r7up9.xetslk.com/s/1uP5YW)
- 👉 **Free Preview**: [Watch the first 3 lessons on Bilibili for free](https://www.bilibili.com/cheese/play/ss982042944)
---
## 🎓 AI 编程实战课程
程序员晚枫专注AI编程培训,通过 **[《30讲 · AI编程训练营》](https://r7up9.xetslk.com/s/1uP5YW)**,让小白也能用AI做出实际项目。帮你从零上手!
- 👉 **免费试看**:[B站免费试看前3讲,先看看适不适合自己](https://www.bilibili.com/cheese/play/ss982042944)
- 👉 **课程报名**:[点击这里报名,现在报名还送书📖](https://r7up9.xetslk.com/s/1uP5YW)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 程序员晚枫 - Python自动化办公与AI编程!

