رفتن به محتوا

Ffmpeg Api Images to Video

یکپارچه‌سازی

شناسه مدل ffmpeg-api/images-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ffmpeg-api/images-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      {
        "url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frames": 1
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

این درخواست: ≈⁨‎$۰٫۰۰۵⁩ ۵ اعتبار API اجرای آن در این صفحه

دریافت کلید API
Utility تصویر به ویدیو #utility#editing

تبدیل فهرست مرتب‌شده حداکثر 200 تصویر به ویدیوی اسلایدشو MP4 با نرخ فریم انتخابی

Utility · ویدیو

اولین نتیجه شما اینجا قرار می‌گیرد

درخواست را در زیر بسازید و با کلید API خود اجرا کنید. خروجی‌ها در فضای ذخیره‌سازی ما کپی می‌شوند و برای همیشه یا به‌مدت ۷ روز رایگان نگه‌داری می‌شوند.

ساخت درخواست

کنترل‌ها از شِمای مدل تولید می‌شوند. با تغییر آن‌ها، کد و قیمت به‌روزرسانی می‌شوند.

•الزامی

ترتیب پخش تصاویر برای یک ویدیو؛ تعداد فریم اختصاص‌یافته به هر تصویر تعیین می‌کند پیش از برش به تصویر بعدی چه مدت قابل مشاهده بماند.

پیشرفته fps
پیش‌فرض 24

نرخ فریم ویدیوی خروجی، برحسب فریم در ثانیه.

POST /run/ffmpeg-api/images-to-video?wait=20 قیمت → ⁨‎$۰٫۰۰۵⁩
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ffmpeg-api/images-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      {
        "url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frames": 1
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

اجرای این درخواست

کلید شما در این مرورگر باقی می‌ماند: فقط به Doitong API ارسال می‌شود و فقط در صورت فعال‌کردن گزینه «یادآوری»، در localStorage ذخیره می‌شود. دریافت کلید API

درباره Ffmpeg Api Images to Video

ابزاری پردازشی است که فهرست مرتب‌شده تصاویر را به MP4 تبدیل می‌کند. در `images` از 1 تا 200 ورودی می‌گیرد و هر تصویر پیش از رفتن به تصویر بعدی، تعداد فریم مشخص‌شده خود را نمایش می‌دهد. `fps` نرخ فریم خروجی را از 1 تا 120، با پیش‌فرض 24، تعیین می‌کند. هیچ تولیدی انجام نمی‌شود.

پارامترها

نامنوع پیش‌فرضمجاز توضیحات
imagesالزامی
نوعobject[]
≤ ۲۰۰ مورد
ترتیب پخش تصاویر برای یک ویدیو؛ تعداد فریم اختصاص‌یافته به هر تصویر تعیین می‌کند پیش از برش به تصویر بعدی چه مدت قابل مشاهده بماند.
images[].urlالزامی
نوعstring
URL دسترسی به فایل تصویر.
images[].framesالزامی
نوعinteger
۱ – ۱٬۰۰۰
مدت نمایش تصویر در فریم‌های خروجی، معادل `frames / fps` ثانیه روی صفحه.
fpsاختیاری
نوعnumber
پیش‌فرض24
۱ – ۱۲۰
نرخ فریم ویدیوی خروجی، برحسب فریم در ثانیه.
الزامی

خروجی

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ffmpeg-api/images-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 5,
    "usd": "0.005",
    "charged": 5,
    "refunded": 0
  },
  "input": {
    "images": [
      {
        "url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frames": 1
      }
    ]
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
فایل‌های شما، انتخاب شماهر outputs[].url کپی‌ای در فضای ذخیره‌سازی ماست: برای همیشه (با هزینه به‌ازای هر GB-ماه) یا به‌مدت ۷ روز رایگان، بر اساس تنظیم حساب شما یا ?storage=.
ساختار یکسان در همه مدل‌هاtype، url، content_type، width، height و duration برای تصاویر، ویدیو و صدا یکسان هستند. output شیء نتیجه اختصاصی مدل است.
فیلدهای خروجی
video
object {url, content_type, file_name, file_size}ویدیوی تولیدشده در قالب MP4.

مدل‌های بیشتر: تصویر به ویدیو

برای عامل‌های هوش مصنوعی: این صفحه به‌صورت Markdown در دسترس است https://doitong.com/fa/developers/models/ffmpeg-api/images-to-video.md. همه مدل‌ها و راهنماها: https://doitong.com/developers/llms.txt