ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

FILM

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id film
# 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/film?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

ਹਰ ਰਨ ਲਈ $4.68 ਤੱਕ ਅਸਲ ਵਰਤੋਂ ਅਨੁਸਾਰ ਚਾਰਜ ਕੀਤਾ ਜਾਂਦਾ ਹੈ, ਬਾਕੀ ਦੀ ਰਕਮ ਵਾਪਸੀ ਹੁੰਦੀ ਹੈ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ

ਸ਼ੁਰੂਆਤੀ ਅਤੇ ਅੰਤਿਮ ਚਿੱਤਰ ਵਿਚਕਾਰ ਇੰਟਰਪੋਲੇਸ਼ਨ ਕਰਦਾ ਹੈ ਅਤੇ ਵਿਚਕਾਰਲੇ ਫ੍ਰੇਮ ਚਿੱਤਰਾਂ ਜਾਂ ਵੀਡੀਓ ਵਜੋਂ ਆਉਟਪੁੱਟ ਕਰਦਾ ਹੈ

Google · ਵੀਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ start_image_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਇੰਟਰਪੋਲੇਸ਼ਨ ਦਾ ਸ਼ੁਰੂਆਤੀ ਚਿੱਤਰ—ਜੋੜੇ ਦਾ ਪਹਿਲਾ ਚਿੱਤਰ—URL ਰਾਹੀਂ ਦਿੱਤਾ ਗਿਆ।

•ਲੋੜੀਂਦਾ end_image_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਇੰਟਰਪੋਲੇਸ਼ਨ ਦਾ ਅੰਤਿਮ ਚਿੱਤਰ—ਜੋੜੇ ਦਾ ਦੂਜਾ ਚਿੱਤਰ—URL ਰਾਹੀਂ ਦਿੱਤਾ ਗਿਆ।

ਉੱਨਤ output_type · image_format · video_quality · video_write_mode · num_frames · fps · include_start · include_end · enable_safety_checker
output_type ਡਿਫ਼ਾਲਟ images

ਵੀਡੀਓ ਅਤੇ ਵਿਅਕਤੀਗਤ ਚਿੱਤਰਾਂ ਵਿੱਚੋਂ ਆਉਟਪੁੱਟ ਚੋਣ।

image_format ਡਿਫ਼ਾਲਟ jpeg

'images' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ ਹੋਣ ਵਾਲੀ ਚਿੱਤਰ ਫਾਰਮੈਟ ਚੋਣ।

video_quality ਡਿਫ਼ਾਲਟ high

'video' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ ਹੋਣ ਵਾਲੀ ਵੀਡੀਓ ਗੁਣਵੱਤਾ ਚੋਣ।

video_write_mode ਡਿਫ਼ਾਲਟ balanced

'video' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ ਹੋਣ ਵਾਲਾ ਵੀਡੀਓ ਲਿਖਣ ਮੋਡ।

ਡਿਫ਼ਾਲਟ 1

ਦਿੱਤੇ ਗਏ ਚਿੱਤਰਾਂ ਦੇ ਵਿਚਕਾਰ ਸਿਰਜੇ ਗਏ ਮੱਧਵਰਤੀ ਫ੍ਰੇਮਾਂ ਦੀ ਗਿਣਤੀ।

ਡਿਫ਼ਾਲਟ 8

ਵੀਡੀਓ ਫ੍ਰੇਮ ਦਰ ਸੈਟਿੰਗ, ਫ੍ਰੇਮ ਪ੍ਰਤੀ ਸਕਿੰਟ ਵਿੱਚ ਮਾਪੀ ਗਈ ਅਤੇ 'video' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ।

POST /run/film?wait=20 ਕੋਟ → $4.68
# 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/film?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

FILM ਬਾਰੇ

ਦੋ ਤਸਵੀਰਾਂ, `start_image_url` ਅਤੇ `end_image_url`, ਦੇ ਵਿਚਕਾਰਲੇ ਫ੍ਰੇਮ ਬਣਾਉਂਦਾ ਹੈ। `num_frames` 1 ਤੋਂ 64 ਤੱਕ ਬਣਾਏ ਜਾਣ ਵਾਲੇ ਫ੍ਰੇਮਾਂ ਦੀ ਗਿਣਤੀ ਸੈੱਟ ਕਰਦਾ ਹੈ। `output_type` ਚਿੱਤਰ ਜਾਂ ਵੀਡੀਓ ਹੁੰਦਾ ਹੈ; ਵੀਡੀਓ ਲਈ `fps` (1 ਤੋਂ 60), `video_quality` ਅਤੇ `video_write_mode` ਲਾਗੂ ਹੁੰਦੇ ਹਨ। `include_start` ਅਤੇ `include_end` ਮੂਲ ਤਸਵੀਰਾਂ ਸ਼ਾਮਲ ਕਰਦੇ ਹਨ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
start_image_urlਲੋੜੀਂਦਾ image
ਕਿਸਮurl · image
ਇੰਟਰਪੋਲੇਸ਼ਨ ਦਾ ਸ਼ੁਰੂਆਤੀ ਚਿੱਤਰ—ਜੋੜੇ ਦਾ ਪਹਿਲਾ ਚਿੱਤਰ—URL ਰਾਹੀਂ ਦਿੱਤਾ ਗਿਆ।
end_image_urlਲੋੜੀਂਦਾ end_image
ਕਿਸਮurl · image
ਇੰਟਰਪੋਲੇਸ਼ਨ ਦਾ ਅੰਤਿਮ ਚਿੱਤਰ—ਜੋੜੇ ਦਾ ਦੂਜਾ ਚਿੱਤਰ—URL ਰਾਹੀਂ ਦਿੱਤਾ ਗਿਆ।
output_typeਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟimages
imagesvideo
ਵੀਡੀਓ ਅਤੇ ਵਿਅਕਤੀਗਤ ਚਿੱਤਰਾਂ ਵਿੱਚੋਂ ਆਉਟਪੁੱਟ ਚੋਣ।
image_formatਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟjpeg
pngjpeg
'images' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ ਹੋਣ ਵਾਲੀ ਚਿੱਤਰ ਫਾਰਮੈਟ ਚੋਣ।
video_qualityਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟhigh
lowmediumhighmaximum
'video' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ ਹੋਣ ਵਾਲੀ ਵੀਡੀਓ ਗੁਣਵੱਤਾ ਚੋਣ।
video_write_modeਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟbalanced
fastbalancedsmall
'video' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ ਹੋਣ ਵਾਲਾ ਵੀਡੀਓ ਲਿਖਣ ਮੋਡ।
num_framesਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ1
1 – 64
ਦਿੱਤੇ ਗਏ ਚਿੱਤਰਾਂ ਦੇ ਵਿਚਕਾਰ ਸਿਰਜੇ ਗਏ ਮੱਧਵਰਤੀ ਫ੍ਰੇਮਾਂ ਦੀ ਗਿਣਤੀ।
include_startਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ ਕਿ ਆਉਟਪੁੱਟ ਵਿੱਚ ਸ਼ੁਰੂਆਤੀ ਚਿੱਤਰ ਸ਼ਾਮਲ ਹੈ ਜਾਂ ਨਹੀਂ।
include_endਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ ਕਿ ਆਉਟਪੁੱਟ ਵਿੱਚ ਅੰਤਿਮ ਚਿੱਤਰ ਸ਼ਾਮਲ ਹੈ ਜਾਂ ਨਹੀਂ।
fpsਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ8
1 – 60
ਵੀਡੀਓ ਫ੍ਰੇਮ ਦਰ ਸੈਟਿੰਗ, ਫ੍ਰੇਮ ਪ੍ਰਤੀ ਸਕਿੰਟ ਵਿੱਚ ਮਾਪੀ ਗਈ ਅਤੇ 'video' ਨੂੰ output_type ਵਜੋਂ ਵਰਤਣ ਵੇਲੇ ਹੀ ਲਾਗੂ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
false ਸੈੱਟ ਕਰਕੇ ਸਕ੍ਰੀਨਿੰਗ ਨੂੰ ਢਿੱਲਾ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜੇ ਕਾਲਰ ਅਧਿਕਾਰਤ ਹੋਵੇ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "film",
  "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": 4680,
    "usd": "4.68",
    "charged": 4680,
    "refunded": 0
  },
  "input": {
    "start_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "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,
        "width": 1024,
        "height": 768
      }
    ],
    "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "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-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
images
array of object {url, content_type, file_name, file_size, width, height}ਸਿਰਜੇ ਗਏ ਫ੍ਰੇਮਾਂ ਵਾਲੇ ਵਿਅਕਤੀਗਤ ਚਿੱਤਰ।
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames} | nullਸਿਰਜੀ ਗਈ ਵੀਡੀਓ ਫ਼ਾਈਲ, ਜਦੋਂ output_type ਨੂੰ 'video' ਸੈੱਟ ਕੀਤਾ ਜਾਂਦਾ ਹੈ ਤਾਂ ਵਾਪਸ ਕੀਤੀ ਜਾਂਦੀ ਹੈ।

ਹੋਰ ਮਾਡਲ: ਚਿੱਤਰ ਤੋਂ ਵੀਡੀਓ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/film.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt