完整的 OpenAPI 3.1 规范 + 4 官方 SDK (TypeScript / Python / Go / Ruby)。 任何能读 OpenAPI 的工具都能 1 分钟接入。
// 1. 安装
npm install try-ai-writer
// 2. 初始化
import { TryAIWriter } from 'try-ai-writer';
const client = new TryAIWriter({ apiKey: process.env.TRYAI_KEY });
// 3. 一行生成
const post = await client.generate({
template: 'blog-post-outline',
variables: {
keyword: 'AI 写作工具',
audience: '中小企业主',
goal: '获客',
},
});
console.log(post.title);
// → "AI 写作工具完全指南:从选型到落地(2026 版)"