
🇨🇳 Chinese

🇨🇳 Chinese
- 系统内部接口
- OpenAI
- Anthropic
- Suno(音乐)
- 场景一:续写音乐并获取完整音乐
- 场景二:Cover 音乐:音乐翻版\修改风格
- 场景三:Replace Section:替换片段
- 场景四:Persona:歌手风格
- 场景五:stems:声曲分离(仅限chirp-auk)
- 场景六:Timing:歌词、音频时间线(仅限chirp-auk)
- 场景七:wav:获取 wav 格式文件
- 场景八:mp4:生成 mp4 mv 视频(仅限chirp-auk)
- 场景九:all-stems:全轨声曲分离(仅限chirp-auk)
- 场景十:高价参数
- 生成音乐
- 上传音乐
- 歌曲拼接
- 新建 Persona
- 声曲分离
- Timing:歌词、音频时间线
- 获取 wav 格式文件
- 生成 mp4 mv 视频
- 生成歌词
- 查询单个任务
- 批量查询任务
- 批量查询歌曲
- Udio(音乐)
- Midjourney API文档(生图)
- Flux(生图)
- Recraft(生图)
- Ideogram(生图)
- Luma(视频)
- Runway(视频)
- PIKA(视频)
- 可灵API(官方接口)
- Replicate 通用接口
- MiniMax海螺
- 火山方舟
- Pixverse
- Viggle
- 即梦AI
使用官方模型创建任务
开发中
POST
/replicate/v1/models/{model}/predictions
最后修改时间:2025-07-04 09:14:51
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
model
string
必需
示例值:
google/imagen-4
Header 参数
Authorization
string
可选
默认值:
{{YOUR_API_KEY}}
Body 参数application/json
input
object
必需
prompt
string
必需
示例
{
"input": {
"prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the nostalgic warmth of a late 90s indie film. The focus is a young woman with brightly dyed pink-gold hair and freckled skin, looking directly and intently into the camera lens with a hopeful yet slightly uncertain smile, she is slightly off-center. She wears an oversized, vintage band t-shirt that says \"Replicate\" (slightly worn) over a long-sleeved striped top and simple silver stud earrings. The lighting is soft, golden hour sunlight streaming through a slightly dusty window, creating lens flare and illuminating dust motes in the air. The background shows a blurred, cluttered bedroom with posters on the wall and fairy lights, rendered with a shallow depth of field. Natural film grain, a warm, slightly muted color palette, and sharp focus on her expressive eyes enhance the intimate, authentic feel",
"aspect_ratio": "16:9",
"safety_filter_level": "block_medium_and_above"
}
}
示例代码
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 '/replicate/v1/models/google/imagen-4/predictions' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the nostalgic warmth of a late 90s indie film. The focus is a young woman with brightly dyed pink-gold hair and freckled skin, looking directly and intently into the camera lens with a hopeful yet slightly uncertain smile, she is slightly off-center. She wears an oversized, vintage band t-shirt that says \"Replicate\" (slightly worn) over a long-sleeved striped top and simple silver stud earrings. The lighting is soft, golden hour sunlight streaming through a slightly dusty window, creating lens flare and illuminating dust motes in the air. The background shows a blurred, cluttered bedroom with posters on the wall and fairy lights, rendered with a shallow depth of field. Natural film grain, a warm, slightly muted color palette, and sharp focus on her expressive eyes enhance the intimate, authentic feel",
"aspect_ratio": "16:9",
"safety_filter_level": "block_medium_and_above"
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"id": "kx5y7rhfvdrmc0cqtjh8agzmwm",
"model": "google/imagen-4",
"version": "hidden",
"input": {
"aspect_ratio": "16:9",
"prompt": "The photo: Create a cinematic, photorealistic medium shot capturing the nostalgic warmth of a late 90s indie film. The focus is a young woman with brightly dyed pink-gold hair and freckled skin, looking directly and intently into the camera lens with a hopeful yet slightly uncertain smile, she is slightly off-center. She wears an oversized, vintage band t-shirt that says \"Replicate\" (slightly worn) over a long-sleeved striped top and simple silver stud earrings. The lighting is soft, golden hour sunlight streaming through a slightly dusty window, creating lens flare and illuminating dust motes in the air. The background shows a blurred, cluttered bedroom with posters on the wall and fairy lights, rendered with a shallow depth of field. Natural film grain, a warm, slightly muted color palette, and sharp focus on her expressive eyes enhance the intimate, authentic feel",
"safety_filter_level": "block_medium_and_above"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-04T08:51:28.347Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/kx5y7rhfvdrmc0cqtjh8agzmwm/cancel",
"get": "https://api.replicate.com/v1/predictions/kx5y7rhfvdrmc0cqtjh8agzmwm",
"stream": "https://stream.replicate.com/v1/files/bcwr-jvfz5vfosr3ua26zimp7z4wkjak4l6cgnlicp24hik26wteilaka",
"web": "https://replicate.com/p/kx5y7rhfvdrmc0cqtjh8agzmwm"
}
}
修改于 2025-07-04 09:14:51