构建您的第一个 AI 工作流,只需 约 10 分钟
在控制台中设置工作流,在 Playground 中测试,然后通过一次 API 请求从您的后端调用它。
选择开始方式
您的第一个 10 分钟
1
2
连接 AI 供应商
粘贴您已有的 OpenAI、Anthropic、Google 或其他供应商的 API 密钥。可以把它想象成插电源线 — ModelRiver 用它代表您与 AI 通信,并会立即加密。
了解供应商密钥如何被安全保管3
4
5
6
在代码中调用
向兼容 OpenAI 的端点发送一次请求,带上您的 API 密钥,并把工作流名称作为 model。
终端
curl -X POST https://api.modelriver.com/v1/chat/completions \
-H "Authorization: Bearer $MODELRIVER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "marketing_summary",
"messages": [
{"role": "user", "content": "Summarise this week's launch"}
]
}'可选功能
使用 AI 智能体构建
★ 推荐使用 AI 编程智能体来设置 ModelRiver。将现成的指令复制到 Claude Code、Codex、Cursor 或其他编程智能体中。它会检查您的项目并按照下方的说明操作。
AI 智能体在现有项目中安装并配置 ModelRiver。
Help me get set up with ModelRiver.
First, inspect this project to understand its stack, structure, and conventions.
Then:
1. Determine the appropriate ModelRiver integration for this project.
2. Install the required ModelRiver package or SDK.
3. Configure the ModelRiver client using environment variables.
4. Create a minimal working request that calls a ModelRiver workflow.
5. Explain any environment variables I need to set (API key, workflow name, etc.).
6. Follow the project's existing architecture and conventions.
7. Do not modify production configuration without asking me first.接下来想做什么?
卡在某一步了吗?查看故障排除常见问题[email protected]