开始使用
开始使用 TurboAPI 文档,了解如何集成 AI API。
欢迎来到 TurboAPI 文档!本指南将帮助您快速入门并运行。
快速开始
1. 注册账户
访问 TurboAPI 创建账户并获取 API 密钥。
2. 安装 SDK
npm install @turboapiai/sdk
pnpm add @turboapiai/sdk
yarn add @turboapiai/sdk
pip install turboapi-sdk
go get github.com/turboapiai/turboapi-sdk-go@latest
3. 初始化客户端
import { TurboAPIClient } from '@turboapiai/sdk';
const client = new TurboAPIClient({
apiKey: process.env.TURBOAPI_API_KEY,
});
4. 发送第一个请求
// 调用 AI API
const task = await client.call.createAndWait('api-slug', {
prompt: 'A beautiful sunset over the ocean',
});
console.log(task.output);
后续步骤
支持
- 📧 邮箱: [email protected]
- 💬 Discord: 加入我们的社区
- 📖 常见问题 解答常见问题