AI generation tool supporting text-to-image (Seendance 2.0) and image-to-video (Seedream Lite 5.0).
GET /health - Health checkPOST /generate - Submit generation taskGET /status/{task_id} - Query task statusPOST /cleanup - Clean expired cacheJIMENG_API_KEY=your_api_key
JIMENG_COOKIE=your_cookie
JIMENG_BASE_URL=https://api.jimeng.ai
uv run python main.py --port 8000
curl -X POST http://localhost:8000/generate \
-H "Content-Type: application/json" \
-d '{
"action": "text2image",
"prompt": "A cute cat in garden",
"aspect_ratio": "1:1",
"image_count": 1
}'
curl -X POST http://localhost:8000/generate \
-H "Content-Type: application/json" \
-d '{
"action": "image2video",
"image_url": "https://example.com/image.jpg",
"prompt": "Make it move",
"video_duration": 5
}'
uv run python tests/test_jimeng.py
Tool registered as jimeng_ai in the tool registry with runtime type local.