Zur Dokumentation springen
Dashboard öffnen
Auf dieser Seite

Bild animieren

Mit IMAGE_TO_VIDEO animierst du ein eigenes Bild. Ermittle ein kompatibles Modell, hole ein Angebot für die genaue Konfiguration ein und starte und verfolge dann den gespeicherten Vorgang.

Bild vorbereiten#

Ersetze Modell-IDs, Referenzfelder und Funktionsrevisionen der Beispiele durch aktuelle Katalogwerte. Die Unterstützung hängt vom Modell und Workflow ab.

Animation kalkulieren#

curl -X POST 'https://platform.tongai.io/v1/tools/tong_generation_quote/operations' \  -H "Authorization: Bearer $TONG_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \  -d '{  "input": {    "body": {      "operation": "IMAGE_TO_VIDEO",      "model": "MODEL_ID_FROM_DISCOVERY",      "resolution": "720p",      "durationSeconds": 5,      "inputAssetIds": [        "aaaaaaaaaaaaaaaaaaaaaaaa"      ],      "routingParameters": {        "ratio": "16:9"      }    }  }}'
Konfiguration
curl --version

Animation absenden#

curl -X POST 'https://platform.tongai.io/v1/tools/tong_generation_submit/operations' \  -H "Authorization: Bearer $TONG_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \  -d '{  "input": {    "params": {      "id": "cccccccccccccccccccccccc"    },    "body": {      "operation": "IMAGE_TO_VIDEO",      "quoteId": "QUOTE_SUBMIT_VALUE",      "prompt": "Animate the supplied image with a slow camera push.",      "inputAssetIds": [        "aaaaaaaaaaaaaaaaaaaaaaaa"      ],      "parameters": {        "videoModel": "MODEL_ID_FROM_DISCOVERY",        "resolution": "720p",        "durationSeconds": 5,        "ratio": "16:9"      }    }  }}'
Konfiguration
curl --version

Ergebnis verfolgen#

Eine angenommene Anfrage ist noch keine fertige Generierung. Verfolgen Sie den Job, bis das Ergebnis bereitsteht.

curl 'https://platform.tongai.io/v1/operations/e8aa0a87-6cd9-42eb-975a-b72bf43218c8' \  -H "Authorization: Bearer $TONG_API_KEY"
Konfiguration
curl --version