public class HunyuanClient
extends com.tencentcloudapi.common.AbstractClient
| Constructor and Description |
|---|
HunyuanClient(com.tencentcloudapi.common.Credential credential,
String region) |
HunyuanClient(com.tencentcloudapi.common.Credential credential,
String region,
com.tencentcloudapi.common.profile.ClientProfile profile) |
| Modifier and Type | Method and Description |
|---|---|
ActivateServiceResponse |
ActivateService(ActivateServiceRequest req)
开通服务
|
ChatCompletionsResponse |
ChatCompletions(ChatCompletionsRequest req)
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
ChatTranslationsResponse |
ChatTranslations(ChatTranslationsRequest req)
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
CreateThreadResponse |
CreateThread(CreateThreadRequest req)
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
FilesDeletionsResponse |
FilesDeletions(FilesDeletionsRequest req)
删除文件。
|
FilesListResponse |
FilesList(FilesListRequest req)
文件列表。
|
FilesUploadsResponse |
FilesUploads(FilesUploadsRequest req)
上传用于不同用途的文件。
当前用途仅支持 hunyuan 等模型的文档理解。
|
GetEmbeddingResponse |
GetEmbedding(GetEmbeddingRequest req)
腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
|
GetThreadResponse |
GetThread(GetThreadRequest req)
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
GetThreadMessageResponse |
GetThreadMessage(GetThreadMessageRequest req)
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
GetThreadMessageListResponse |
GetThreadMessageList(GetThreadMessageListRequest req)
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
GetTokenCountResponse |
GetTokenCount(GetTokenCountRequest req)
该接口用于计算文本对应Token数、字符数。
|
QueryHunyuanImageChatJobResponse |
QueryHunyuanImageChatJob(QueryHunyuanImageChatJobRequest req)
混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
QueryHunyuanImageJobResponse |
QueryHunyuanImageJob(QueryHunyuanImageJobRequest req)
混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
RunThreadResponse |
RunThread(RunThreadRequest req)
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
SetPayModeResponse |
SetPayMode(SetPayModeRequest req)
设置付费模式
|
SubmitHunyuanImageChatJobResponse |
SubmitHunyuanImageChatJob(SubmitHunyuanImageChatJobRequest req)
混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
SubmitHunyuanImageJobResponse |
SubmitHunyuanImageJob(SubmitHunyuanImageJobRequest req)
混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
TextToImageLiteResponse |
TextToImageLite(TextToImageLiteRequest req)
文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreakerpublic HunyuanClient(com.tencentcloudapi.common.Credential credential,
String region)
public HunyuanClient(com.tencentcloudapi.common.Credential credential,
String region,
com.tencentcloudapi.common.profile.ClientProfile profile)
public ActivateServiceResponse ActivateService(ActivateServiceRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - ActivateServiceRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic ChatCompletionsResponse ChatCompletions(ChatCompletionsRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - ChatCompletionsRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic ChatTranslationsResponse ChatTranslations(ChatTranslationsRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - ChatTranslationsRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic CreateThreadResponse CreateThread(CreateThreadRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - CreateThreadRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic FilesDeletionsResponse FilesDeletions(FilesDeletionsRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - FilesDeletionsRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic FilesListResponse FilesList(FilesListRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - FilesListRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic FilesUploadsResponse FilesUploads(FilesUploadsRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - FilesUploadsRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic GetEmbeddingResponse GetEmbedding(GetEmbeddingRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - GetEmbeddingRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic GetThreadResponse GetThread(GetThreadRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - GetThreadRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic GetThreadMessageResponse GetThreadMessage(GetThreadMessageRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - GetThreadMessageRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic GetThreadMessageListResponse GetThreadMessageList(GetThreadMessageListRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - GetThreadMessageListRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic GetTokenCountResponse GetTokenCount(GetTokenCountRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - GetTokenCountRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic QueryHunyuanImageChatJobResponse QueryHunyuanImageChatJob(QueryHunyuanImageChatJobRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - QueryHunyuanImageChatJobRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic QueryHunyuanImageJobResponse QueryHunyuanImageJob(QueryHunyuanImageJobRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - QueryHunyuanImageJobRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic RunThreadResponse RunThread(RunThreadRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - RunThreadRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic SetPayModeResponse SetPayMode(SetPayModeRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - SetPayModeRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic SubmitHunyuanImageChatJobResponse SubmitHunyuanImageChatJob(SubmitHunyuanImageChatJobRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - SubmitHunyuanImageChatJobRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic SubmitHunyuanImageJobResponse SubmitHunyuanImageJob(SubmitHunyuanImageJobRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - SubmitHunyuanImageJobRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic TextToImageLiteResponse TextToImageLite(TextToImageLiteRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req - TextToImageLiteRequestcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionCopyright © 2024. All rights reserved.