1. ジョブを作成する
2. ジョブをポーリングする
status が completed または他の終端状態になるまで待ちます。
3. 結果を取得する
次へ
Examples
さらにリクエスト例を確認します。
Webhooks
ポーリングの代わりにコールバックを使います。
Files and outputs
アップロードと出力モデルを理解します。
APIリファレンス
正確なフィールドとレスポンスを確認します。
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"
