Depth Anything V2: AI Video Editor

استخرج خرائط العمق باستخدام Depth Anything V2. حوّل أي صورة أو فيديو إلى إشارة بنيوية لكل إطار لنقل الحركة في فيديوهات الذكاء الاصطناعي. جرّبه مجانًا.

عناصر التحكم التفاعلية للنموذج

استخرج خرائط العمق باستخدام Depth Anything V2. حوّل أي صورة أو فيديو إلى إشارة بنيوية لكل إطار لنقل الحركة في فيديوهات الذكاء الاصطناعي. جرّبه مجانًا.

📝

نظرة عامة

حول هذا النموذج

يستخرج Depth Anything V2 خريطة عمق دقيقة لكل بكسل من صورة واحدة أو من كل إطار في فيديو، وينتج خريطة رمادية يعبّر سطوعها عن المسافة النسبية من الكاميرا. تعالج إطارات الفيديو على دفعات باستخدام GPU ثم يعاد تجميعها بالدقة ومعدل الإطارات الأصليين لتكوين تسلسل عمق متزامن زمنيًا. تُستخدم هذه الخريطة عادةً كإشارة للتحكم بالحركة والبنية في نماذج توليد الفيديو مثل Seedance 2 وSeedance 2.5، كما تفيد في التركيب الواعي بالعمق ثلاثي الأبعاد وإعادة الإضاءة وإزالة الخلفية.

1Motion Transfer: Extract a depth video from a driving clip to control camera and scene motion in Seedance 2/2.5 video generation.
23D-Aware Compositing: Use per-pixel depth to composite, relight, or apply depth-of-field effects on ordinary footage.
3Background and Foreground Separation: Isolate subjects from backgrounds using relative depth instead of green-screen segmentation.
4Robotics and Spatial Analysis: Estimate relative scene geometry from a single camera for prototyping and research.
💰

التسعير والقيمة

تحليل التكلفة

muapiapp$0.04/sec of video, or $0.05 flat per image

الدفع لكل ثانية من فيديو الإدخال المعالج، أو سعر ثابت لخرائط العمق لصورة واحدة، دون اشتراك.

Fal.aiغير متوفر

هذا المتغير من النموذج غير مدرج على Fal.ai.

Replicateغير متوفر

هذا المتغير من النموذج غير مدرج على Replicate.

** يتم تقدير أسعار المنافسين بناءً على بنيات النماذج ومستويات الاستخدام المماثلة.

⚙️

التفاصيل الفنية

مخطط التكوين

رابط الفيديوstring

The URL of the driving video to extract a per-frame depth map from. Provide exactly one of video_url or image_url.

القيمة الافتراضيةhttps://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4
عنوان URL للصورةstring

The URL of a single image to generate a depth map from. Provide exactly one of video_url or image_url.

القيمة الافتراضيةhttps://d3adwkbyhxyrtq.cloudfront.net/webassets/videomodels/seedream-5.0-edit.jpg
📖

دليل التنفيذ

وثائق المطور

طريقة استخدام Depth Anything V2 API

  1. Choose your input: Provide exactly one of video_url (a driving video for per-frame depth extraction) or image_url (a single frame for a one-off depth map).
  2. Submit the request: Send a POST request to /api/v1/depth-anything with a publicly accessible URL.
  3. Poll or use a webhook: The task runs asynchronously; poll the returned request ID or supply a webhook_url to be notified on completion.
  4. Feed the output downstream: Use the returned depth map/video as the motion or structure control input for a video generation model such as Seedance 2 or 2.5, or for any depth-aware compositing pipeline.
curl -X POST "https://api.muapi.ai/api/v1/depth-anything" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video_url": "https://example.com/driving-video.mp4"
  }'
  1. Retrieve output: Read the completed depth map URL (PNG for image input, MP4 for video input) from the standard prediction result.
❓

الأسئلة الشائعة

كثيرا ما يطلب

What is Depth Anything V2?

It is a monocular depth estimation model that produces a grayscale depth map from a single image or every frame of a video, where pixel brightness represents relative distance from the camera.

Should I provide video_url or image_url?

Provide exactly one. Use video_url to extract a per-frame depth video (e.g. for motion-transfer control signals), or image_url for a single-frame depth map.

What output format do I get back?

A video input returns a grayscale depth-map video at the same resolution and frame rate as the source. An image input returns a single grayscale depth-map PNG.

What is this used for with Seedance 2 or 2.5?

Seedance's motion-transfer workflows accept a depth video as a structure/motion control signal. Extract the depth map from a driving video with this API, then pass it into Seedance to guide camera movement and scene geometry while generating new appearance.

Is there a size or length limit?

The API accepts standard web-hosted image and video files. Very long videos increase processing time since every frame is run through the depth model; keep driving videos to the length you actually need for the downstream generation.

How is pricing calculated?

Video input is billed at $0.04 per second of input video. A single image input is billed at a flat $0.05 per request.