tencentcloud-sdk-nodejs-intl-en
Version:
64 lines (56 loc) • 2.6 kB
JavaScript
/*
* Copyright (c) 2018 Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const models = require("./models");
const AbstractClient = require('../../common/abstract_client')
const SubmitHunyuanTo3DProJobRequest = models.SubmitHunyuanTo3DProJobRequest;
const SubmitHunyuanTo3DProJobResponse = models.SubmitHunyuanTo3DProJobResponse;
const ViewImage = models.ViewImage;
const QueryHunyuanTo3DProJobRequest = models.QueryHunyuanTo3DProJobRequest;
const File3D = models.File3D;
const QueryHunyuanTo3DProJobResponse = models.QueryHunyuanTo3DProJobResponse;
/**
* ai3d client
* @class
*/
class Ai3dClient extends AbstractClient {
constructor(credential, region, profile) {
super("ai3d.intl.tencentcloudapi.com", "2025-05-13", credential, region, profile);
}
/**
* This API is used to intelligently generate 3D content based on the HunYuan Large Model and input text descriptions/images.
This API is used to provide 3 concurrent tasks by default, which can be processed simultaneously. The next task can be processed only after the previous task is completed.
* @param {SubmitHunyuanTo3DProJobRequest} req
* @param {function(string, SubmitHunyuanTo3DProJobResponse):void} cb
* @public
*/
SubmitHunyuanTo3DProJob(req, cb) {
let resp = new SubmitHunyuanTo3DProJobResponse();
this.request("SubmitHunyuanTo3DProJob", req, resp, cb);
}
/**
* This API is used to intelligently generate 3D content based on the HunYuan Large Model and input text descriptions/images.
This API is used to provide 3 concurrent tasks by default, which can be processed simultaneously. The next task can be processed only after the previous task is completed.
* @param {QueryHunyuanTo3DProJobRequest} req
* @param {function(string, QueryHunyuanTo3DProJobResponse):void} cb
* @public
*/
QueryHunyuanTo3DProJob(req, cb) {
let resp = new QueryHunyuanTo3DProJobResponse();
this.request("QueryHunyuanTo3DProJob", req, resp, cb);
}
}
module.exports = Ai3dClient;