Neo API 提供AI内容检测和人性化改写功能,支持文本流式输出。API采用RESTful风格,返回JSON格式数据。
Base URL: https://api.neo-ai.com/v1
认证方式: Bearer Token(在请求头中添加 Authorization: Bearer YOUR_API_KEY)
/detect检测文本的AI生成概率,返回详细分析结果。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| text | string | 是 | 待检测文本(100-5000字) |
{
"success": true,
"data": {
"ai_probability": 0.85,
"confidence": "high",
"risk_level": "high",
"suggested_action": "rewrite",
"details": {
"gpt_score": 0.88,
"claude_score": 0.82,
"human_score": 0.15
}
}
}/humanize将AI生成的文本改写为自然人类风格,支持流式输出。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| text | string | 是 | 待改写文本(100-5000字) |
| mode | string | 否 | 改写模式:light/medium/deep/academic/marketing |
| stream | boolean | 否 | 是否流式输出,默认false |
{
"success": true,
"data": {
"humanized_text": "改写后的文本内容...",
"estimated_human_probability": 0.92,
"quality_score": {
"overall": 85,
"readability": 88,
"coherence": 82,
"originality": 90,
"naturalness": 85
}
}
}| 错误码 | 说明 |
|---|---|
| 400 | 请求参数错误 |
| 401 | API Key 无效或已过期 |
| 403 | 权限不足,请升级套餐 |
| 429 | 请求频率超限,请稍后重试 |
| 500 | 服务器内部错误 |
const response = await fetch('https://api.neo-ai.com/v1/humanize', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY',
},
body: JSON.stringify({
text: '待改写的文本内容...',
mode: 'medium',
stream: false,
}),
});
const result = await response.json();
console.log(result.data.humanized_text);import requests
response = requests.post(
'https://api.neo-ai.com/v1/humanize',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY',
},
json={
'text': '待改写的文本内容...',
'mode': 'medium',
'stream': False,
}
)
result = response.json()
print(result['data']['humanized_text'])如有任何问题,请联系技术支持:api@neo-ai.com