| 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(); |