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

Flux 3 First Last Frame to Video

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

ਮਾਡਲ id blackforestlabs/flux-3/first-last-frame-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/blackforestlabs/flux-3/first-last-frame-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ: $0.85 850 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Black Forest Labs ਚਿੱਤਰ ਤੋਂ ਵੀਡੀਓ ਨੇਟਿਵ ਆਡੀਓ4K ਆਉਟਪੁੱਟਲਿਪਸਿੰਕ5–20 s2160p ਤੱਕ #stylized#transform#lipsync

ਦਿੱਤੇ ਗਏ ਸ਼ੁਰੂਆਤੀ ਅਤੇ ਅੰਤਿਮ ਚਿੱਤਰਾਂ ਵਿਚਕਾਰ ਬਦਲਾਅ ਵਾਲੀ ਵੀਡੀਓ ਬਣਾਉਂਦਾ ਹੈ

Black Forest Labs · ਵੀਡੀਓ

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ

ਇੱਛਿਤ ਵੀਡੀਓ ਦਾ ਟੈਕਸਟ ਵਰਣਨ।

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

ਵੀਡੀਓ ਦਾ ਸ਼ੁਰੂਆਤੀ ਫ੍ਰੇਮ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ URL ਰਾਹੀਂ PNG, JPEG ਜਾਂ WebP ਚਿੱਤਰ ਦਿਓ।

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

ਵੀਡੀਓ ਦਾ ਅੰਤਿਮ ਫ੍ਰੇਮ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ URL ਰਾਹੀਂ PNG, JPEG ਜਾਂ WebP ਚਿੱਤਰ ਦਿਓ।

duration 5 s

ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ ਸਕਿੰਟਾਂ ਵਿੱਚ ਸਪਸ਼ਟ ਤੌਰ 'ਤੇ ਸੈੱਟ ਕਰੋ, ਤਾਂ ਜੋ ਅੰਤਿਮ ਫ੍ਰੇਮ ਦੀ ਸਥਿਤੀ ਨਿਰਧਾਰਤ ਕੀਤੀ ਜਾ ਸਕੇ।

aspect_ratio ਡਿਫ਼ਾਲਟ auto

ਆਉਟਪੁੱਟ ਵੀਡੀਓ ਦਾ ਆਸਪੈਕਟ ਅਨੁਪਾਤ; `auto` ਚੋਣ ਮਾਡਲ ਨੂੰ ਸੌਂਪਦਾ ਹੈ।

resolution ਡਿਫ਼ਾਲਟ 720p

ਆਉਟਪੁੱਟ ਰੈਜ਼ੋਲਿਊਸ਼ਨ, ਜਿਸ ਦੇ ਪਿਕਸਲ ਮਾਪ ਆਸਪੈਕਟ ਅਨੁਪਾਤ ਦੁਆਰਾ ਨਿਰਧਾਰਤ ਹੁੰਦੇ ਹਨ। ਫਿਨਿਸ਼ਿੰਗ ਲਈ `1080p`, `1440p` (2K) ਅਤੇ `2160p` (4K) ਵਾਸਤੇ ਵੀਡੀਓ ਅਪਸਕੇਲਰ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ।

ਉੱਨਤ safety_tolerance
ਡਿਫ਼ਾਲਟ 2

ਵੀਡੀਓ ਸੁਰੱਖਿਆ ਸਹਿਣਸ਼ੀਲਤਾ ਦੇ ਸਕੇਲ ਵਿੱਚ ਸਭ ਤੋਂ ਉਦਾਰ ਸੈਟਿੰਗ 4 ਅਤੇ ਸਭ ਤੋਂ ਸਖ਼ਤ ਸੈਟਿੰਗ 0 ਹੈ।

POST /run/blackforestlabs/flux-3/first-last-frame-to-video?wait=20 ਕੋਟ → $0.85
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/blackforestlabs/flux-3/first-last-frame-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

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

Flux 3 First Last Frame to Video ਬਾਰੇ

`start_image_url` ਅਤੇ `end_image_url` ਲੈ ਕੇ, `prompt` ਦੀ ਰਹਿਨੁਮਾਈ ਹੇਠ ਉਨ੍ਹਾਂ ਵਿਚਕਾਰ ਦੀ ਗਤੀ ਭਰਦਾ ਹੈ। ਅੰਤਿਮ ਫ੍ਰੇਮ ਰੱਖਣ ਲਈ 5 ਤੋਂ 20 ਸਕਿੰਟਾਂ ਦੀ ਸਪਸ਼ਟ `duration` ਲਾਜ਼ਮੀ ਹੈ। `resolution` 720p ਤੋਂ 2160p ਤੱਕ ਹੁੰਦਾ ਹੈ ਅਤੇ ਆਡੀਓ ਬਣਾਉਣਾ ਮੂਲ ਰੂਪ ਵਿੱਚ ਚਾਲੂ ਹੁੰਦਾ ਹੈ। ਆਸਪੈਕਟ ਰੇਸ਼ੋ ਦੇ ਅੱਠ ਵਿਕਲਪ ਉਪਲਬਧ ਹਨ।

ਪੈਰਾਮੀਟਰ

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

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਇੱਛਿਤ ਵੀਡੀਓ ਦਾ ਟੈਕਸਟ ਵਰਣਨ।
aspect_ratioਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟauto
auto21:92:116:94:31:13:49:16
ਆਉਟਪੁੱਟ ਵੀਡੀਓ ਦਾ ਆਸਪੈਕਟ ਅਨੁਪਾਤ; `auto` ਚੋਣ ਮਾਡਲ ਨੂੰ ਸੌਂਪਦਾ ਹੈ।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ720p
720p1080p1440p2160p
ਆਉਟਪੁੱਟ ਰੈਜ਼ੋਲਿਊਸ਼ਨ, ਜਿਸ ਦੇ ਪਿਕਸਲ ਮਾਪ ਆਸਪੈਕਟ ਅਨੁਪਾਤ ਦੁਆਰਾ ਨਿਰਧਾਰਤ ਹੁੰਦੇ ਹਨ। ਫਿਨਿਸ਼ਿੰਗ ਲਈ `1080p`, `1440p` (2K) ਅਤੇ `2160p` (4K) ਵਾਸਤੇ ਵੀਡੀਓ ਅਪਸਕੇਲਰ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ5
567891011121314151617181920
ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ ਸਕਿੰਟਾਂ ਵਿੱਚ ਸਪਸ਼ਟ ਤੌਰ 'ਤੇ ਸੈੱਟ ਕਰੋ, ਤਾਂ ਜੋ ਅੰਤਿਮ ਫ੍ਰੇਮ ਦੀ ਸਥਿਤੀ ਨਿਰਧਾਰਤ ਕੀਤੀ ਜਾ ਸਕੇ।
generate_audioਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਇਹ ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ ਕਿ ਵੀਡੀਓ ਵਿੱਚ ਤਿਆਰ ਕੀਤਾ ਆਡੀਓ ਸ਼ਾਮਲ ਹੋਵੇ ਜਾਂ ਨਹੀਂ।
safety_toleranceਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ2
0 – 4
ਵੀਡੀਓ ਸੁਰੱਖਿਆ ਸਹਿਣਸ਼ੀਲਤਾ ਦੇ ਸਕੇਲ ਵਿੱਚ ਸਭ ਤੋਂ ਉਦਾਰ ਸੈਟਿੰਗ 4 ਅਤੇ ਸਭ ਤੋਂ ਸਖ਼ਤ ਸੈਟਿੰਗ 0 ਹੈ।
start_image_urlਲੋੜੀਂਦਾ image
ਕਿਸਮurl · image
ਵੀਡੀਓ ਦਾ ਸ਼ੁਰੂਆਤੀ ਫ੍ਰੇਮ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ URL ਰਾਹੀਂ PNG, JPEG ਜਾਂ WebP ਚਿੱਤਰ ਦਿਓ।
end_image_urlਲੋੜੀਂਦਾ end_image
ਕਿਸਮurl · image
ਵੀਡੀਓ ਦਾ ਅੰਤਿਮ ਫ੍ਰੇਮ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ URL ਰਾਹੀਂ PNG, JPEG ਜਾਂ WebP ਚਿੱਤਰ ਦਿਓ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

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

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "blackforestlabs/flux-3/first-last-frame-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": 850,
    "usd": "0.85",
    "charged": 850,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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": {
    "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
    },
    "seed": 42
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
video
object {url, content_type, file_name, file_size}ਮਾਡਲ ਵੱਲੋਂ ਤਿਆਰ ਕੀਤੀ ਵੀਡੀਓ।
seed
integerਸਿਰਜਣਾ ਦੌਰਾਨ ਵਰਤੀ ਗਈ ਸੀਡ ਕੀਮਤ।

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

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/blackforestlabs/flux-3/first-last-frame-to-video.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt