parent
e077c00418
commit
551c0db75d
@ -1,35 +0,0 @@
|
||||
package com.dsideal.aiSupport.Util.DouBao;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.dsideal.aiSupport.AiSupportApplication;
|
||||
import com.volcengine.service.visual.IVisualService;
|
||||
import com.volcengine.service.visual.impl.VisualServiceImpl;
|
||||
|
||||
public class CVSubmitTaskDemo {
|
||||
|
||||
public static void main(String[] args) {
|
||||
IVisualService visualService = VisualServiceImpl.getInstance();
|
||||
String ak = AiSupportApplication.PropKit.get("HuoShan.accessKey");
|
||||
String sk = AiSupportApplication.PropKit.get("HuoShan.secretKey");
|
||||
visualService.setAccessKey(ak);
|
||||
visualService.setSecretKey(sk);
|
||||
|
||||
JSONObject req = new JSONObject();
|
||||
req.put("req_key", "high_aes_general_v20_L");
|
||||
req.put("prompt", "千军万马");
|
||||
req.put("model_version", "general_v2.0_L");
|
||||
req.put("seed", -1);
|
||||
req.put("scale", 3.5);
|
||||
req.put("ddim_steps", 16);
|
||||
req.put("width", 512);
|
||||
req.put("height", 512);
|
||||
req.put("use_sr", true);
|
||||
try {
|
||||
Object response = visualService.cvSubmitTask(req);
|
||||
System.out.println(JSON.toJSONString(response));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.dsideal.aiSupport.Util.HuoShanFangZhou.Kit;
|
||||
|
||||
public class HuoShanCommon {
|
||||
//火山方舟大模型
|
||||
//https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey?apikey=%7B%7D
|
||||
// String apiKeyName = "api-key-20250418163654";
|
||||
|
||||
protected static String API_BASE_URL="https://ark.cn-beijing.volces.com";
|
||||
protected static String ARK_API_KEY = "f6150e6c-422a-4265-8b63-4d941b271220";
|
||||
}
|
Loading…
Reference in new issue