package com.easyagents.image.test;

import com.easyagents.core.model.image.GenerateImageRequest;
import com.easyagents.core.model.image.ImageResponse;
import com.easyagents.image.qianfan.QianfanImageModel;
import com.easyagents.image.qianfan.QianfanImageModelConfig;
import org.junit.Test;

public class QianfanImageModelTest {

    @Test
    public void testGenerate() throws InterruptedException {
        QianfanImageModelConfig config = new QianfanImageModelConfig();
        config.setApiKey("*************");
        QianfanImageModel imageModel = new QianfanImageModel(config);

        GenerateImageRequest request = new GenerateImageRequest();
        request.setPrompt("画一个职场性感女生图片");
        ImageResponse generate = imageModel.generate(request);
        System.out.println(generate);
    }
}
