typetext
{
"aspect_ratio": "16:9",
"fast_mode": "Balanced",
"frames": 81,
"lora_strength_clip": 1,
"lora_strength_model": 1,
"negative_prompt": "",
"prompt": "a surreal beast emerging from the ether, dreamcore style",
"resolution": "480p",
"sample_guide_scale": 5,
"sample_shift": 8,
"sample_steps": 30
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_0QP**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run aramintak/dreamcore-wan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"aramintak/dreamcore-wan:0a91c2e70610b95e761f4521f01630bf0426eab74079ff873c5518c24fb35874",
{
input: {
aspect_ratio: "16:9",
fast_mode: "Balanced",
frames: 81,
lora_strength_clip: 1,
lora_strength_model: 1,
negative_prompt: "",
prompt: "a surreal beast emerging from the ether, dreamcore style",
resolution: "480p",
sample_guide_scale: 5,
sample_shift: 8,
sample_steps: 30
}
}
);
// 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.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_0QP**********************************
This is your API token. Keep it to yourself.
import replicate
Run aramintak/dreamcore-wan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"aramintak/dreamcore-wan:0a91c2e70610b95e761f4521f01630bf0426eab74079ff873c5518c24fb35874",
input={
"aspect_ratio": "16:9",
"fast_mode": "Balanced",
"frames": 81,
"lora_strength_clip": 1,
"lora_strength_model": 1,
"negative_prompt": "",
"prompt": "a surreal beast emerging from the ether, dreamcore style",
"resolution": "480p",
"sample_guide_scale": 5,
"sample_shift": 8,
"sample_steps": 30
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_0QP**********************************
This is your API token. Keep it to yourself.
Run aramintak/dreamcore-wan 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": "aramintak/dreamcore-wan:0a91c2e70610b95e761f4521f01630bf0426eab74079ff873c5518c24fb35874",
"input": {
"aspect_ratio": "16:9",
"fast_mode": "Balanced",
"frames": 81,
"lora_strength_clip": 1,
"lora_strength_model": 1,
"negative_prompt": "",
"prompt": "a surreal beast emerging from the ether, dreamcore style",
"resolution": "480p",
"sample_guide_scale": 5,
"sample_shift": 8,
"sample_steps": 30
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "zc2g34rpjnrma0cnk5gbn95jnw",
"model": "aramintak/dreamcore-wan",
"version": "0a91c2e70610b95e761f4521f01630bf0426eab74079ff873c5518c24fb35874",
"input": {
"aspect_ratio": "16:9",
"fast_mode": "Balanced",
"frames": 81,
"lora_strength_clip": 1,
"lora_strength_model": 1,
"negative_prompt": "",
"prompt": "a surreal beast emerging from the ether, dreamcore style",
"resolution": "480p",
"sample_guide_scale": 5,
"sample_shift": 8,
"sample_steps": 30
},
"logs": "Random seed set to: 3413549276\n✅ 14b_6a151b201c0d048f8320d4154ec71b45.safetensors already cached\nChecking inputs\n====================================\nChecking weights\n✅ 14b_6a151b201c0d048f8320d4154ec71b45.safetensors exists in loras directory\n✅ wan2.1_t2v_14B_bf16.safetensors exists in ComfyUI/models/diffusion_models\n✅ umt5_xxl_fp16.safetensors exists in ComfyUI/models/text_encoders\n✅ wan_2.1_vae.safetensors exists in ComfyUI/models/vae\n====================================\nRunning workflow\n[ComfyUI] got prompt\nExecuting node 3, title: KSampler, class type: KSampler\n[ComfyUI]\n[ComfyUI] 0%| | 0/30 [00:00<?, ?it/s]\n[ComfyUI] Resetting TeaCache state\n[ComfyUI]\n[ComfyUI] 3%|▎ | 1/30 [00:07<03:28, 7.21s/it]\n[ComfyUI] 7%|▋ | 2/30 [00:16<04:00, 8.59s/it]\n[ComfyUI] 10%|█ | 3/30 [00:26<04:04, 9.05s/it]\n[ComfyUI] TeaCache: Initialized\n[ComfyUI]\n[ComfyUI] 13%|█▎ | 4/30 [00:38<04:28, 10.32s/it]\n[ComfyUI] 20%|██ | 6/30 [00:48<02:59, 7.49s/it]\n[ComfyUI] 23%|██▎ | 7/30 [00:48<02:05, 5.46s/it]\n[ComfyUI] 27%|██▋ | 8/30 [00:58<02:27, 6.72s/it]\n[ComfyUI] 33%|███▎ | 10/30 [01:08<01:58, 5.95s/it]\n[ComfyUI] 40%|████ | 12/30 [01:18<01:40, 5.58s/it]\n[ComfyUI] 47%|████▋ | 14/30 [01:28<01:26, 5.38s/it]\n[ComfyUI] 53%|█████▎ | 16/30 [01:38<01:13, 5.25s/it]\n[ComfyUI] 60%|██████ | 18/30 [01:48<01:01, 5.17s/it]\n[ComfyUI] 67%|██████▋ | 20/30 [01:58<00:51, 5.11s/it]\n[ComfyUI] 73%|███████▎ | 22/30 [02:08<00:40, 5.07s/it]\n[ComfyUI] 80%|████████ | 24/30 [02:18<00:30, 5.04s/it]\n[ComfyUI] 87%|████████▋ | 26/30 [02:28<00:20, 5.02s/it]\n[ComfyUI] 93%|█████████▎| 28/30 [02:38<00:10, 5.02s/it]\n[ComfyUI] 100%|██████████| 30/30 [02:48<00:00, 5.01s/it]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 50, title: Video Combine 🎥🅥🅗🅢, class type: VHS_VideoCombine\n[ComfyUI] 100%|██████████| 30/30 [02:48<00:00, 5.62s/it]\n[ComfyUI] Prompt executed in 171.10 seconds\noutputs: {'50': {'gifs': [{'filename': 'R8_Wan_00001.mp4', 'subfolder': '', 'type': 'output', 'format': 'video/h264-mp4', 'frame_rate': 16.0, 'workflow': 'R8_Wan_00001.png', 'fullpath': '/tmp/outputs/R8_Wan_00001.mp4'}]}}\n====================================\nR8_Wan_00001.png\nR8_Wan_00001.mp4",
"output": [
"https://replicate.delivery/xezq/MgVu9yqpnxqdEt4pVTf6ZB09kGqUXrjNLPsGn3Kn4KggVYMKA/R8_Wan_00001.mp4"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-03-15T10:36:06.165Z",
"started_at": "2025-03-15T10:36:06.171554Z",
"completed_at": "2025-03-15T10:38:57.45819Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/zc2g34rpjnrma0cnk5gbn95jnw/cancel",
"get": "https://api.replicate.com/v1/predictions/zc2g34rpjnrma0cnk5gbn95jnw",
"stream": "https://stream.replicate.com/v1/files/bcwr-amixvexlabjyhjt4vedzf4rngm4ldnqr32cylohlvubtgwcag6pq",
"web": "https://replicate.com/p/zc2g34rpjnrma0cnk5gbn95jnw"
},
"metrics": {
"predict_time": 171.286636212,
"total_time": 171.29319
}
}