- 指南
- 获取 Base URL 和 API Key
- 通知设置-WebHook参数介绍
- 列出模型
- 聊天(Chat)
- RAG(嵌入、重排序
- 视频模型
- 数字人
- 绘图模型
- 生图模型简介
- OpenAI Dall-e 格式
- OpenAI 聊天格式
- Mid journey 文生图
- Flux 文生图
- Ideogram(官方格式
- recraft 官方格式
- 快手可灵(官方格式)
- SeedEdit(图片编辑
- Replicate
- 接入教程
- 获取任务进度(predictions (免费GET
- 创建任务-通过模型version(predictions)POST
- 创建任务-通过url路径POST
- 创建任务-stability-ai/stable-diffusionPOST
- 创建任务-stability-ai/sdxlPOST
- 创建任务-stability-ai/stable-diffusion-inpaintingPOST
- 创建任务-stability-ai/stable-diffusion-img2imgPOST
- 创建任务-lucataco/flux-schnell-loraPOST
- 创建任务-lucataco/flux-dev-loraPOST
- 创建任务-andreasjansson/stable-diffusion-animationPOST
- 创建任务-lucataco/animate-diffPOST
- 创建任务-sujaykhandekar/object-removalPOST
- 创建任务-cjwbw/rembgPOST
- 创建任务-black-forest-labs/flux-1.1-proPOST
- 创建任务-black-forest-labs/flux-1.1-pro-ultraPOST
- 创建任务-black-forest-labs/flux-devPOST
- 创建任务-black-forest-labs/flux-proPOST
- 创建任务-black-forest-labs/flux-schnellPOST
- 创建任务-minimax/video-01-livePOST
- 创建任务-minimax/video-01POST
- 创建任务-recraft-ai/recraft-v3POST
- 创建任务-recraft-ai/recraft-v3-svgPOST
- 创建任务-ideogram-ai/ideogram-v2-turboPOST
- 豆包智能绘图
- 音频接口
- 文件上传(Files)
- PPT接口
- 帮助中心
- 平台API
- 废弃、未开放
创建任务-andreasjansson/stable-diffusion-animation
POST
{{BASE_URL}}/replicate/v1/predictions
最后修改时间:2025-04-26 03:05:01
通过在两个提示之间插值来制作 Stable Diffusion 动画
请求参数
Query 参数
string
可选
Header 参数
Authorization
string
必需
示例值:
Bearer $API_TOKEN
Content-Type
string
必需
示例值:
application/json
string
可选
Body 参数application/json
version
string
必需
input
object
必需
seed
integer
必需
image
string
必需
steps
integer
必需
prompt
string
必需
cfg_scale
integer
必需
scheduler
string
必需
sampler_name
string
必需
negative_prompt
string
必需
denoising_strength
number
必需
outpaint_direction
string
必需
overlay_original_img
boolean
必需
示例
{
"version": "ca1f5e306e5721e19c473e0d094e6603f0456fe759c10715fcd6c1b79242d4a5",
"input": {
"width": 512,
"height": 512,
"prompt_end": "tall rectangular black monolith, a white room in the future with a bed, victorian details and a tall black monolith, a detailed matte painting by Wes Anderson, behance, light and space, reimagined by industrial light and magic, matte painting, criterion collection",
"prompt_start": "tall rectangular black monolith, monkeys in the desert looking at a large tall monolith, a detailed matte painting by Wes Anderson, behance, light and space, reimagined by industrial light and magic, matte painting, criterion collection",
"gif_ping_pong": true,
"output_format": "mp4",
"guidance_scale": 7.5,
"prompt_strength": 0.9,
"film_interpolation": true,
"intermediate_output": false,
"num_inference_steps": 50,
"num_animation_frames": 25,
"gif_frames_per_second": 20,
"num_interpolation_steps": 5
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/replicate/v1/predictions' \
--header 'Authorization: Bearer $API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"version": "ca1f5e306e5721e19c473e0d094e6603f0456fe759c10715fcd6c1b79242d4a5",
"input": {
"width": 512,
"height": 512,
"prompt_end": "tall rectangular black monolith, a white room in the future with a bed, victorian details and a tall black monolith, a detailed matte painting by Wes Anderson, behance, light and space, reimagined by industrial light and magic, matte painting, criterion collection",
"prompt_start": "tall rectangular black monolith, monkeys in the desert looking at a large tall monolith, a detailed matte painting by Wes Anderson, behance, light and space, reimagined by industrial light and magic, matte painting, criterion collection",
"gif_ping_pong": true,
"output_format": "mp4",
"guidance_scale": 7.5,
"prompt_strength": 0.9,
"film_interpolation": true,
"intermediate_output": false,
"num_inference_steps": 50,
"num_animation_frames": 25,
"gif_frames_per_second": 20,
"num_interpolation_steps": 5
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-04-26 03:05:01