AI内容生成 - 社交媒体日本語 API接口文档,AI驱动的电商内容生成API,一键生成博客文章、社交媒体文案、广告创意、产品描述等营销内容。支持多种风格和语言。リアルタイム監視とアラート機能。支持参数说明、调用示例、在线测试。免费试用。

请求格式

POST /api/v1/ai-content

请求头信息:

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: application/json

请求参数

参数名 类型 必填 说明
typestring是内容类型(social)
topicstring是内容主题关键词
tonestring否语气风格(formal/casual/persuasive)
lengthstring否内容长度(short/medium/long)
languagestring否输出语言

调用示例 - cURL

curl -X POST "https://cross.cybermagi.space/api/v1/ai-content" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "social", "topic": "跨境电商运营技巧", "tone": "persuasive", "length": "medium"}'

Python 调用示例

# Pythonコード例
import requests

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://cross.cybermagi.space"

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

data = {
    "target": "social"
}

response = requests.post(
    f"{BASE_URL}/api/v1/ai-content",
    json=data,
    headers=headers
)

result = response.json()
print(result)

返回示例

{
  "success": true,
  "data": {
    "type": "social",
    "content": "这是AI生成的社交媒体内容示例...\n\n标题: 提升跨境电商销量的5个秘诀\n\n正文内容...",
    "word_count": 470,
    "generation_time_ms": 930
  },
  "request_id": "req_ai-content_social_ja_9"
}
🚀 在线测试

点击返回主页,获取API密钥并在线测试