Documentation Index
Fetch the complete documentation index at: https://docs.globalaiopc.com/llms.txt
Use this file to discover all available pages before exploring further.
快速开始
欢迎使用我们的API服务!本指南将帮助您快速开始使用图像和视频生成功能。
第一步:获取API密钥
- 访问 API密钥管理页面
- 登录您的账户
- 创建新的API密钥
- 保存您的密钥(密钥只显示一次)
第二步:选择模型
我们提供多种AI模型供您选择:
文字生成模型
- GPT-4o: 强大的对话和文本生成能力
- Claude: Anthropic 的高性能对话模型
- Gemini: Google 的多模态大语言模型
图像生成模型
视频生成模型
第三步:发送请求
文字生成示例
curl -X POST https://zcbservice.aizfw.cn/kyyReactApiServer/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "你好,请介绍一下你自己"
}
]
}'
图像生成示例
curl -X POST https://zcbservice.aizfw.cn/kyyReactApiServer/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-image",
"prompt": "一只可爱的熊猫",
"size": "1:1",
"n": 1
}'
视频生成示例
curl -X POST https://zcbservice.aizfw.cn/kyyReactApiServer/v1/videos/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "海浪拍打着海岸",
"duration": 15,
"aspect_ratio": "16:9"
}'
第四步:查询任务状态
由于我们使用异步处理模式,您需要查询任务状态来获取结果:
curl -X GET https://zcbservice.aizfw.cn/kyyReactApiServer/v1/tasks/YOUR_TASK_ID \
-H "Authorization: Bearer YOUR_API_KEY"
下一步
查看API文档详细了解所有可用的API接口