1. 创建任务
2. 轮询任务状态
status 进入 completed 或其他终态。
3. 获取结果
下一步
示例
查看更多请求模式。
Webhooks
用回调替代轮询。
文件与输出
了解上传流程和输出模型。
接口参考
查看精确的字段和响应结构。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
通过几次请求跑通你的第一个 FFmpeg API 任务。
curl -X POST https://ffmpeg-api.cloud/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"binary": "ffprobe",
"input": [
{
"type": "url",
"url": "https://example.com/input.mp4"
}
],
"ffmpegArgs": [
"-v",
"error",
"-show_format",
"-show_streams",
"-of",
"json",
"input0"
]
}'
{
"id": "JOB_ID",
"binary": "ffprobe",
"status": "queued",
"mode": "raw"
}
curl https://ffmpeg-api.cloud/v1/jobs/JOB_ID \
-H "Authorization: Bearer YOUR_API_KEY"
status 进入 completed 或其他终态。
curl https://ffmpeg-api.cloud/v1/jobs/JOB_ID/result \
-H "Authorization: Bearer YOUR_API_KEY"
