MCPcopy Create free account
hub / github.com/dashscope/dashscope-sdk-java / synCall

Method synCall

samples/ImageSynthesisUsage.java:31–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 }
30
31 public static void synCall() throws ApiException, NoApiKeyException {
32 ImageSynthesis is = new ImageSynthesis();
33 ImageSynthesisParam param =
34 ImageSynthesisParam.builder()
35 .model("wan2.2-t2i-flash")
36 .prompt("一直森林中的白色的猫")
37 .n(1)
38 .promptExtend(false)
39 .watermark(true)
40 .build();
41
42 ImageSynthesisResult result = is.syncCall(param);
43 System.out.println(result);
44 }
45
46 public static void listTask() throws ApiException, NoApiKeyException {
47 ImageSynthesis is = new ImageSynthesis();

Callers 1

mainMethod · 0.95

Calls 3

syncCallMethod · 0.95
builderMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected