李经理:15682290831

通用服务端
视频编辑SDK
K歌SDK

功能说明

根据选择的曲风,AI自动生成该风格的歌曲

请求方法

GET

Header

以下请求参数列表仅列出了部分公共参数,完整公共参数列表见 公共参数列表

请求参数

请求示例

                HFAIComposeRequest request = new HFAIComposeRequest();
HFKReportListenRequest request = new HFKReportListenRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setStyle(ComposeStyleEnum.ELECTRONIC.getValue());
request.setClientId("hf2y7jk19a56qetq05");
try {
  HFAIComposeResponse response = client.execute(request);
  System.out.println(JSON.toJSON(response));
} catch (ApiException e) {
  e.printStackTrace();
}

              

响应数据

        curl - G https: //gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=D9C4123B123FFC9629444C47C5108CD4' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:AICompose' -H 'X-HF-Timestamp:1610589350415' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:WfNCMsocGfiwBtoaewEalhMScsLufAnk' 
    -X GET - d 'style=Electronic'
    {
      "code": 10200,
      "msg": "操作成功",
      "data": {
        "img": "https://dl.static.hi-five.cn/voicestyle/write_bg/passion.png",
        "midi": "https://xiaohi.xingzheai.cn/data/compose/Electronic/midi/edm_um934285.mid"
        "mp3": "https://xiaohi.xingzheai.cn/data/compose/Electronic/mp3/edm_um934285.mp3"
      },
      "taskId": "b9b4f90f8dfb67e0"
    }

      
  • 功能说明
  • 请求方法
  • Header
  • 请求参数
  • 请求示例
  • 响应数据