feat: Add Jimeng image generation service and related functionality
- Implemented JimengService for image generation with API integration. - Created OSSService for handling image uploads to S3. - Developed PBService for managing PocketBase interactions. - Added task management for image creation and downloading using BullMQ. - Introduced routes for creating image generation tasks. - Implemented logging and error handling for image processing. - Added configuration management for Redis and other services. - Created scripts for testing image generation and PocketBase integration. - Updated package dependencies and added new scripts for worker management.
This commit is contained in:
11
prompts/docs/jimeng.md
Normal file
11
prompts/docs/jimeng.md
Normal file
@@ -0,0 +1,11 @@
|
||||
```sh
|
||||
curl -X POST https://jimeng-api.kevisual.cn/v1/images/generations \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer 4e962fc85078d5bfc02c9882bfe659eb" \
|
||||
-d '{
|
||||
"model": "jimeng-4.0",
|
||||
"prompt": "生成一个水墨山水画",
|
||||
"ratio": "1:1",
|
||||
"resolution": "2k"
|
||||
}'
|
||||
```
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user