You're looking at a specific version of this model. Jump to the model overview.
aodianyun /easyanimate-v4:f8de59cc
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run aodianyun/easyanimate-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"aodianyun/easyanimate-v4:f8de59ccd521299a58632874b7c6566c23b7a40cd417ccadc663e04223435887",
{
input: {
seed: 43,
width: 640,
height: 360,
prompt: "一艘帆船在海面上航行。视频质量很高,视野很清晰。最佳品质、杰作、高分辨率、超精细、梦幻般。",
video_length: 72,
guidance_scale: 7,
negative_prompt: "视频质量不高,分辨率低,不清晰。运动轨迹奇怪,构图差,视频变形,重复丑陋,身体结构奇怪,脖子又长又奇怪,牙齿不好,眼睛不好,四肢不好,手不好,相机旋转,相机模糊,相机抖动。变形、模糊、丑陋、失真。",
low_gpu_memory_mode: false,
num_inference_steps: 25
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run aodianyun/easyanimate-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"aodianyun/easyanimate-v4:f8de59ccd521299a58632874b7c6566c23b7a40cd417ccadc663e04223435887",
input={
"seed": 43,
"width": 640,
"height": 360,
"prompt": "一艘帆船在海面上航行。视频质量很高,视野很清晰。最佳品质、杰作、高分辨率、超精细、梦幻般。",
"video_length": 72,
"guidance_scale": 7,
"negative_prompt": "视频质量不高,分辨率低,不清晰。运动轨迹奇怪,构图差,视频变形,重复丑陋,身体结构奇怪,脖子又长又奇怪,牙齿不好,眼睛不好,四肢不好,手不好,相机旋转,相机模糊,相机抖动。变形、模糊、丑陋、失真。",
"low_gpu_memory_mode": False,
"num_inference_steps": 25
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run aodianyun/easyanimate-v4 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": "f8de59ccd521299a58632874b7c6566c23b7a40cd417ccadc663e04223435887",
"input": {
"seed": 43,
"width": 640,
"height": 360,
"prompt": "一艘帆船在海面上航行。视频质量很高,视野很清晰。最佳品质、杰作、高分辨率、超精细、梦幻般。",
"video_length": 72,
"guidance_scale": 7,
"negative_prompt": "视频质量不高,分辨率低,不清晰。运动轨迹奇怪,构图差,视频变形,重复丑陋,身体结构奇怪,脖子又长又奇怪,牙齿不好,眼睛不好,四肢不好,手不好,相机旋转,相机模糊,相机抖动。变形、模糊、丑陋、失真。",
"low_gpu_memory_mode": false,
"num_inference_steps": 25
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run aodianyun/easyanimate-v4 using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/aodianyun/easyanimate-v4@sha256:f8de59ccd521299a58632874b7c6566c23b7a40cd417ccadc663e04223435887 \
-i 'seed=43' \
-i 'width=640' \
-i 'height=360' \
-i 'prompt="一艘帆船在海面上航行。视频质量很高,视野很清晰。最佳品质、杰作、高分辨率、超精细、梦幻般。"' \
-i 'video_length=72' \
-i 'guidance_scale=7' \
-i 'negative_prompt="视频质量不高,分辨率低,不清晰。运动轨迹奇怪,构图差,视频变形,重复丑陋,身体结构奇怪,脖子又长又奇怪,牙齿不好,眼睛不好,四肢不好,手不好,相机旋转,相机模糊,相机抖动。变形、模糊、丑陋、失真。"' \
-i 'low_gpu_memory_mode=false' \
-i 'num_inference_steps=25'
To learn more, take a look at the Cog documentation.
Pull and run aodianyun/easyanimate-v4 using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/aodianyun/easyanimate-v4@sha256:f8de59ccd521299a58632874b7c6566c23b7a40cd417ccadc663e04223435887
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "seed": 43, "width": 640, "height": 360, "prompt": "一艘帆船在海面上航行。视频质量很高,视野很清晰。最佳品质、杰作、高分辨率、超精细、梦幻般。", "video_length": 72, "guidance_scale": 7, "negative_prompt": "视频质量不高,分辨率低,不清晰。运动轨迹奇怪,构图差,视频变形,重复丑陋,身体结构奇怪,脖子又长又奇怪,牙齿不好,眼睛不好,四肢不好,手不好,相机旋转,相机模糊,相机抖动。变形、模糊、丑陋、失真。", "low_gpu_memory_mode": false, "num_inference_steps": 25 } }' \ http://localhost:5000/predictions
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.