This commit is contained in:
2026-01-10 16:58:15 +08:00
commit 48e3033639
53 changed files with 41267 additions and 0 deletions

18
prompts/test/jimeng.ts Normal file
View File

@@ -0,0 +1,18 @@
import { JimengService } from '../src/services/jimeng.service.js';
import { useConfig } from '@kevisual/use-config';
const config = useConfig();
export const jimengService = new JimengService({
apiKey: config.JIMENG_API_KEY,
baseUrl: config.JIMENG_API_URL,
timeout: parseInt(config.JIMENG_TIMEOUT || '30000'),
});
const createImage = async () => {
const response = await jimengService.generateImage({
prompt: 'A beautiful landscape with mountains and a river, in the style of a watercolor painting',
});
console.log('Generated Image URL:', response);
};
createImage();