Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
deforum-art /deforum-stable-diffusion:652b0fed
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run deforum-art/deforum-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"deforum-art/deforum-stable-diffusion:652b0fed80b8c0845b20de06f877115f56b70b2136d02db95f163eff4b95e35d",
{
input: {
fov: 40,
fps: 15,
zoom: "0:(1.04)",
angle: "0:(0)",
width: 512,
border: "replicate",
height: 512,
sampler: "euler_ancestral",
use_init: false,
use_mask: false,
clip_name: "ViT-L/14",
far_plane: 10000,
max_frames: 200,
near_plane: 200,
invert_mask: false,
midas_weight: 0.3,
padding_mode: "border",
rotation_3d_x: "0:(0)",
rotation_3d_y: "0:(0)",
rotation_3d_z: "0:(0)",
sampling_mode: "bicubic",
translation_x: "0:(10*sin(2*3.14*t/10))",
translation_y: "0:(0)",
translation_z: "0:(10)",
animation_mode: "2D",
guidance_scale: 7,
noise_schedule: "0: (0.02)",
sigma_schedule: "0: (1.0)",
use_mask_video: false,
amount_schedule: "0: (0.2)",
color_coherence: "Match Frame 0 LAB",
kernel_schedule: "0: (5)",
model_checkpoint: "Protogen_V2.2.ckpt",
animation_prompts: "0: a beautiful apple, trending on Artstation | 50: a beautiful banana, trending on Artstation | 100: a beautiful coconut, trending on Artstation | 150: a beautiful durian, trending on Artstation",
contrast_schedule: "0: (1.0)",
diffusion_cadence: "1",
extract_nth_frame: 1,
resume_timestring: "",
strength_schedule: "0: (0.65)",
use_depth_warping: true,
threshold_schedule: "0: (0.0)",
flip_2d_perspective: false,
hybrid_video_motion: "None",
num_inference_steps: 50,
perspective_flip_fv: "0:(53)",
interpolate_x_frames: 4,
perspective_flip_phi: "0:(t%15)",
hybrid_video_composite: false,
interpolate_key_frames: false,
perspective_flip_gamma: "0:(0)",
perspective_flip_theta: "0:(0)",
resume_from_timestring: false,
hybrid_video_flow_method: "Farneback",
overwrite_extracted_frames: true,
hybrid_video_comp_mask_type: "None",
hybrid_video_comp_mask_inverse: false,
hybrid_video_comp_mask_equalize: "None",
hybrid_video_comp_alpha_schedule: "0:(1)",
hybrid_video_generate_inputframes: false,
hybrid_video_comp_save_extra_frames: false,
hybrid_video_use_video_as_mse_image: false,
color_coherence_video_every_N_frames: 1,
hybrid_video_comp_mask_auto_contrast: false,
hybrid_video_comp_mask_contrast_schedule: "0:(1)",
hybrid_video_use_first_frame_as_init_image: true,
hybrid_video_comp_mask_blend_alpha_schedule: "0:(0.5)",
hybrid_video_comp_mask_auto_contrast_cutoff_low_schedule: "0:(0)",
hybrid_video_comp_mask_auto_contrast_cutoff_high_schedule: "0:(100)"
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run deforum-art/deforum-stable-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"deforum-art/deforum-stable-diffusion:652b0fed80b8c0845b20de06f877115f56b70b2136d02db95f163eff4b95e35d",
input={
"fov": 40,
"fps": 15,
"zoom": "0:(1.04)",
"angle": "0:(0)",
"width": 512,
"border": "replicate",
"height": 512,
"sampler": "euler_ancestral",
"use_init": False,
"use_mask": False,
"clip_name": "ViT-L/14",
"far_plane": 10000,
"max_frames": 200,
"near_plane": 200,
"invert_mask": False,
"midas_weight": 0.3,
"padding_mode": "border",
"rotation_3d_x": "0:(0)",
"rotation_3d_y": "0:(0)",
"rotation_3d_z": "0:(0)",
"sampling_mode": "bicubic",
"translation_x": "0:(10*sin(2*3.14*t/10))",
"translation_y": "0:(0)",
"translation_z": "0:(10)",
"animation_mode": "2D",
"guidance_scale": 7,
"noise_schedule": "0: (0.02)",
"sigma_schedule": "0: (1.0)",
"use_mask_video": False,
"amount_schedule": "0: (0.2)",
"color_coherence": "Match Frame 0 LAB",
"kernel_schedule": "0: (5)",
"model_checkpoint": "Protogen_V2.2.ckpt",
"animation_prompts": "0: a beautiful apple, trending on Artstation | 50: a beautiful banana, trending on Artstation | 100: a beautiful coconut, trending on Artstation | 150: a beautiful durian, trending on Artstation",
"contrast_schedule": "0: (1.0)",
"diffusion_cadence": "1",
"extract_nth_frame": 1,
"resume_timestring": "",
"strength_schedule": "0: (0.65)",
"use_depth_warping": True,
"threshold_schedule": "0: (0.0)",
"flip_2d_perspective": False,
"hybrid_video_motion": "None",
"num_inference_steps": 50,
"perspective_flip_fv": "0:(53)",
"interpolate_x_frames": 4,
"perspective_flip_phi": "0:(t%15)",
"hybrid_video_composite": False,
"interpolate_key_frames": False,
"perspective_flip_gamma": "0:(0)",
"perspective_flip_theta": "0:(0)",
"resume_from_timestring": False,
"hybrid_video_flow_method": "Farneback",
"overwrite_extracted_frames": True,
"hybrid_video_comp_mask_type": "None",
"hybrid_video_comp_mask_inverse": False,
"hybrid_video_comp_mask_equalize": "None",
"hybrid_video_comp_alpha_schedule": "0:(1)",
"hybrid_video_generate_inputframes": False,
"hybrid_video_comp_save_extra_frames": False,
"hybrid_video_use_video_as_mse_image": False,
"color_coherence_video_every_N_frames": 1,
"hybrid_video_comp_mask_auto_contrast": False,
"hybrid_video_comp_mask_contrast_schedule": "0:(1)",
"hybrid_video_use_first_frame_as_init_image": True,
"hybrid_video_comp_mask_blend_alpha_schedule": "0:(0.5)",
"hybrid_video_comp_mask_auto_contrast_cutoff_low_schedule": "0:(0)",
"hybrid_video_comp_mask_auto_contrast_cutoff_high_schedule": "0:(100)"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run deforum-art/deforum-stable-diffusion 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": "deforum-art/deforum-stable-diffusion:652b0fed80b8c0845b20de06f877115f56b70b2136d02db95f163eff4b95e35d",
"input": {
"fov": 40,
"fps": 15,
"zoom": "0:(1.04)",
"angle": "0:(0)",
"width": 512,
"border": "replicate",
"height": 512,
"sampler": "euler_ancestral",
"use_init": false,
"use_mask": false,
"clip_name": "ViT-L/14",
"far_plane": 10000,
"max_frames": 200,
"near_plane": 200,
"invert_mask": false,
"midas_weight": 0.3,
"padding_mode": "border",
"rotation_3d_x": "0:(0)",
"rotation_3d_y": "0:(0)",
"rotation_3d_z": "0:(0)",
"sampling_mode": "bicubic",
"translation_x": "0:(10*sin(2*3.14*t/10))",
"translation_y": "0:(0)",
"translation_z": "0:(10)",
"animation_mode": "2D",
"guidance_scale": 7,
"noise_schedule": "0: (0.02)",
"sigma_schedule": "0: (1.0)",
"use_mask_video": false,
"amount_schedule": "0: (0.2)",
"color_coherence": "Match Frame 0 LAB",
"kernel_schedule": "0: (5)",
"model_checkpoint": "Protogen_V2.2.ckpt",
"animation_prompts": "0: a beautiful apple, trending on Artstation | 50: a beautiful banana, trending on Artstation | 100: a beautiful coconut, trending on Artstation | 150: a beautiful durian, trending on Artstation",
"contrast_schedule": "0: (1.0)",
"diffusion_cadence": "1",
"extract_nth_frame": 1,
"resume_timestring": "",
"strength_schedule": "0: (0.65)",
"use_depth_warping": true,
"threshold_schedule": "0: (0.0)",
"flip_2d_perspective": false,
"hybrid_video_motion": "None",
"num_inference_steps": 50,
"perspective_flip_fv": "0:(53)",
"interpolate_x_frames": 4,
"perspective_flip_phi": "0:(t%15)",
"hybrid_video_composite": false,
"interpolate_key_frames": false,
"perspective_flip_gamma": "0:(0)",
"perspective_flip_theta": "0:(0)",
"resume_from_timestring": false,
"hybrid_video_flow_method": "Farneback",
"overwrite_extracted_frames": true,
"hybrid_video_comp_mask_type": "None",
"hybrid_video_comp_mask_inverse": false,
"hybrid_video_comp_mask_equalize": "None",
"hybrid_video_comp_alpha_schedule": "0:(1)",
"hybrid_video_generate_inputframes": false,
"hybrid_video_comp_save_extra_frames": false,
"hybrid_video_use_video_as_mse_image": false,
"color_coherence_video_every_N_frames": 1,
"hybrid_video_comp_mask_auto_contrast": false,
"hybrid_video_comp_mask_contrast_schedule": "0:(1)",
"hybrid_video_use_first_frame_as_init_image": true,
"hybrid_video_comp_mask_blend_alpha_schedule": "0:(0.5)",
"hybrid_video_comp_mask_auto_contrast_cutoff_low_schedule": "0:(0)",
"hybrid_video_comp_mask_auto_contrast_cutoff_high_schedule": "0:(100)"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
No output yet! Press "Submit" to start a prediction.