|
|
5 dias atrás | |
|---|---|---|
| .. | ||
| tests | 5 dias atrás | |
| .python-version | 5 dias atrás | |
| README.md | 5 dias atrás | |
| kling_client.py | 5 dias atrás | |
| main.py | 5 dias atrás | |
| pyproject.toml | 5 dias atrás | |
A unified HTTP API wrapper for Kuaishou Kling AI services, supporting AI video generation, AI image generation, and AI lip sync.
Create a generation task.
Request Body:
{
"biz_type": "aiImage|aiVideo|aiLipSync",
"prompt": "your prompt here",
"aspect_ratio": "16:9",
"image_count": 4,
"cookie": "optional authentication cookie"
}
Response:
{
"task_id": "task_123",
"status": "process|finished|failed",
"result": {
"images": ["url1", "url2"],
"videos": ["url1"]
}
}
Query task status.
Query Parameters:
biz_type: Business type (aiImage, aiVideo, aiLipSync)cookie: Optional authentication cookiecd tools/local/kuaishou_kling
uv sync
uv run python main.py [port]
Default port: 8000
uv run python tests/test_core.py
This tool has been registered to the tool registry with: