nightmareai
/
cogvideo
Text-to-video generation
Prediction
nightmareai/cogvideo:4b1e6a738de28f0a5a88058b935a7e688a51147f6b09406dc972906485fa6235Input
- seed
- "35445"
- prompt
- a goose honking
- translate
- both_stages
- use_guidance
{ "seed": "35445", "prompt": "a goose honking", "translate": true, "both_stages": true, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:4b1e6a738de28f0a5a88058b935a7e688a51147f6b09406dc972906485fa6235", { input: { seed: "35445", prompt: "a goose honking", translate: true, both_stages: true, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:4b1e6a738de28f0a5a88058b935a7e688a51147f6b09406dc972906485fa6235", input={ "seed": "35445", "prompt": "a goose honking", "translate": True, "both_stages": True, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:4b1e6a738de28f0a5a88058b935a7e688a51147f6b09406dc972906485fa6235", "input": { "seed": "35445", "prompt": "a goose honking", "translate": true, "both_stages": true, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-26T06:51:43.322776Z", "created_at": "2022-07-26T06:28:18.057252Z", "data_removed": false, "error": null, "id": "kaneia6jovelznkbc5iysiw3yi", "input": { "seed": "35445", "prompt": "a goose honking", "translate": true, "both_stages": true, "use_guidance": true }, "logs": "2022-07-26 06:39:26 INFO [Generating First Frame with CogView2]Raw text: 一只鹅鸣喇叭 高清摄影\n2022-07-26 06:40:05 INFO [First Frame]Taken time 38.31\n\n2022-07-26 06:40:05 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只鹅鸣喇叭 视频\n2022-07-26 06:45:25 INFO CogVideo Stage1 completed. Taken time 358.28\n\n2022-07-26 06:45:40 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一只鹅鸣喇叭\n2022-07-26 06:47:16 INFO Duration 2.00, Taken time 96.30\n\n2022-07-26 06:47:16 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 一只鹅鸣喇叭", "metrics": { "predict_time": 742.354875, "total_time": 1405.265524 }, "output": [ "https://replicate.delivery/mgxm/371aa24e-2e70-4299-819f-dd41485ffd3a/0.gif", "https://replicate.delivery/mgxm/159dda19-7a38-4e4f-9627-76202edac884/0.gif" ], "started_at": "2022-07-26T06:39:20.967901Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kaneia6jovelznkbc5iysiw3yi", "cancel": "https://api.replicate.com/v1/predictions/kaneia6jovelznkbc5iysiw3yi/cancel" }, "version": "4b1e6a738de28f0a5a88058b935a7e688a51147f6b09406dc972906485fa6235" }
Generated in2022-07-26 06:39:26 INFO [Generating First Frame with CogView2]Raw text: 一只鹅鸣喇叭 高清摄影 2022-07-26 06:40:05 INFO [First Frame]Taken time 38.31 2022-07-26 06:40:05 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只鹅鸣喇叭 视频 2022-07-26 06:45:25 INFO CogVideo Stage1 completed. Taken time 358.28 2022-07-26 06:45:40 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一只鹅鸣喇叭 2022-07-26 06:47:16 INFO Duration 2.00, Taken time 96.30 2022-07-26 06:47:16 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 一只鹅鸣喇叭
Prediction
nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61Input
- seed
- "-1"
- prompt
- a blue cat
- translate
- both_stages
- use_guidance
{ "seed": "-1", "prompt": "a blue cat", "translate": true, "both_stages": true, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", { input: { seed: "-1", prompt: "a blue cat", translate: true, both_stages: true, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", input={ "seed": "-1", "prompt": "a blue cat", "translate": True, "both_stages": True, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", "input": { "seed": "-1", "prompt": "a blue cat", "translate": true, "both_stages": true, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-26T10:51:30.417091Z", "created_at": "2022-07-26T09:58:01.152395Z", "data_removed": false, "error": null, "id": "srczhw6ltjd6ldsbzj2ds3462i", "input": { "seed": "-1", "prompt": "a blue cat", "translate": true, "both_stages": true, "use_guidance": true }, "logs": "2022-07-26 10:06:52 INFO [Generating First Frame with CogView2]Raw text: 一只蓝猫 高清摄影\n2022-07-26 10:07:30 INFO [First Frame]Taken time 38.18\n\n2022-07-26 10:07:30 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只蓝猫 视频\n2022-07-26 10:12:56 INFO CogVideo Stage1 completed. Taken time 364.02\n\n2022-07-26 10:13:12 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一只蓝猫", "metrics": { "predict_time": 2.638381, "total_time": 3209.264696 }, "output": [ "https://replicate.delivery/mgxm/097cd44b-2f5b-47e9-bc26-439f5eb85821/0.gif", "https://replicate.delivery/mgxm/2ae1b4cf-fc8f-4ea4-a78a-067962d1b18b/0.gif" ], "started_at": "2022-07-26T10:51:27.778710Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/srczhw6ltjd6ldsbzj2ds3462i", "cancel": "https://api.replicate.com/v1/predictions/srczhw6ltjd6ldsbzj2ds3462i/cancel" }, "version": "45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61" }
Generated in2022-07-26 10:06:52 INFO [Generating First Frame with CogView2]Raw text: 一只蓝猫 高清摄影 2022-07-26 10:07:30 INFO [First Frame]Taken time 38.18 2022-07-26 10:07:30 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只蓝猫 视频 2022-07-26 10:12:56 INFO CogVideo Stage1 completed. Taken time 364.02 2022-07-26 10:13:12 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一只蓝猫
Prediction
nightmareai/cogvideo:feea196e16cfe3131adb624ad1189dc12a48b874d923669c89f08afa580a234cInput
- seed
- "-1"
- prompt
- a canadian goose
- translate
- both_stages
- use_guidance
{ "seed": "-1", "prompt": "a canadian goose", "translate": true, "both_stages": true, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:feea196e16cfe3131adb624ad1189dc12a48b874d923669c89f08afa580a234c", { input: { seed: "-1", prompt: "a canadian goose", translate: true, both_stages: true, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:feea196e16cfe3131adb624ad1189dc12a48b874d923669c89f08afa580a234c", input={ "seed": "-1", "prompt": "a canadian goose", "translate": True, "both_stages": True, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:feea196e16cfe3131adb624ad1189dc12a48b874d923669c89f08afa580a234c", "input": { "seed": "-1", "prompt": "a canadian goose", "translate": true, "both_stages": true, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-25T17:21:05.470088Z", "created_at": "2022-07-25T16:55:43.938017Z", "data_removed": false, "error": null, "id": "36qpar6jsjft3mcxft4nb5aswu", "input": { "seed": "-1", "prompt": "a canadian goose", "translate": true, "both_stages": true, "use_guidance": true }, "logs": "2022-07-25 17:09:34 DEBUG Starting new HTTPS connection (1): translate.google.com:443\n2022-07-25 17:09:34 DEBUG https://translate.google.com:443 \"GET /m?tl=zh-CN&sl=en&q=a+canadian+goose HTTP/1.1\" 200 None\n2022-07-25 17:09:34 DEBUG moving stage 2 model to cpu\n2022-07-25 17:09:34 DEBUG moving stage 1 model to cuda\n2022-07-25 17:09:38 DEBUG moving in model1 takes time: 3.85\n2022-07-25 17:09:38 INFO [Generating First Frame with CogView2]Raw text: 一只加拿大鹅 高清摄影\n2022-07-25 17:10:17 INFO [First Frame]Taken time 38.77\n\n2022-07-25 17:10:17 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只加拿大鹅 视频\n2022-07-25 17:10:17 DEBUG Using Guidance In Inference\n2022-07-25 17:10:17 DEBUG Limit spatial-channel's mem to current frame\n2022-07-25 17:15:27 DEBUG Attempting to acquire lock 140170285471824 on /root/.icetk_models/ice_image.pt.lock\n2022-07-25 17:15:27 DEBUG Lock 140170285471824 acquired on /root/.icetk_models/ice_image.pt.lock\n2022-07-25 17:15:27 DEBUG Attempting to release lock 140170285471824 on /root/.icetk_models/ice_image.pt.lock\n2022-07-25 17:15:27 DEBUG Lock 140170285471824 released on /root/.icetk_models/ice_image.pt.lock\n\n 0%| | 0/5 [00:00<?, ?it/s]\n 40%|████ | 2/5 [00:00<00:00, 19.93it/s]\n100%|██████████| 5/5 [00:00<00:00, 41.29it/s]\nVersion: 1.5\nInput files:\n['/tmp/tmplrmhhscb/output/stage1/frames/0/0000.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0001.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0002.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0003.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0004.jpg']\nFile created: /tmp/tmplrmhhscb/output/stage1/0.gif\n2022-07-25 17:15:33 INFO CogVideo Stage1 completed. Taken time 355.14\n\n2022-07-25 17:15:33 DEBUG moving stage 1 model to cpu\n2022-07-25 17:15:44 DEBUG moving stage 2 model to cuda\n2022-07-25 17:15:48 DEBUG moving in model2 takes time: 4.13\n2022-07-25 17:15:48 DEBUG moving stage-2 model to cuda\n2022-07-25 17:15:48 DEBUG moving in stage-2 model takes time: 0.01\n2022-07-25 17:15:48 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一只加拿大鹅\n2022-07-25 17:15:48 DEBUG Limit spatial-channel's mem to current frame\n2022-07-25 17:17:23 INFO Duration 2.00, Taken time 94.41\n\n2022-07-25 17:17:23 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 一只加拿大鹅\n2022-07-25 17:17:23 DEBUG Limit spatial-channel's mem to current frame\n2022-07-25 17:19:00 INFO Duration 1.00, Taken time 97.66\n\n2022-07-25 17:19:00 INFO [Stage2: Generating Frames, Frame Rate 8]\nraw text: 一只加拿大鹅\n2022-07-25 17:19:00 DEBUG Limit spatial-channel's mem to current frame\n2022-07-25 17:20:47 INFO Duration 0.50, Taken time 106.76\n\n2022-07-25 17:20:47 INFO CogVideo Stage2 completed. Taken time 298.84\n\n2022-07-25 17:20:47 DEBUG moving stage 2 model to cpu\n\n 0%| | 0/33 [00:00<?, ?it/s]\n 36%|███▋ | 12/33 [00:00<00:00, 114.31it/s]\n 76%|███████▌ | 25/33 [00:00<00:00, 118.06it/s]\n100%|██████████| 33/33 [00:00<00:00, 118.37it/s]\nVersion: 1.5\nInput files:\n['/tmp/tmplrmhhscb/output/stage2/frames/0/0000.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0001.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0002.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0003.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0004.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0005.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0006.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0007.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0008.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0009.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0010.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0011.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0012.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0013.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0014.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0015.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0016.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0017.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0018.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0019.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0020.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0021.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0022.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0023.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0024.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0025.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0026.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0027.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0028.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0029.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0030.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0031.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0032.jpg']\nFile created: /tmp/tmplrmhhscb/output/stage2/0.gif\n2022-07-25 17:21:04 DEBUG complete, exiting", "metrics": { "predict_time": 691.76149, "total_time": 1521.532071 }, "output": [ "https://replicate.delivery/mgxm/51ed3529-4e0b-4cc1-9c9a-b0ab1e8b0995/0.gif", "https://replicate.delivery/mgxm/7ef4f241-3160-4251-8a57-be8e5d221cc6/0.gif" ], "started_at": "2022-07-25T17:09:33.708598Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/36qpar6jsjft3mcxft4nb5aswu", "cancel": "https://api.replicate.com/v1/predictions/36qpar6jsjft3mcxft4nb5aswu/cancel" }, "version": "feea196e16cfe3131adb624ad1189dc12a48b874d923669c89f08afa580a234c" }
Generated in2022-07-25 17:09:34 DEBUG Starting new HTTPS connection (1): translate.google.com:443 2022-07-25 17:09:34 DEBUG https://translate.google.com:443 "GET /m?tl=zh-CN&sl=en&q=a+canadian+goose HTTP/1.1" 200 None 2022-07-25 17:09:34 DEBUG moving stage 2 model to cpu 2022-07-25 17:09:34 DEBUG moving stage 1 model to cuda 2022-07-25 17:09:38 DEBUG moving in model1 takes time: 3.85 2022-07-25 17:09:38 INFO [Generating First Frame with CogView2]Raw text: 一只加拿大鹅 高清摄影 2022-07-25 17:10:17 INFO [First Frame]Taken time 38.77 2022-07-25 17:10:17 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只加拿大鹅 视频 2022-07-25 17:10:17 DEBUG Using Guidance In Inference 2022-07-25 17:10:17 DEBUG Limit spatial-channel's mem to current frame 2022-07-25 17:15:27 DEBUG Attempting to acquire lock 140170285471824 on /root/.icetk_models/ice_image.pt.lock 2022-07-25 17:15:27 DEBUG Lock 140170285471824 acquired on /root/.icetk_models/ice_image.pt.lock 2022-07-25 17:15:27 DEBUG Attempting to release lock 140170285471824 on /root/.icetk_models/ice_image.pt.lock 2022-07-25 17:15:27 DEBUG Lock 140170285471824 released on /root/.icetk_models/ice_image.pt.lock 0%| | 0/5 [00:00<?, ?it/s] 40%|████ | 2/5 [00:00<00:00, 19.93it/s] 100%|██████████| 5/5 [00:00<00:00, 41.29it/s] Version: 1.5 Input files: ['/tmp/tmplrmhhscb/output/stage1/frames/0/0000.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0001.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0002.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0003.jpg', '/tmp/tmplrmhhscb/output/stage1/frames/0/0004.jpg'] File created: /tmp/tmplrmhhscb/output/stage1/0.gif 2022-07-25 17:15:33 INFO CogVideo Stage1 completed. Taken time 355.14 2022-07-25 17:15:33 DEBUG moving stage 1 model to cpu 2022-07-25 17:15:44 DEBUG moving stage 2 model to cuda 2022-07-25 17:15:48 DEBUG moving in model2 takes time: 4.13 2022-07-25 17:15:48 DEBUG moving stage-2 model to cuda 2022-07-25 17:15:48 DEBUG moving in stage-2 model takes time: 0.01 2022-07-25 17:15:48 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一只加拿大鹅 2022-07-25 17:15:48 DEBUG Limit spatial-channel's mem to current frame 2022-07-25 17:17:23 INFO Duration 2.00, Taken time 94.41 2022-07-25 17:17:23 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 一只加拿大鹅 2022-07-25 17:17:23 DEBUG Limit spatial-channel's mem to current frame 2022-07-25 17:19:00 INFO Duration 1.00, Taken time 97.66 2022-07-25 17:19:00 INFO [Stage2: Generating Frames, Frame Rate 8] raw text: 一只加拿大鹅 2022-07-25 17:19:00 DEBUG Limit spatial-channel's mem to current frame 2022-07-25 17:20:47 INFO Duration 0.50, Taken time 106.76 2022-07-25 17:20:47 INFO CogVideo Stage2 completed. Taken time 298.84 2022-07-25 17:20:47 DEBUG moving stage 2 model to cpu 0%| | 0/33 [00:00<?, ?it/s] 36%|███▋ | 12/33 [00:00<00:00, 114.31it/s] 76%|███████▌ | 25/33 [00:00<00:00, 118.06it/s] 100%|██████████| 33/33 [00:00<00:00, 118.37it/s] Version: 1.5 Input files: ['/tmp/tmplrmhhscb/output/stage2/frames/0/0000.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0001.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0002.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0003.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0004.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0005.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0006.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0007.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0008.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0009.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0010.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0011.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0012.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0013.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0014.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0015.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0016.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0017.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0018.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0019.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0020.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0021.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0022.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0023.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0024.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0025.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0026.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0027.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0028.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0029.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0030.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0031.jpg', '/tmp/tmplrmhhscb/output/stage2/frames/0/0032.jpg'] File created: /tmp/tmplrmhhscb/output/stage2/0.gif 2022-07-25 17:21:04 DEBUG complete, exiting
Prediction
nightmareai/cogvideo:6d55d6fdc738b66c996c46b2fe2a4ef965e613be4cb44d84664c07f305e92c2dInput
- seed
- "-1"
- prompt
- a black cat
- translate
- both_stages
- use_guidance
{ "seed": "-1", "prompt": "a black cat", "translate": true, "both_stages": true, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:6d55d6fdc738b66c996c46b2fe2a4ef965e613be4cb44d84664c07f305e92c2d", { input: { seed: "-1", prompt: "a black cat", translate: true, both_stages: true, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:6d55d6fdc738b66c996c46b2fe2a4ef965e613be4cb44d84664c07f305e92c2d", input={ "seed": "-1", "prompt": "a black cat", "translate": True, "both_stages": True, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:6d55d6fdc738b66c996c46b2fe2a4ef965e613be4cb44d84664c07f305e92c2d", "input": { "seed": "-1", "prompt": "a black cat", "translate": true, "both_stages": true, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-26T06:14:48.029302Z", "created_at": "2022-07-26T05:44:58.164332Z", "data_removed": false, "error": null, "id": "vi5hhcfyqnft3jhxusetmmaqea", "input": { "seed": "-1", "prompt": "a black cat", "translate": true, "both_stages": true, "use_guidance": true }, "logs": "2022-07-26 06:02:08 DEBUG Starting new HTTPS connection (1): translate.google.com:443\n2022-07-26 06:02:08 DEBUG https://translate.google.com:443 \"GET /m?tl=zh-CN&sl=en&q=a+black+cat HTTP/1.1\" 200 None\n2022-07-26 06:02:08 DEBUG moving stage 2 model to cpu\n2022-07-26 06:02:08 DEBUG moving stage 1 model to cuda\n2022-07-26 06:02:12 DEBUG moving in model1 takes time: 3.75\n2022-07-26 06:02:12 INFO [Generating First Frame with CogView2]Raw text: 一只黑猫 高清摄影\n2022-07-26 06:02:51 INFO [First Frame]Taken time 39.40\n\n2022-07-26 06:02:51 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只黑猫 视频\n2022-07-26 06:02:51 DEBUG Using Guidance In Inference\n2022-07-26 06:02:51 DEBUG Limit spatial-channel's mem to current frame\n2022-07-26 06:08:17 DEBUG Attempting to acquire lock 140517844067568 on /root/.icetk_models/ice_image.pt.lock\n2022-07-26 06:08:17 DEBUG Lock 140517844067568 acquired on /root/.icetk_models/ice_image.pt.lock\n2022-07-26 06:08:17 DEBUG Attempting to release lock 140517844067568 on /root/.icetk_models/ice_image.pt.lock\n2022-07-26 06:08:17 DEBUG Lock 140517844067568 released on /root/.icetk_models/ice_image.pt.lock\n\nSave to: /tmp/tmph7a4dbpv/output/stage1\n2022-07-26 06:08:24 INFO CogVideo Stage1 completed. Taken time 371.81\n\n2022-07-26 06:08:24 DEBUG moving stage 1 model to cpu\n2022-07-26 06:08:35 DEBUG moving stage-2 model to cuda\n2022-07-26 06:08:39 DEBUG moving in stage-2 model takes time: 4.04\n2022-07-26 06:08:39 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一只黑猫\n2022-07-26 06:08:39 DEBUG Limit spatial-channel's mem to current frame\n2022-07-26 06:10:16 INFO Duration 2.00, Taken time 96.67\n\n2022-07-26 06:10:16 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 一只黑猫\n2022-07-26 06:10:16 DEBUG Limit spatial-channel's mem to current frame", "metrics": { "predict_time": 760.519747, "total_time": 1789.86497 }, "output": [ "https://replicate.delivery/mgxm/f4412e8a-5583-43a9-a5d1-8e0106e15a09/0.gif", "https://replicate.delivery/mgxm/6c3a4e36-2332-4280-a506-a4bfd4197f7b/0.gif" ], "started_at": "2022-07-26T06:02:07.509555Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vi5hhcfyqnft3jhxusetmmaqea", "cancel": "https://api.replicate.com/v1/predictions/vi5hhcfyqnft3jhxusetmmaqea/cancel" }, "version": "6d55d6fdc738b66c996c46b2fe2a4ef965e613be4cb44d84664c07f305e92c2d" }
Generated in2022-07-26 06:02:08 DEBUG Starting new HTTPS connection (1): translate.google.com:443 2022-07-26 06:02:08 DEBUG https://translate.google.com:443 "GET /m?tl=zh-CN&sl=en&q=a+black+cat HTTP/1.1" 200 None 2022-07-26 06:02:08 DEBUG moving stage 2 model to cpu 2022-07-26 06:02:08 DEBUG moving stage 1 model to cuda 2022-07-26 06:02:12 DEBUG moving in model1 takes time: 3.75 2022-07-26 06:02:12 INFO [Generating First Frame with CogView2]Raw text: 一只黑猫 高清摄影 2022-07-26 06:02:51 INFO [First Frame]Taken time 39.40 2022-07-26 06:02:51 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只黑猫 视频 2022-07-26 06:02:51 DEBUG Using Guidance In Inference 2022-07-26 06:02:51 DEBUG Limit spatial-channel's mem to current frame 2022-07-26 06:08:17 DEBUG Attempting to acquire lock 140517844067568 on /root/.icetk_models/ice_image.pt.lock 2022-07-26 06:08:17 DEBUG Lock 140517844067568 acquired on /root/.icetk_models/ice_image.pt.lock 2022-07-26 06:08:17 DEBUG Attempting to release lock 140517844067568 on /root/.icetk_models/ice_image.pt.lock 2022-07-26 06:08:17 DEBUG Lock 140517844067568 released on /root/.icetk_models/ice_image.pt.lock Save to: /tmp/tmph7a4dbpv/output/stage1 2022-07-26 06:08:24 INFO CogVideo Stage1 completed. Taken time 371.81 2022-07-26 06:08:24 DEBUG moving stage 1 model to cpu 2022-07-26 06:08:35 DEBUG moving stage-2 model to cuda 2022-07-26 06:08:39 DEBUG moving in stage-2 model takes time: 4.04 2022-07-26 06:08:39 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一只黑猫 2022-07-26 06:08:39 DEBUG Limit spatial-channel's mem to current frame 2022-07-26 06:10:16 INFO Duration 2.00, Taken time 96.67 2022-07-26 06:10:16 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 一只黑猫 2022-07-26 06:10:16 DEBUG Limit spatial-channel's mem to current frame
Prediction
nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61Input
- seed
- "-1"
- prompt
- a cheeseburger flying in the air
- translate
- both_stages
- use_guidance
{ "seed": "-1", "prompt": "a cheeseburger flying in the air", "translate": true, "both_stages": true, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", { input: { seed: "-1", prompt: "a cheeseburger flying in the air", translate: true, both_stages: true, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", input={ "seed": "-1", "prompt": "a cheeseburger flying in the air", "translate": True, "both_stages": True, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", "input": { "seed": "-1", "prompt": "a cheeseburger flying in the air", "translate": true, "both_stages": true, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-26T09:02:11.190599Z", "created_at": "2022-07-26T08:33:15.073163Z", "data_removed": false, "error": null, "id": "m4jtbomzoratvi6ctnn5l645ia", "input": { "seed": "-1", "prompt": "a cheeseburger flying in the air", "translate": true, "both_stages": true, "use_guidance": true }, "logs": "2022-07-26 08:49:47 INFO [Generating First Frame with CogView2]Raw text: 一个在空中飞翔的芝士汉堡 高清摄影\n2022-07-26 08:50:25 INFO [First Frame]Taken time 38.44\n\n2022-07-26 08:50:25 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一个在空中飞翔的芝士汉堡 视频\n2022-07-26 08:55:46 INFO CogVideo Stage1 completed. Taken time 359.02\n\n2022-07-26 08:56:01 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一个在空中飞翔的芝士汉堡\n2022-07-26 08:57:37 INFO Duration 2.00, Taken time 96.14\n\n2022-07-26 08:57:37 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 一个在空中飞翔的芝士汉堡", "metrics": { "predict_time": 748.369929, "total_time": 1736.117436 }, "output": [ "https://replicate.delivery/mgxm/8548097f-050e-47bc-a029-1195f2272bb4/0.gif", "https://replicate.delivery/mgxm/5b481c5f-f738-4f54-af44-0e65e87437ad/0.gif" ], "started_at": "2022-07-26T08:49:42.820670Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m4jtbomzoratvi6ctnn5l645ia", "cancel": "https://api.replicate.com/v1/predictions/m4jtbomzoratvi6ctnn5l645ia/cancel" }, "version": "45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61" }
Generated in2022-07-26 08:49:47 INFO [Generating First Frame with CogView2]Raw text: 一个在空中飞翔的芝士汉堡 高清摄影 2022-07-26 08:50:25 INFO [First Frame]Taken time 38.44 2022-07-26 08:50:25 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一个在空中飞翔的芝士汉堡 视频 2022-07-26 08:55:46 INFO CogVideo Stage1 completed. Taken time 359.02 2022-07-26 08:56:01 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一个在空中飞翔的芝士汉堡 2022-07-26 08:57:37 INFO Duration 2.00, Taken time 96.14 2022-07-26 08:57:37 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 一个在空中飞翔的芝士汉堡
Prediction
nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61Input
- seed
- "56072"
- prompt
- a happy dog
- translate
- both_stages
- use_guidance
{ "seed": "56072", "prompt": "a happy dog", "translate": true, "both_stages": false, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", { input: { seed: "56072", prompt: "a happy dog", translate: true, both_stages: false, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", input={ "seed": "56072", "prompt": "a happy dog", "translate": True, "both_stages": False, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", "input": { "seed": "56072", "prompt": "a happy dog", "translate": true, "both_stages": false, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-26T11:12:44.863962Z", "created_at": "2022-07-26T10:57:32.586421Z", "data_removed": false, "error": null, "id": "a2islsv5brfaddm3bchgsc2ajy", "input": { "seed": "56072", "prompt": "a happy dog", "translate": true, "both_stages": false, "use_guidance": true }, "logs": "2022-07-26 11:06:22 INFO [Generating First Frame with CogView2]Raw text: 一只快乐的狗 高清摄影\n2022-07-26 11:07:01 INFO [First Frame]Taken time 39.43\n\n2022-07-26 11:07:01 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只快乐的狗 视频\n2022-07-26 11:12:32 INFO CogVideo Stage1 completed. Taken time 370.10\n\n2022-07-26 11:12:43 INFO only stage 1 selected, exiting", "metrics": { "predict_time": 387.6942, "total_time": 912.277541 }, "output": [ "https://replicate.delivery/mgxm/da84716d-fe0c-44c7-815b-d46628de743f/0.gif" ], "started_at": "2022-07-26T11:06:17.169762Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/a2islsv5brfaddm3bchgsc2ajy", "cancel": "https://api.replicate.com/v1/predictions/a2islsv5brfaddm3bchgsc2ajy/cancel" }, "version": "45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61" }
Generated in2022-07-26 11:06:22 INFO [Generating First Frame with CogView2]Raw text: 一只快乐的狗 高清摄影 2022-07-26 11:07:01 INFO [First Frame]Taken time 39.43 2022-07-26 11:07:01 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只快乐的狗 视频 2022-07-26 11:12:32 INFO CogVideo Stage1 completed. Taken time 370.10 2022-07-26 11:12:43 INFO only stage 1 selected, exiting
Prediction
nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61ID3sxvjb6wazhrjmgtzuh4jovt54StatusSucceededSourceWebHardware–Total durationCreatedInput
- seed
- "56072"
- prompt
- a happy dog
- translate
- both_stages
- use_guidance
{ "seed": "56072", "prompt": "a happy dog", "translate": true, "both_stages": true, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", { input: { seed: "56072", prompt: "a happy dog", translate: true, both_stages: true, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", input={ "seed": "56072", "prompt": "a happy dog", "translate": True, "both_stages": True, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", "input": { "seed": "56072", "prompt": "a happy dog", "translate": true, "both_stages": true, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-26T12:23:42.563933Z", "created_at": "2022-07-26T11:24:42.898026Z", "data_removed": false, "error": null, "id": "3sxvjb6wazhrjmgtzuh4jovt54", "input": { "seed": "56072", "prompt": "a happy dog", "translate": true, "both_stages": true, "use_guidance": true }, "logs": "2022-07-26 12:10:49 INFO [Generating First Frame with CogView2]Raw text: 一只快乐的狗 高清摄影\n2022-07-26 12:11:29 INFO [First Frame]Taken time 39.93\n\n2022-07-26 12:11:29 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只快乐的狗 视频\n2022-07-26 12:17:08 INFO CogVideo Stage1 completed. Taken time 378.65\n\n2022-07-26 12:17:23 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一只快乐的狗\n2022-07-26 12:19:05 INFO Duration 2.00, Taken time 101.66\n\n2022-07-26 12:19:05 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 一只快乐的狗", "metrics": { "predict_time": 777.441494, "total_time": 3539.665907 }, "output": [ "https://replicate.delivery/mgxm/50f59b75-dab2-4305-a754-dd843e145501/0.gif", "https://replicate.delivery/mgxm/e9bf5c64-a6e3-4ff2-8486-e9845509705f/0.gif" ], "started_at": "2022-07-26T12:10:45.122439Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3sxvjb6wazhrjmgtzuh4jovt54", "cancel": "https://api.replicate.com/v1/predictions/3sxvjb6wazhrjmgtzuh4jovt54/cancel" }, "version": "45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61" }
Generated in2022-07-26 12:10:49 INFO [Generating First Frame with CogView2]Raw text: 一只快乐的狗 高清摄影 2022-07-26 12:11:29 INFO [First Frame]Taken time 39.93 2022-07-26 12:11:29 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只快乐的狗 视频 2022-07-26 12:17:08 INFO CogVideo Stage1 completed. Taken time 378.65 2022-07-26 12:17:23 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一只快乐的狗 2022-07-26 12:19:05 INFO Duration 2.00, Taken time 101.66 2022-07-26 12:19:05 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 一只快乐的狗
Prediction
nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61Input
- seed
- "-1"
- prompt
- a fat cat meowing
- translate
- both_stages
- use_guidance
{ "seed": "-1", "prompt": "a fat cat meowing", "translate": true, "both_stages": true, "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", { input: { seed: "-1", prompt: "a fat cat meowing", translate: true, both_stages: true, use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", input={ "seed": "-1", "prompt": "a fat cat meowing", "translate": True, "both_stages": True, "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61", "input": { "seed": "-1", "prompt": "a fat cat meowing", "translate": true, "both_stages": true, "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-26T20:43:15.348909Z", "created_at": "2022-07-26T20:22:53.457789Z", "data_removed": false, "error": null, "id": "pu62pyy5rndhvdrdhgv4kmo4ty", "input": { "seed": "-1", "prompt": "a fat cat meowing", "translate": true, "both_stages": true, "use_guidance": true }, "logs": "2022-07-26 20:30:39 INFO [Generating First Frame with CogView2]Raw text: 一只肥猫喵喵叫 高清摄影\n2022-07-26 20:31:18 INFO [First Frame]Taken time 39.10\n\n2022-07-26 20:31:18 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只肥猫喵喵叫 视频\n2022-07-26 20:36:48 INFO CogVideo Stage1 completed. Taken time 368.24\n\n2022-07-26 20:37:03 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一只肥猫喵喵叫\n2022-07-26 20:38:41 INFO Duration 2.00, Taken time 98.08\n\n2022-07-26 20:38:41 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 一只肥猫喵喵叫", "metrics": { "predict_time": 761.387758, "total_time": 1221.89112 }, "output": [ "https://replicate.delivery/mgxm/59d7d4d6-800f-481a-8024-81fa90e741ae/0.gif", "https://replicate.delivery/mgxm/636fa896-8ae2-4558-a624-c953971c4132/0.gif" ], "started_at": "2022-07-26T20:30:33.961151Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/pu62pyy5rndhvdrdhgv4kmo4ty", "cancel": "https://api.replicate.com/v1/predictions/pu62pyy5rndhvdrdhgv4kmo4ty/cancel" }, "version": "45d8cfcae754b6af7581083ac8e2011b0f98e137faa9775a221f8f6747f33b61" }
Generated in2022-07-26 20:30:39 INFO [Generating First Frame with CogView2]Raw text: 一只肥猫喵喵叫 高清摄影 2022-07-26 20:31:18 INFO [First Frame]Taken time 39.10 2022-07-26 20:31:18 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只肥猫喵喵叫 视频 2022-07-26 20:36:48 INFO CogVideo Stage1 completed. Taken time 368.24 2022-07-26 20:37:03 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一只肥猫喵喵叫 2022-07-26 20:38:41 INFO Duration 2.00, Taken time 98.08 2022-07-26 20:38:41 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 一只肥猫喵喵叫
Prediction
nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8dInput
{ "seed": "1234", "prompt": "vaporwave princess", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/7da0d0fe-2c18-4039-b01b-ae1523b2f016/1658847957.png", "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", { input: { seed: "1234", prompt: "vaporwave princess", translate: true, both_stages: true, image_prompt: "https://replicate.delivery/mgxm/7da0d0fe-2c18-4039-b01b-ae1523b2f016/1658847957.png", use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", input={ "seed": "1234", "prompt": "vaporwave princess", "translate": True, "both_stages": True, "image_prompt": "https://replicate.delivery/mgxm/7da0d0fe-2c18-4039-b01b-ae1523b2f016/1658847957.png", "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", "input": { "seed": "1234", "prompt": "vaporwave princess", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/7da0d0fe-2c18-4039-b01b-ae1523b2f016/1658847957.png", "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-27T07:56:02.781320Z", "created_at": "2022-07-27T07:31:34.054353Z", "data_removed": false, "error": null, "id": "bbwbu2y7ojcvtckfhusxan5dhu", "input": { "seed": "1234", "prompt": "vaporwave princess", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/7da0d0fe-2c18-4039-b01b-ae1523b2f016/1658847957.png", "use_guidance": true }, "logs": "2022-07-27 07:44:02 INFO [Generating First Frame with CogView2]Raw text: 蒸汽波公主 高清摄影\n2022-07-27 07:44:05 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 蒸汽波公主 视频\n2022-07-27 07:49:31 INFO CogVideo Stage1 completed. Taken time 328.92\n\n2022-07-27 07:49:46 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 蒸汽波公主\n2022-07-27 07:51:23 INFO Duration 2.00, Taken time 97.55\n\n2022-07-27 07:51:23 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 蒸汽波公主", "metrics": { "predict_time": 725.520006, "total_time": 1468.726967 }, "output": [ "https://replicate.delivery/mgxm/1d207f4e-e144-4e24-98ba-99fc3d8600c9/0.gif", "https://replicate.delivery/mgxm/8f8e3821-8dde-43ac-ac79-1841a4ba57e6/0.gif" ], "started_at": "2022-07-27T07:43:57.261314Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bbwbu2y7ojcvtckfhusxan5dhu", "cancel": "https://api.replicate.com/v1/predictions/bbwbu2y7ojcvtckfhusxan5dhu/cancel" }, "version": "00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d" }
Generated in2022-07-27 07:44:02 INFO [Generating First Frame with CogView2]Raw text: 蒸汽波公主 高清摄影 2022-07-27 07:44:05 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 蒸汽波公主 视频 2022-07-27 07:49:31 INFO CogVideo Stage1 completed. Taken time 328.92 2022-07-27 07:49:46 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 蒸汽波公主 2022-07-27 07:51:23 INFO Duration 2.00, Taken time 97.55 2022-07-27 07:51:23 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 蒸汽波公主
Prediction
nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8dIDft2zlnj5dvflvof3cok5cfigauStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "seed": "1234", "prompt": "a black cat", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/5ef5bdf5-711d-4e8f-b324-d923447ed331/1658847957.png", "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", { input: { seed: "1234", prompt: "a black cat", translate: true, both_stages: true, image_prompt: "https://replicate.delivery/mgxm/5ef5bdf5-711d-4e8f-b324-d923447ed331/1658847957.png", use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", input={ "seed": "1234", "prompt": "a black cat", "translate": True, "both_stages": True, "image_prompt": "https://replicate.delivery/mgxm/5ef5bdf5-711d-4e8f-b324-d923447ed331/1658847957.png", "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", "input": { "seed": "1234", "prompt": "a black cat", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/5ef5bdf5-711d-4e8f-b324-d923447ed331/1658847957.png", "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-27T08:30:35.325013Z", "created_at": "2022-07-27T08:16:28.381273Z", "data_removed": false, "error": null, "id": "ft2zlnj5dvflvof3cok5cfigau", "input": { "seed": "1234", "prompt": "a black cat", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/5ef5bdf5-711d-4e8f-b324-d923447ed331/1658847957.png", "use_guidance": true }, "logs": "2022-07-27 08:18:11 INFO [Generating First Frame with CogView2]Raw text: 一只黑猫 高清摄影\n2022-07-27 08:18:14 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一只黑猫 视频\n2022-07-27 08:23:54 INFO CogVideo Stage1 completed. Taken time 342.84\n\n2022-07-27 08:24:09 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一只黑猫\n2022-07-27 08:25:52 INFO Duration 2.00, Taken time 102.42\n\n2022-07-27 08:25:52 INFO [Stage2: Generating Frames, Frame Rate 4]\nraw text: 一只黑猫", "metrics": { "predict_time": 749.423742, "total_time": 846.94374 }, "output": [ "https://replicate.delivery/mgxm/66fe681c-cb8d-4771-ace2-9f5c99e13b33/0.gif", "https://replicate.delivery/mgxm/1db9f736-0d55-431f-a60c-4f7559f7c53d/0.gif" ], "started_at": "2022-07-27T08:18:05.901271Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ft2zlnj5dvflvof3cok5cfigau", "cancel": "https://api.replicate.com/v1/predictions/ft2zlnj5dvflvof3cok5cfigau/cancel" }, "version": "00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d" }
Generated in2022-07-27 08:18:11 INFO [Generating First Frame with CogView2]Raw text: 一只黑猫 高清摄影 2022-07-27 08:18:14 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一只黑猫 视频 2022-07-27 08:23:54 INFO CogVideo Stage1 completed. Taken time 342.84 2022-07-27 08:24:09 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一只黑猫 2022-07-27 08:25:52 INFO Duration 2.00, Taken time 102.42 2022-07-27 08:25:52 INFO [Stage2: Generating Frames, Frame Rate 4] raw text: 一只黑猫
Prediction
nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8dInput
- seed
- "-1"
- prompt
- A walking round mech ball in the surface of mars
- translate
- both_stages
- use_guidance
{ "seed": "-1", "prompt": "A walking round mech ball in the surface of mars", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/91cdb09e-9e62-4d81-9887-7df402a8b0c6/output_0000_-_2022-07-27T185448.681.png", "use_guidance": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", { input: { seed: "-1", prompt: "A walking round mech ball in the surface of mars", translate: true, both_stages: true, image_prompt: "https://replicate.delivery/mgxm/91cdb09e-9e62-4d81-9887-7df402a8b0c6/output_0000_-_2022-07-27T185448.681.png", use_guidance: true } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", input={ "seed": "-1", "prompt": "A walking round mech ball in the surface of mars", "translate": True, "both_stages": True, "image_prompt": "https://replicate.delivery/mgxm/91cdb09e-9e62-4d81-9887-7df402a8b0c6/output_0000_-_2022-07-27T185448.681.png", "use_guidance": True } ) # The nightmareai/cogvideo model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/nightmareai/cogvideo/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run nightmareai/cogvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "nightmareai/cogvideo:00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d", "input": { "seed": "-1", "prompt": "A walking round mech ball in the surface of mars", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/91cdb09e-9e62-4d81-9887-7df402a8b0c6/output_0000_-_2022-07-27T185448.681.png", "use_guidance": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-07-28T03:51:25.210357Z", "created_at": "2022-07-28T03:24:40.539131Z", "data_removed": false, "error": null, "id": "vj22ul672vcfnlel3zfi4qodem", "input": { "seed": "-1", "prompt": "A walking round mech ball in the surface of mars", "translate": true, "both_stages": true, "image_prompt": "https://replicate.delivery/mgxm/91cdb09e-9e62-4d81-9887-7df402a8b0c6/output_0000_-_2022-07-27T185448.681.png", "use_guidance": true }, "logs": "2022-07-28 03:39:20 INFO [Generating First Frame with CogView2]Raw text: 一个在火星表面行走的圆形机械球 高清摄影\n2022-07-28 03:39:20 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0]\nraw text: 一个在火星表面行走的圆形机械球 视频\n2022-07-28 03:44:54 INFO CogVideo Stage1 completed. Taken time 333.62\n\n2022-07-28 03:45:09 INFO [Stage2: Generating Frames, Frame Rate 2]\nraw text: 一个在火星表面行走的圆形机械球", "metrics": { "predict_time": 730.150126, "total_time": 1604.671226 }, "output": [ "https://replicate.delivery/mgxm/1f4136e9-56df-4015-ae29-33c97667e4f9/0.gif", "https://replicate.delivery/mgxm/6981dd3d-848c-41dc-8b0f-0c244643c71b/0.gif" ], "started_at": "2022-07-28T03:39:15.060231Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vj22ul672vcfnlel3zfi4qodem", "cancel": "https://api.replicate.com/v1/predictions/vj22ul672vcfnlel3zfi4qodem/cancel" }, "version": "00b1c7885c5f1d44b51bcb56c378abc8f141eeacf94c1e64998606515fe63a8d" }
Generated in2022-07-28 03:39:20 INFO [Generating First Frame with CogView2]Raw text: 一个在火星表面行走的圆形机械球 高清摄影 2022-07-28 03:39:20 INFO [Stage1: Generating Subsequent Frames, Frame Rate 1.0] raw text: 一个在火星表面行走的圆形机械球 视频 2022-07-28 03:44:54 INFO CogVideo Stage1 completed. Taken time 333.62 2022-07-28 03:45:09 INFO [Stage2: Generating Frames, Frame Rate 2] raw text: 一个在火星表面行走的圆形机械球
Want to make some of these yourself?
Run this model