Copy
---
title: Tencent Hunyuan
---
>[Tencent의 하이브리드 모델 API](https://cloud.tencent.com/document/product/1729) (`Hunyuan API`)는
> 대화 커뮤니케이션, 콘텐츠 생성, 분석 및 이해를 구현하며,
> 지능형 고객 서비스, 지능형 마케팅, 역할 연기, 광고 카피라이팅, 제품 설명,
> 스크립트 제작, 이력서 생성, 기사 작성, 코드 생성, 데이터 분석 및 콘텐츠
> 분석과 같은 다양한 시나리오에서 광범위하게 사용될 수 있습니다.
자세한 내용은 [더 많은 정보](https://cloud.tencent.com/document/product/1729)를 참조하세요.
```python
from langchain_community.chat_models import ChatHunyuan
from langchain.messages import HumanMessage
Copy
chat = ChatHunyuan(
hunyuan_app_id=111111111,
hunyuan_secret_id="YOUR_SECRET_ID",
hunyuan_secret_key="YOUR_SECRET_KEY",
)
Copy
chat(
[
HumanMessage(
content="You are a helpful assistant that translates English to French.Translate this sentence from English to French. I love programming."
)
]
)
Copy
AIMessage(content="J'aime programmer.")
Streaming과 함께 ChatHunyuan 사용하기
Copy
chat = ChatHunyuan(
hunyuan_app_id="YOUR_APP_ID",
hunyuan_secret_id="YOUR_SECRET_ID",
hunyuan_secret_key="YOUR_SECRET_KEY",
streaming=True,
)
Copy
chat(
[
HumanMessage(
content="You are a helpful assistant that translates English to French.Translate this sentence from English to French. I love programming."
)
]
)
Copy
AIMessageChunk(content="J'aime programmer.")
Copy
---
<Callout icon="pen-to-square" iconType="regular">
[Edit the source of this page on GitHub.](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/chat/tencent_hunyuan.mdx)
</Callout>
<Tip icon="terminal" iconType="regular">
[Connect these docs programmatically](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
</Tip>