视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
visla【文档与办公】Creates AI-generated videos from text scripts, URLs, or PPT/PDF documents using Visla. Use when the user asks to generate a video, turn a webpage into a video, or convert a PPT/PDF into a video, or when the user asks to check Visla account credits/balance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Version: 260201-2257
Create AI-generated videos from text scripts, web URLs, or documents (PPT/PDF) using Visla's OpenAPI.
Credentials (NEVER output API keys/secrets in responses):
IMPORTANT: Always try to read the credentials file before asking the user for credentials.
~/.config/visla/.credentialsCredential validity check (practical):
account fails with VISLA_CLI_ERROR_CODE=missing_credentials or VISLA_CLI_ERROR_CODE=auth_failed, treat credentials as invalid and ask the user to provide real ones.File format (bash/zsh):
export VISLA_API_KEY="your_key"
export VISLA_API_SECRET="your_secret"
For PowerShell (temporary session):
$env:VISLA_API_KEY = "your_key"
$env:VISLA_API_SECRET = "your_secret"
Scripts: scripts/visla_cli.py (Python), scripts/visla_cli.sh (Bash)
Default strategy:
Bash (recommended on macOS; also works on Linux-like environments):
source ~/.config/visla/.credentials
./scripts/visla_cli.sh <command>
Python (cross-platform):
python3 scripts/visla_cli.py <command>
Windows native (PowerShell/CMD without Bash; Python):
# PowerShell
$env:VISLA_API_KEY = "your_key"
$env:VISLA_API_SECRET = "your_secret"
python scripts/visla_cli.py <command>
Windows note:
python scripts/visla_cli.py script "Scene 1: ..."- (recommended, no temp files):
@"
Scene 1: ...
Scene 2: ...
"@ | python scripts/visla_cli.py script -
py -3 scripts/visla_cli.py <command> may work better than python.~/.config/visla/.credentials automatically if env vars are not set.%USERPROFILE%\\.config\\visla\\.credentials.Note: do not print credentials. Prefer reading them from ~/.config/visla/.credentials or environment variables.
| Command | Description |
|---|---|
/visla script <script-or-@file> | Create video from a script (text or a local file) |
/visla url <URL> | Create video from web page URL |
/visla doc <file> | Create video from document (PPT/PDF) |
/visla account | Show account info and credit balance |
Source of truth for the exact CLI surface: run scripts/visla_cli.sh --help or python3 scripts/visla_cli.py --help.
**Scene 1** (0-10 sec):
**Visual:** A futuristic calendar flipping to 2025 with digital patterns.
**Narrator:** "AI is evolving rapidly! Here are 3 game-changing AI trends."
**Scene 2** (10-25 sec):
**Visual:** Text: "Trend #1: Generative AI Everywhere." Show tools like ChatGPT.
**Narrator:** "Generative AI is dominating industries—creating content and images."
The script, url, and doc commands execute the complete flow automatically:
Execution Instructions:
timeout to >= 30 minutes (Windows defaults are often ~10 minutes and need to be increased). If you cannot change the timeout, warn the user up front and, on timeout, ask whether to continue or switch to a step-by-step run.project_uuid in the output. Inform the user they can manually check project status and continue later using the Visla web interface or API./visla script @myscript.txt
/visla script "Scene 1: ..."
/visla url https://blog.example.com/article
/visla doc presentation.pptx
/visla account
.pptx, .ppt.pdfWhen a command fails, enter Autonomous Repair Mode. The goal is to repair the bundled scripts so future runs succeed, without requiring the user to debug.
Hard rules (always):
https://www.visla.us/visla-api as the only authoritative reference for API/auth/signing details.Safety constraints (cost / duplication control):
create/export calls. They can create duplicate projects or consume credits.create or export call, do it at most once automatically. If it still fails, stop retrying and switch to repair/debug actions.Repair workflow:
scripts/visla_cli.sh or scripts/visla_cli.py)visla_cli.py.bak-YYYYMMDD-HHMMSS)ts=$(date +%Y%m%d-%H%M%S); cp scripts/visla_cli.py scripts/visla_cli.py.bak-$tsts=$(date +%Y%m%d-%H%M%S); cp scripts/visla_cli.sh scripts/visla_cli.sh.bak-$ts$ts = Get-Date -Format "yyyyMMdd-HHmmss"; Copy-Item scripts\\visla_cli.py scripts\\visla_cli.py.bak-$ts$ts = Get-Date -Format "yyyyMMdd-HHmmss"; Copy-Item scripts\\visla_cli.sh scripts\\visla_cli.sh.bak-$ts--help, Python syntax check)project_uuid)