新增示例库逻辑

This commit is contained in:
puke
2025-11-03 17:44:33 +08:00
parent 6f114b61c7
commit ec395196cd
43 changed files with 2567 additions and 406 deletions

42
docs/en/user-guide/api.md Normal file
View File

@@ -0,0 +1,42 @@
# API Usage
Pixelle-Video provides a complete Python API for easy integration into your projects.
---
## Quick Start
```python
from pixelle_video.service import PixelleVideoCore
import asyncio
async def main():
# Initialize
pixelle = PixelleVideoCore()
await pixelle.initialize()
# Generate video
result = await pixelle.generate_video(
text="Why develop a reading habit",
mode="generate",
n_scenes=5
)
print(f"Video generated: {result.video_path}")
# Run
asyncio.run(main())
```
---
## API Reference
For detailed API documentation, see [API Overview](../reference/api-overview.md).
---
## Examples
For more usage examples, check the `examples/` directory in the project.