基于 Replicate AI 的图像生成、编辑和视频生成服务
curl -X POST __BASE_URL__/api/t2i/nano-banana \
-H "Content-Type: application/json" \
-d '{"prompt":"a cute cat playing piano","output_format":"jpg"}'
curl -X POST __BASE_URL__/api/t2i/seedream-4 \
-H "Content-Type: application/json" \
-d '{"prompt":"a beautiful Chinese landscape painting with mountains and waterfall","size":"2K","aspect_ratio":"16:9"}'
curl -X POST __BASE_URL__/api/i2i/seedream-4 \
-H "Content-Type: application/json" \
-d '{"prompt":"transform to sunset golden hour","image_input":["https://picsum.photos/512/512"],"size":"2K"}'
curl -X POST __BASE_URL__/api/i2i/nano-banana \
-H "Content-Type: application/json" \
-d '{"prompt":"cyberpunk neon style","image_input":["https://picsum.photos/512/512","https://picsum.photos/512/513"]}'
curl -X POST __BASE_URL__/api/video/seedance \
-H "Content-Type: application/json" \
-d '{"prompt":"a butterfly flying in a beautiful garden","duration":5,"resolution":"720p"}'
curl -X POST __BASE_URL__/api/video/seedance \
-H "Content-Type: application/json" \
-d '{
"prompt": "a character walking in the same style",
"image": "https://picsum.photos/512/512",
"reference_images": [
"https://picsum.photos/512/513",
"https://picsum.photos/512/514"
],
"duration": 5,
"resolution": "720p",
"camera_fixed": false
}'
curl -X POST __BASE_URL__/api/i2i/seedream-4 \ -F "image=@/path/to/your/image.jpg" \ -F "prompt=make it more colorful and vibrant"
curl -X POST __BASE_URL__/api/video/seedance \ -F "image=@/path/to/your/image.jpg" \ -F "prompt=make the character walk forward" \ -F "duration=8" \ -F "resolution=720p"
{
"success": true,
"message": "生成成功",
"data": {
"model": "使用的模型",
"outputs": [{
"url": "生成内容的URL",
"key": "存储键值"
}]
}
}
文生图:
图生图:
视频生成:
Powered by Replicate AI | Storage by Cloudflare R2
API Status: 🟢 Online | Response Time: ~5-30s