Appearance
模型超市 Replicate
- 2025.01.05 本站已经支持 replicate 有限模型
- 支持
视频
歌曲
画图
对口型
等
价格与计费
- 价格为 replicate 的 2.5 倍,
- 例如:官网 0.1 美刀/次 本站 0.25 人民币/一次 就是 2500 积分/次
- 计费:视频按次、图片按张张
支持的模型
- 如果你在官网发觉有更多好玩的模型,请联系管理员 把模型加入进来
模型 | 价格(美刀) | 说明 |
---|---|---|
black-forest-labs/flux-schnell | 0.003 | 画图 |
black-forest-labs/flux-dev | 0.025 | 画图 |
black-forest-labs/flux-pro | 0.055 | 画图 |
black-forest-labs/flux-1.1-pro | 0.04 | 画图 |
stability-ai/stable-diffusion | 0.0034 | 画图 version |
stability-ai/sdxl | 0.0063 | 画图 version |
stability-ai/stable-diffusion-inpainting | 0.0021 | 画图 version |
stability-ai/stable-diffusion-img2img | 0.0093 | 画图 version |
minimax/video-01 | 0.50 | 视频 |
minimax/video-01-live | 0.50 | 视频 |
lucataco/flux-schnell-lora | 0.0060 | 画图 version |
lucataco/flux-dev-lora | 0.038 | 画图 version |
recraft-ai/recraft-v3-svg | 0.08 | 画图 |
ideogram-ai/ideogram-v2-turbo | 0.05 | 画图 |
version 对应图
模型 | version |
---|---|
stability-ai/stable-diffusion | ac732df83cea7fff18b8472768c88ad041fa750ff7682a21affe81863cbe77e4 |
stability-ai/sdxl | 7762fd07cf82c948538e41f63f77d685e02b063e37e496e96eefd46c929f9bdc |
stability-ai/stable-diffusion-inpainting | 95b7223104132402a9ae91cc677285bc5eb997834bd2349fa486f53910fd68b3 |
stability-ai/stable-diffusion-img2img | 15a3689ee13b0d2616e98820eca31d4c3abcd36672df6afce5cb6feb1d66087d |
lucataco/flux-dev-lora | 091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3 |
lucataco/flux-schnell-lora | 2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574 |
Replicate API
- 将官网的
https://api.replicate.com
更换为https://api.openai-hk.com/replicate
- 输入、输出、请求方式跟官网一致
1.生成任务.路径方式
- 以
black-forest-labs/flux-schnell
为例 - 官网参数说明 https://replicate.com/black-forest-labs/flux-schnell?input=http
post https://api.openai-hk.com/replicate/v1/models/black-forest-labs/flux-schnell/predictions
shell
curl --request POST \
--url https://api.openai-hk.com/replicate/v1/models/black-forest-labs/flux-schnell/predictions \
--header 'Authorization: Bearer hk-you-key' \
--header 'Content-Type: application/json' \
--data '{
"input": {
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
"go_fast": true,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"output_quality": 80,
"num_inference_steps": 4
}
}'
curl --request POST \
--url https://api.openai-hk.com/replicate/v1/models/black-forest-labs/flux-schnell/predictions \
--header 'Authorization: Bearer hk-you-key' \
--header 'Content-Type: application/json' \
--data '{
"input": {
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
"go_fast": true,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"output_quality": 80,
"num_inference_steps": 4
}
}'
返回体 id 为下一步查询任务 id
json
{
"id": "qpt5jq1fssrmc0cmd5hvy31mdg",
"model": "black-forest-labs/flux-schnell",
"version": "dp-4d0bcc010b3049749a251855f12800be",
"input": {
"aspect_ratio": "1:1",
"go_fast": true,
"megapixels": "1",
"num_inference_steps": 4,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-01-15T09:54:55.566Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg/cancel",
"get": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg",
"stream": "https://stream.replicate.com/v1/files/bcwr-gvuc2rokjozhlaxh6dcvk6tvhh2ymt4egnnpxvmtqql57angyfsq"
}
}
{
"id": "qpt5jq1fssrmc0cmd5hvy31mdg",
"model": "black-forest-labs/flux-schnell",
"version": "dp-4d0bcc010b3049749a251855f12800be",
"input": {
"aspect_ratio": "1:1",
"go_fast": true,
"megapixels": "1",
"num_inference_steps": 4,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-01-15T09:54:55.566Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg/cancel",
"get": "https://api.replicate.com/v1/predictions/qpt5jq1fssrmc0cmd5hvy31mdg",
"stream": "https://stream.replicate.com/v1/files/bcwr-gvuc2rokjozhlaxh6dcvk6tvhh2ymt4egnnpxvmtqql57angyfsq"
}
}
2.生成任务.version 方式
以
lucataco/flux-schnell-lora
为例子参考文档 https://replicate.com/lucataco/flux-schnell-lora?input=http
通过参考文档 得到 version 为
2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574
curl 请求
shell
curl --request POST \
--url https://api.openai-hk.com/replicate/v1/predictions \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
"input": {
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
"hf_lora": "alvdansen/frosting_lane_flux",
"lora_scale": 0.8,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"prompt_strength": 0.8,
"num_inference_steps": 4
}
}'
curl --request POST \
--url https://api.openai-hk.com/replicate/v1/predictions \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
"input": {
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
"hf_lora": "alvdansen/frosting_lane_flux",
"lora_scale": 0.8,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"prompt_strength": 0.8,
"num_inference_steps": 4
}
}'
返回体 格式上免试一致的
json
{
"id": "w5h20n0m6nrj40cmd50vw5vv28",
"model": "lucataco/flux-schnell-lora",
"version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
"input": {
"aspect_ratio": "1:1",
"hf_lora": "alvdansen/frosting_lane_flux",
"lora_scale": 0.8,
"num_inference_steps": 4,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
"prompt_strength": 0.8
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-01-15T09:17:40.277Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28/cancel",
"get": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28",
"stream": "https://stream.replicate.com/v1/files/qoxq-cx45qfaeignw3k7eadaigndgsgh3i7ebmxquakponlvepga6genq"
}
}
{
"id": "w5h20n0m6nrj40cmd50vw5vv28",
"model": "lucataco/flux-schnell-lora",
"version": "2a6b576af31790b470f0a8442e1e9791213fa13799cbb65a9fc1436e96389574",
"input": {
"aspect_ratio": "1:1",
"hf_lora": "alvdansen/frosting_lane_flux",
"lora_scale": 0.8,
"num_inference_steps": 4,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)",
"prompt_strength": 0.8
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-01-15T09:17:40.277Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28/cancel",
"get": "https://api.replicate.com/v1/predictions/w5h20n0m6nrj40cmd50vw5vv28",
"stream": "https://stream.replicate.com/v1/files/qoxq-cx45qfaeignw3k7eadaigndgsgh3i7ebmxquakponlvepga6genq"
}
}
3.获取任务
- 通过上面的生产任何获取到 任务 id
- 结果在关键字段
output
上 - 注意 返回结果及其链接文件都有时效性
shell
curl --request GET \
--url https://api.openai-hk.com/replicate/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114 \
--header 'Authorization: Bearer hk-you-key' \
--header 'Content-Type: application/json'
curl --request GET \
--url https://api.openai-hk.com/replicate/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114 \
--header 'Authorization: Bearer hk-you-key' \
--header 'Content-Type: application/json'
返回体
json
{
"id": "ctdwaehfz1rm80cmd5nsjd8114",
"model": "black-forest-labs/flux-schnell",
"version": "dp-4d0bcc010b3049749a251855f12800be",
"input": {
"aspect_ratio": "1:1",
"go_fast": true,
"megapixels": "1",
"num_inference_steps": 4,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
},
"logs": "Using seed: 62182\nrunning quantized prediction\nUsing seed: 62182\n 0%| | 0/4 [00:00<?, ?it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 15.38it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.43it/s]\nTotal safe images: 1 out of 1\n",
"output": [
"https://replicate.delivery/xezq/RoEhEdyl8PoIGFFPg46TU4Svj24i1NDVYmzehJfqLuX9nTFUA/out-0.jpg"
],
"data_removed": false,
"error": null,
"status": "succeeded",
"created_at": "2025-01-15T10:03:39.896Z",
"started_at": "2025-01-15T10:03:40.584470194Z",
"completed_at": "2025-01-15T10:03:41.142386377Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114/cancel",
"get": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114",
"stream": "https://stream.replicate.com/v1/files/bcwr-q57vie7wuzg3wxv2hvpajgmzqzmxe67kqddednevutmrpdcft6xq"
},
"metrics": {
"image_count": 1,
"predict_time": 0.557916184
}
}
{
"id": "ctdwaehfz1rm80cmd5nsjd8114",
"model": "black-forest-labs/flux-schnell",
"version": "dp-4d0bcc010b3049749a251855f12800be",
"input": {
"aspect_ratio": "1:1",
"go_fast": true,
"megapixels": "1",
"num_inference_steps": 4,
"num_outputs": 1,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Japanese cartoon anime style, (1 person) (Gender: Male, Age: 30, Hair: Short black hair, Outfit: Dark blue hunting attire, includes a fitted jacket and trousers.) (A dimly lit room filled with tension, is questioning Female, 27 years old, long black hair, pink tulle dress., who stands nervously in her pink dress, the sound of rain pattering against the window.)"
},
"logs": "Using seed: 62182\nrunning quantized prediction\nUsing seed: 62182\n 0%| | 0/4 [00:00<?, ?it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 15.38it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.43it/s]\nTotal safe images: 1 out of 1\n",
"output": [
"https://replicate.delivery/xezq/RoEhEdyl8PoIGFFPg46TU4Svj24i1NDVYmzehJfqLuX9nTFUA/out-0.jpg"
],
"data_removed": false,
"error": null,
"status": "succeeded",
"created_at": "2025-01-15T10:03:39.896Z",
"started_at": "2025-01-15T10:03:40.584470194Z",
"completed_at": "2025-01-15T10:03:41.142386377Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114/cancel",
"get": "https://api.replicate.com/v1/predictions/ctdwaehfz1rm80cmd5nsjd8114",
"stream": "https://stream.replicate.com/v1/files/bcwr-q57vie7wuzg3wxv2hvpajgmzqzmxe67kqddednevutmrpdcft6xq"
},
"metrics": {
"image_count": 1,
"predict_time": 0.557916184
}
}
返回体 关键字段说明
项目 | 类型 | 说明 |
---|---|---|
input | object | 输入 |
output | string 或者 []string | 内容输出 url |
status | string | 状态 状态 starting processing succeeded failed |