|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: Guide |
| 4 | +permalink: /guide/ |
| 5 | +--- |
| 6 | + |
| 7 | +# Getting Started with Model Studio AI |
| 8 | + |
| 9 | +A complete walkthrough from zero to your first AI Agent workflow. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## Prerequisites |
| 14 | + |
| 15 | +- **Node.js** >= 22.12 ([download](https://nodejs.org)) |
| 16 | +- **API Key** — [Get yours free](https://bailian.console.aliyun.com/cn-beijing/?source_channel=key_github&tab=app#/api-key) |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +## Step 1: Install the CLI |
| 21 | + |
| 22 | +```bash |
| 23 | +npm install -g bailian-cli |
| 24 | +``` |
| 25 | + |
| 26 | +Install the Agent Skills: |
| 27 | + |
| 28 | +```bash |
| 29 | +npx skills add modelstudioai/cli --all -g |
| 30 | +``` |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## Step 2: Authenticate |
| 35 | + |
| 36 | +```bash |
| 37 | +# Recommended: API Key authentication |
| 38 | +bl auth login --api-key sk-xxxxx |
| 39 | + |
| 40 | +# Or: Browser-based console login (for app list / usage commands) |
| 41 | +bl auth login --console |
| 42 | +``` |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +## Step 3: Explore Capabilities |
| 47 | + |
| 48 | +### Text Chat |
| 49 | + |
| 50 | +```bash |
| 51 | +bl text chat --message "Explain quantum computing in simple terms" |
| 52 | +``` |
| 53 | + |
| 54 | +### Multimodal (Omni) |
| 55 | + |
| 56 | +```bash |
| 57 | +bl omni --message "Describe this image" --image ./photo.jpg |
| 58 | +``` |
| 59 | + |
| 60 | +### Image Generation |
| 61 | + |
| 62 | +```bash |
| 63 | +bl image generate --prompt "A cyberpunk cityscape at sunset" --out-dir ./output/ |
| 64 | +``` |
| 65 | + |
| 66 | +### Video Generation |
| 67 | + |
| 68 | +```bash |
| 69 | +bl video generate --image ./scene.png --prompt "Add cinematic camera movement" --download output.mp4 |
| 70 | +``` |
| 71 | + |
| 72 | +### Speech Synthesis |
| 73 | + |
| 74 | +```bash |
| 75 | +bl speech synthesize --text "Hello, welcome to Model Studio" --voice cosyvoice-v1 --output hello.mp3 |
| 76 | +``` |
| 77 | + |
| 78 | +### Web Search |
| 79 | + |
| 80 | +```bash |
| 81 | +bl text chat --message "What are the latest AI developments this week?" --enable-search |
| 82 | +``` |
| 83 | + |
| 84 | +--- |
| 85 | + |
| 86 | +## Step 4: Install Agent Skills |
| 87 | + |
| 88 | +Skills are reusable workflow units that extend your AI Agent's capabilities: |
| 89 | + |
| 90 | +```bash |
| 91 | +# Browse and install curated skills |
| 92 | +npx skills add modelstudioai/skills |
| 93 | + |
| 94 | +# Install a specific community skill |
| 95 | +npx skills add JohnKeating1997/spark-video |
| 96 | +``` |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +## Step 5: Build Your Own |
| 101 | + |
| 102 | +Combine CLI commands and skills to create complete AI Agent workflows. See [Showcase](../showcase/) for community examples. |
| 103 | + |
| 104 | +--- |
| 105 | + |
| 106 | +## Next Steps |
| 107 | + |
| 108 | +- [CLI Reference](../cli/) — All commands and options |
| 109 | +- [Skills Collection](../skills/) — Browse curated skills |
| 110 | +- [FAQ](../faq/) — Common questions answered |
| 111 | + |
| 112 | +--- |
| 113 | + |
| 114 | +*Built with ❤️ by Model Studio AI* |
0 commit comments