diff --git a/README.md b/README.md index 708813f..c2fb9df 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,17 @@ cd ComfyUI python main.py ``` +## TI2V_API +### Workflow +[TI2V.json](workflow/TI2V_API.json) +![TI2V](workflow/TI2V_API.jpg) + +### Usage +api_url: https://api.stepfun.com/v1/video/generations +api_key: get api_key from https://platform.stepfun.com + ## Todo - [x] TI2V node -- [ ] T2V node \ No newline at end of file +- [x] TI2V_API node +- [ ] T2V node +- [ ] T2V_API node \ No newline at end of file diff --git a/workflow/TI2V_API.jpg b/workflow/TI2V_API.jpg new file mode 100644 index 0000000..41527b3 Binary files /dev/null and b/workflow/TI2V_API.jpg differ diff --git a/workflow/TI2V_API.json b/workflow/TI2V_API.json new file mode 100644 index 0000000..02941eb --- /dev/null +++ b/workflow/TI2V_API.json @@ -0,0 +1,196 @@ +{ + "last_node_id": 26, + "last_link_id": 41, + "nodes": [ + { + "id": 3, + "type": "LoadImage", + "pos": [ + 320.0885009765625, + 37.970645904541016 + ], + "size": [ + 315, + 314 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 41 + ], + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "pexels-olly-3777931.png", + "image" + ] + }, + { + "id": 26, + "type": "VHS_VideoCombine", + "pos": [ + 1150.8505859375, + 37.46379089355469 + ], + "size": [ + 214.7587890625, + 457.55181884765625 + ], + "flags": { + "collapsed": false + }, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 40 + }, + { + "name": "audio", + "type": "AUDIO", + "shape": 7, + "link": null + }, + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "shape": 7, + "link": null + }, + { + "name": "vae", + "type": "VAE", + "shape": 7, + "link": null + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": null + } + ], + "properties": { + "Node name for S&R": "VHS_VideoCombine" + }, + "widgets_values": { + "frame_rate": 20, + "loop_count": 0, + "filename_prefix": "AnimateDiff", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": true, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": true, + "params": { + "filename": "AnimateDiff_00002.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 20, + "workflow": "AnimateDiff_00002.png", + "fullpath": "/data/script/ComfyUI/temp/AnimateDiff_00002.mp4" + } + } + } + }, + { + "id": 24, + "type": "TI2V_API", + "pos": [ + 683.3611450195312, + 39.218997955322266 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image_input", + "type": "IMAGE", + "link": 41 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 40 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "TI2V_API" + }, + "widgets_values": [ + "https://api.stepfun.com/v1/video/generations", + "6iHvPHPJwRpX10Odurf1H64FnABN1iHpGBaHf5BqhH5RBNKAwZw1sWnuWtMEZ43k5", + "960x540", + "闭上眼睛" + ] + } + ], + "links": [ + [ + 40, + 24, + 0, + 26, + 0, + "IMAGE" + ], + [ + 41, + 3, + 0, + 24, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.90909090909091, + "offset": [ + -289.2615733441576, + 58.084385512189 + ] + }, + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true + }, + "version": 0.4 +} \ No newline at end of file