Merge branch 'main' into licence-update
This commit is contained in:
@@ -0,0 +1,162 @@
|
||||
{
|
||||
"last_node_id": 7,
|
||||
"last_link_id": 2,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 5,
|
||||
"type": "Replicate suno-ai/bark",
|
||||
"pos": [
|
||||
540,
|
||||
264
|
||||
],
|
||||
"size": {
|
||||
"0": 400,
|
||||
"1": 266
|
||||
},
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "AUDIO",
|
||||
"type": "AUDIO",
|
||||
"links": [
|
||||
1
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "STRING",
|
||||
"type": "STRING",
|
||||
"links": null,
|
||||
"shape": 3
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Replicate suno-ai/bark"
|
||||
},
|
||||
"widgets_values": [
|
||||
"Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.",
|
||||
"announcer",
|
||||
"",
|
||||
0.7,
|
||||
0.7,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "PreviewAudio",
|
||||
"pos": [
|
||||
1457,
|
||||
272
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 76
|
||||
},
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "audio",
|
||||
"type": "AUDIO",
|
||||
"link": 2
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "PreviewAudio"
|
||||
},
|
||||
"widgets_values": [
|
||||
null
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "Replicate meta/musicgen",
|
||||
"pos": [
|
||||
1001,
|
||||
269
|
||||
],
|
||||
"size": {
|
||||
"0": 400,
|
||||
"1": 436
|
||||
},
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "input_audio",
|
||||
"type": "AUDIO",
|
||||
"link": 1
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "AUDIO",
|
||||
"type": "AUDIO",
|
||||
"links": [
|
||||
2
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Replicate meta/musicgen"
|
||||
},
|
||||
"widgets_values": [
|
||||
"stereo-melody-large",
|
||||
"rap, rock",
|
||||
20,
|
||||
true,
|
||||
0,
|
||||
6,
|
||||
false,
|
||||
"loudness",
|
||||
250,
|
||||
0,
|
||||
1,
|
||||
3,
|
||||
"wav",
|
||||
1607,
|
||||
"randomize",
|
||||
false
|
||||
]
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
1,
|
||||
5,
|
||||
0,
|
||||
6,
|
||||
0,
|
||||
"AUDIO"
|
||||
],
|
||||
[
|
||||
2,
|
||||
6,
|
||||
0,
|
||||
7,
|
||||
0,
|
||||
"AUDIO"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ds": {
|
||||
"scale": 1,
|
||||
"offset": [
|
||||
-123.2666015625,
|
||||
-48.2666015625
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -0,0 +1,337 @@
|
||||
{
|
||||
"last_node_id": 21,
|
||||
"last_link_id": 27,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 17,
|
||||
"type": "DF_Text_Box",
|
||||
"pos": [
|
||||
-55,
|
||||
-228
|
||||
],
|
||||
"size": {
|
||||
"0": 400,
|
||||
"1": 200
|
||||
},
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "STRING",
|
||||
"type": "STRING",
|
||||
"links": [
|
||||
22,
|
||||
23,
|
||||
24
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "DF_Text_Box"
|
||||
},
|
||||
"widgets_values": [
|
||||
"a neon light saying \"flux now in comfyui-replicate\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
1023,
|
||||
-699
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 270
|
||||
},
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 25
|
||||
}
|
||||
],
|
||||
"properties": {},
|
||||
"widgets_values": [
|
||||
"flux-schnell"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"type": "Replicate black-forest-labs/flux-schnell",
|
||||
"pos": [
|
||||
580,
|
||||
-697
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
268
|
||||
],
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "prompt",
|
||||
"type": "STRING",
|
||||
"link": 22,
|
||||
"widget": {
|
||||
"name": "prompt"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
25
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Replicate black-forest-labs/flux-schnell"
|
||||
},
|
||||
"widgets_values": [
|
||||
"",
|
||||
"3:2",
|
||||
1,
|
||||
1331,
|
||||
"randomize",
|
||||
"webp",
|
||||
80,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
1027,
|
||||
-375
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 270
|
||||
},
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 26
|
||||
}
|
||||
],
|
||||
"properties": {},
|
||||
"widgets_values": [
|
||||
"flux-dev"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"type": "Replicate black-forest-labs/flux-dev",
|
||||
"pos": [
|
||||
579,
|
||||
-377
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
316
|
||||
],
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "prompt",
|
||||
"type": "STRING",
|
||||
"link": 23,
|
||||
"widget": {
|
||||
"name": "prompt"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
26
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Replicate black-forest-labs/flux-dev"
|
||||
},
|
||||
"widgets_values": [
|
||||
"",
|
||||
"3:2",
|
||||
0.8,
|
||||
1,
|
||||
3.5,
|
||||
1454,
|
||||
"randomize",
|
||||
"webp",
|
||||
80,
|
||||
false,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
1030,
|
||||
-7
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 270
|
||||
},
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 27
|
||||
}
|
||||
],
|
||||
"properties": {},
|
||||
"widgets_values": [
|
||||
"flux-pro"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"type": "Replicate black-forest-labs/flux-pro",
|
||||
"pos": [
|
||||
579,
|
||||
-3
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
268
|
||||
],
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "prompt",
|
||||
"type": "STRING",
|
||||
"link": 24,
|
||||
"widget": {
|
||||
"name": "prompt"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
27
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Replicate black-forest-labs/flux-pro"
|
||||
},
|
||||
"widgets_values": [
|
||||
"",
|
||||
"3:2",
|
||||
25,
|
||||
3,
|
||||
2,
|
||||
2,
|
||||
1262,
|
||||
"randomize",
|
||||
false
|
||||
]
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
22,
|
||||
17,
|
||||
0,
|
||||
21,
|
||||
0,
|
||||
"STRING"
|
||||
],
|
||||
[
|
||||
23,
|
||||
17,
|
||||
0,
|
||||
20,
|
||||
1,
|
||||
"STRING"
|
||||
],
|
||||
[
|
||||
24,
|
||||
17,
|
||||
0,
|
||||
19,
|
||||
0,
|
||||
"STRING"
|
||||
],
|
||||
[
|
||||
25,
|
||||
21,
|
||||
0,
|
||||
13,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
26,
|
||||
20,
|
||||
0,
|
||||
14,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
27,
|
||||
19,
|
||||
0,
|
||||
15,
|
||||
0,
|
||||
"IMAGE"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ds": {
|
||||
"scale": 1,
|
||||
"offset": [
|
||||
189.2626953125,
|
||||
773.8525390625
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
@@ -0,0 +1,566 @@
|
||||
{
|
||||
"last_node_id": 10,
|
||||
"last_link_id": 13,
|
||||
"nodes": [
|
||||
{
|
||||
"id": 5,
|
||||
"type": "CLIPTextEncode",
|
||||
"pos": [
|
||||
1199,
|
||||
389
|
||||
],
|
||||
"size": [
|
||||
400,
|
||||
200
|
||||
],
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "clip",
|
||||
"type": "CLIP",
|
||||
"link": 4
|
||||
},
|
||||
{
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"link": 3,
|
||||
"widget": {
|
||||
"name": "text"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "CONDITIONING",
|
||||
"type": "CONDITIONING",
|
||||
"links": [
|
||||
5
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "CLIPTextEncode"
|
||||
},
|
||||
"widgets_values": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "CLIPTextEncode",
|
||||
"pos": [
|
||||
1195,
|
||||
649
|
||||
],
|
||||
"size": {
|
||||
"0": 400,
|
||||
"1": 200
|
||||
},
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "clip",
|
||||
"type": "CLIP",
|
||||
"link": 2
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "CONDITIONING",
|
||||
"type": "CONDITIONING",
|
||||
"links": [
|
||||
6
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "CLIPTextEncode"
|
||||
},
|
||||
"widgets_values": [
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "KSampler",
|
||||
"pos": [
|
||||
1664,
|
||||
404
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 262
|
||||
},
|
||||
"flags": {},
|
||||
"order": 7,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "model",
|
||||
"type": "MODEL",
|
||||
"link": 11
|
||||
},
|
||||
{
|
||||
"name": "positive",
|
||||
"type": "CONDITIONING",
|
||||
"link": 5
|
||||
},
|
||||
{
|
||||
"name": "negative",
|
||||
"type": "CONDITIONING",
|
||||
"link": 6
|
||||
},
|
||||
{
|
||||
"name": "latent_image",
|
||||
"type": "LATENT",
|
||||
"link": 7
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "LATENT",
|
||||
"type": "LATENT",
|
||||
"links": [
|
||||
8
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "KSampler"
|
||||
},
|
||||
"widgets_values": [
|
||||
690393467025334,
|
||||
"randomize",
|
||||
25,
|
||||
7,
|
||||
"dpmpp_2m_sde_gpu",
|
||||
"karras",
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "VAEDecode",
|
||||
"pos": [
|
||||
2061,
|
||||
406
|
||||
],
|
||||
"size": {
|
||||
"0": 210,
|
||||
"1": 46
|
||||
},
|
||||
"flags": {},
|
||||
"order": 8,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "samples",
|
||||
"type": "LATENT",
|
||||
"link": 8
|
||||
},
|
||||
{
|
||||
"name": "vae",
|
||||
"type": "VAE",
|
||||
"link": 9
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
10
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "VAEDecode"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "CheckpointLoaderSimple",
|
||||
"pos": [
|
||||
735,
|
||||
527
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 98
|
||||
},
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "MODEL",
|
||||
"type": "MODEL",
|
||||
"links": [
|
||||
11
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "CLIP",
|
||||
"type": "CLIP",
|
||||
"links": [
|
||||
2,
|
||||
4
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
},
|
||||
{
|
||||
"name": "VAE",
|
||||
"type": "VAE",
|
||||
"links": [
|
||||
9
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 2
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "CheckpointLoaderSimple"
|
||||
},
|
||||
"widgets_values": [
|
||||
"proteusV0.5.safetensors"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "EmptyLatentImage",
|
||||
"pos": [
|
||||
1270,
|
||||
219
|
||||
],
|
||||
"size": [
|
||||
315,
|
||||
106
|
||||
],
|
||||
"flags": {},
|
||||
"order": 4,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "width",
|
||||
"type": "INT",
|
||||
"link": 12,
|
||||
"widget": {
|
||||
"name": "width"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "height",
|
||||
"type": "INT",
|
||||
"link": 13,
|
||||
"widget": {
|
||||
"name": "height"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "LATENT",
|
||||
"type": "LATENT",
|
||||
"links": [
|
||||
7
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "EmptyLatentImage"
|
||||
},
|
||||
"widgets_values": [
|
||||
1024,
|
||||
1024,
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": "Width and height from aspect ratio 🪴",
|
||||
"pos": [
|
||||
838,
|
||||
183
|
||||
],
|
||||
"size": {
|
||||
"0": 315,
|
||||
"1": 126
|
||||
},
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "width",
|
||||
"type": "INT",
|
||||
"links": [
|
||||
12
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
},
|
||||
{
|
||||
"name": "height",
|
||||
"type": "INT",
|
||||
"links": [
|
||||
13
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 1
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Width and height from aspect ratio 🪴"
|
||||
},
|
||||
"widgets_values": [
|
||||
"16:9",
|
||||
1024,
|
||||
8
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": "SaveImage",
|
||||
"pos": [
|
||||
157,
|
||||
474
|
||||
],
|
||||
"size": [
|
||||
500.09607697684555,
|
||||
307.000781640146
|
||||
],
|
||||
"flags": {},
|
||||
"order": 9,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 10
|
||||
}
|
||||
],
|
||||
"properties": {},
|
||||
"widgets_values": [
|
||||
"ComfyUI"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "ShowText|pysssss",
|
||||
"pos": [
|
||||
153,
|
||||
234
|
||||
],
|
||||
"size": [
|
||||
450.830078125,
|
||||
192.2900390625
|
||||
],
|
||||
"flags": {},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"link": 1,
|
||||
"widget": {
|
||||
"name": "text"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "STRING",
|
||||
"type": "STRING",
|
||||
"links": null,
|
||||
"shape": 6
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "ShowText|pysssss"
|
||||
},
|
||||
"widgets_values": [
|
||||
"",
|
||||
"A film still of a sci-fi anime movie, two space explorers in a tense, mystical confrontation on a bizarre, abandoned space station, weird, dreamlike, muted metallic colors, soft, ethereal lighting, unusual, organic architecture, anime style, intricate details, dramatic posing."
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": "Replicate meta/meta-llama-3.1-405b-instruct",
|
||||
"pos": [
|
||||
-274,
|
||||
235
|
||||
],
|
||||
"size": [
|
||||
398.7880859375,
|
||||
447.314453125
|
||||
],
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"outputs": [
|
||||
{
|
||||
"name": "STRING",
|
||||
"type": "STRING",
|
||||
"links": [
|
||||
1,
|
||||
3
|
||||
],
|
||||
"shape": 3,
|
||||
"slot_index": 0
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"Node name for S&R": "Replicate meta/meta-llama-3.1-405b-instruct"
|
||||
},
|
||||
"widgets_values": [
|
||||
"an awesome scifi anime scene, with some dynamic interaction between two people, don't use neon stuff though, be weird",
|
||||
"You are a helpful text to image prompt assistant. You enhance prompts using short sentences and comma separated keywords, subject first then style. Return just the prompt. Make sure to keep all details from given prompt (like if it's a photo, etc)\n\nGood prompt example:\nA film still of an anime movie, two space explorers in a tense standoff on a desolate alien planet, surreal, muted color palette, eerie atmospheric lighting, unusual architecture, anime style, detailed textures, dramatic posing.",
|
||||
0,
|
||||
512,
|
||||
0.6,
|
||||
0.9,
|
||||
50,
|
||||
0,
|
||||
0,
|
||||
"",
|
||||
false
|
||||
]
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
"STRING"
|
||||
],
|
||||
[
|
||||
2,
|
||||
3,
|
||||
1,
|
||||
4,
|
||||
0,
|
||||
"CLIP"
|
||||
],
|
||||
[
|
||||
3,
|
||||
1,
|
||||
0,
|
||||
5,
|
||||
1,
|
||||
"STRING"
|
||||
],
|
||||
[
|
||||
4,
|
||||
3,
|
||||
1,
|
||||
5,
|
||||
0,
|
||||
"CLIP"
|
||||
],
|
||||
[
|
||||
5,
|
||||
5,
|
||||
0,
|
||||
6,
|
||||
1,
|
||||
"CONDITIONING"
|
||||
],
|
||||
[
|
||||
6,
|
||||
4,
|
||||
0,
|
||||
6,
|
||||
2,
|
||||
"CONDITIONING"
|
||||
],
|
||||
[
|
||||
7,
|
||||
7,
|
||||
0,
|
||||
6,
|
||||
3,
|
||||
"LATENT"
|
||||
],
|
||||
[
|
||||
8,
|
||||
6,
|
||||
0,
|
||||
8,
|
||||
0,
|
||||
"LATENT"
|
||||
],
|
||||
[
|
||||
9,
|
||||
3,
|
||||
2,
|
||||
8,
|
||||
1,
|
||||
"VAE"
|
||||
],
|
||||
[
|
||||
10,
|
||||
8,
|
||||
0,
|
||||
9,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
11,
|
||||
3,
|
||||
0,
|
||||
6,
|
||||
0,
|
||||
"MODEL"
|
||||
],
|
||||
[
|
||||
12,
|
||||
10,
|
||||
0,
|
||||
7,
|
||||
0,
|
||||
"INT"
|
||||
],
|
||||
[
|
||||
13,
|
||||
10,
|
||||
1,
|
||||
7,
|
||||
1,
|
||||
"INT"
|
||||
]
|
||||
],
|
||||
"groups": [],
|
||||
"config": {},
|
||||
"extra": {
|
||||
"ds": {
|
||||
"scale": 0.6209213230591553,
|
||||
"offset": [
|
||||
357.0363126973379,
|
||||
28.753132988760044
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": 0.4
|
||||
}
|
||||
+25
-8
@@ -2,6 +2,7 @@
|
||||
import replicate
|
||||
import json
|
||||
import os
|
||||
import argparse
|
||||
|
||||
|
||||
def format_json_file(file_path):
|
||||
@@ -25,13 +26,29 @@ def format_json_files_in_directory(directory):
|
||||
format_json_file(file_path)
|
||||
|
||||
|
||||
with open("supported_models.json", "r", encoding="utf-8") as f:
|
||||
supported_models = json.load(f)
|
||||
def update_schemas(update=False):
|
||||
with open("supported_models.json", "r", encoding="utf-8") as f:
|
||||
supported_models = json.load(f)
|
||||
|
||||
for model in supported_models["models"]:
|
||||
m = replicate.models.get(model)
|
||||
with open(f"schemas/{model.replace('/', '_')}.json", "w", encoding="utf-8") as f:
|
||||
f.write(m.json())
|
||||
schemas_directory = "schemas"
|
||||
existing_schemas = set(os.listdir(schemas_directory))
|
||||
|
||||
schemas_directory = "schemas"
|
||||
format_json_files_in_directory(schemas_directory)
|
||||
for model in supported_models["models"]:
|
||||
schema_filename = f"{model.replace('/', '_')}.json"
|
||||
schema_path = os.path.join(schemas_directory, schema_filename)
|
||||
|
||||
if update or schema_filename not in existing_schemas:
|
||||
m = replicate.models.get(model)
|
||||
with open(schema_path, "w", encoding="utf-8") as f:
|
||||
f.write(m.json())
|
||||
print(f"{'Updated' if update else 'Added'} schema for {model}")
|
||||
|
||||
format_json_files_in_directory(schemas_directory)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Update model schemas")
|
||||
parser.add_argument("--update", action="store_true", help="Update all schemas, not just new ones")
|
||||
args = parser.parse_args()
|
||||
|
||||
update_schemas(update=args.update)
|
||||
|
||||
@@ -8,6 +8,8 @@ from torchvision import transforms
|
||||
import torch
|
||||
import base64
|
||||
import time
|
||||
import torchaudio
|
||||
import soundfile as sf
|
||||
from replicate.client import Client
|
||||
from .schema_to_node import (
|
||||
schema_to_comfyui_input_types,
|
||||
@@ -32,7 +34,11 @@ def create_comfyui_node(schema):
|
||||
def INPUT_TYPES(cls):
|
||||
return schema_to_comfyui_input_types(schema)
|
||||
|
||||
RETURN_TYPES = (return_type,)
|
||||
RETURN_TYPES = (
|
||||
tuple(return_type.values())
|
||||
if isinstance(return_type, dict)
|
||||
else (return_type,)
|
||||
)
|
||||
FUNCTION = "run_replicate_model"
|
||||
CATEGORY = "Replicate"
|
||||
|
||||
@@ -45,6 +51,8 @@ def create_comfyui_node(schema):
|
||||
)
|
||||
if input_type == "IMAGE":
|
||||
kwargs[key] = self.image_to_base64(value)
|
||||
elif input_type == "AUDIO":
|
||||
kwargs[key] = self.audio_to_base64(value)
|
||||
|
||||
def image_to_base64(self, image):
|
||||
if isinstance(image, torch.Tensor):
|
||||
@@ -60,6 +68,31 @@ def create_comfyui_node(schema):
|
||||
img_str = base64.b64encode(buffer.getvalue()).decode()
|
||||
return f"data:image/png;base64,{img_str}"
|
||||
|
||||
def audio_to_base64(self, audio):
|
||||
if (
|
||||
isinstance(audio, dict)
|
||||
and "waveform" in audio
|
||||
and "sample_rate" in audio
|
||||
):
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
else:
|
||||
waveform, sample_rate = audio
|
||||
|
||||
# Ensure waveform is 2D
|
||||
if waveform.dim() == 1:
|
||||
waveform = waveform.unsqueeze(0)
|
||||
elif waveform.dim() > 2:
|
||||
waveform = waveform.squeeze()
|
||||
if waveform.dim() > 2:
|
||||
raise ValueError("Waveform must be 1D or 2D")
|
||||
|
||||
buffer = io.BytesIO()
|
||||
sf.write(buffer, waveform.numpy().T, sample_rate, format="wav")
|
||||
buffer.seek(0)
|
||||
audio_str = base64.b64encode(buffer.getvalue()).decode()
|
||||
return f"data:audio/wav;base64,{audio_str}"
|
||||
|
||||
def handle_array_inputs(self, kwargs):
|
||||
array_inputs = inputs_that_need_arrays(schema)
|
||||
for input_name in array_inputs:
|
||||
@@ -75,13 +108,18 @@ def create_comfyui_node(schema):
|
||||
def log_input(self, kwargs):
|
||||
truncated_kwargs = {
|
||||
k: v[:20] + "..."
|
||||
if isinstance(v, str) and v.startswith("data:image")
|
||||
if isinstance(v, str)
|
||||
and (v.startswith("data:image") or v.startswith("data:audio"))
|
||||
else v
|
||||
for k, v in kwargs.items()
|
||||
}
|
||||
print(f"Running {replicate_model} with {truncated_kwargs}")
|
||||
|
||||
def handle_image_output(self, output):
|
||||
if output is None:
|
||||
print("No image output received")
|
||||
return None
|
||||
|
||||
# Handle both string and list outputs
|
||||
output_list = [output] if isinstance(output, str) else list(output)
|
||||
if output_list:
|
||||
@@ -112,19 +150,93 @@ def create_comfyui_node(schema):
|
||||
print("No output received from the model")
|
||||
return None
|
||||
|
||||
def handle_audio_output(self, output):
|
||||
if output is None:
|
||||
print("No audio output received from the model")
|
||||
return None
|
||||
|
||||
if isinstance(output, str):
|
||||
output_list = [output]
|
||||
elif isinstance(output, (list, tuple)):
|
||||
output_list = list(output)
|
||||
else:
|
||||
print(f"Unexpected output type: {type(output)}")
|
||||
return None
|
||||
|
||||
if output_list:
|
||||
audio_data = []
|
||||
for audio_url in output_list:
|
||||
if audio_url:
|
||||
response = requests.get(audio_url)
|
||||
if response.status_code == 200:
|
||||
audio_content = BytesIO(response.content)
|
||||
waveform, sample_rate = torchaudio.load(audio_content)
|
||||
audio_data.append(
|
||||
{
|
||||
"waveform": waveform.unsqueeze(0),
|
||||
"sample_rate": sample_rate,
|
||||
}
|
||||
)
|
||||
else:
|
||||
print(
|
||||
f"Failed to download audio. Status code: {response.status_code}"
|
||||
)
|
||||
else:
|
||||
print("Empty audio URL received")
|
||||
|
||||
# If there's only one audio file, return it directly
|
||||
if len(audio_data) == 1:
|
||||
return audio_data[0]
|
||||
# If there are multiple audio files, return them as a list
|
||||
return audio_data
|
||||
else:
|
||||
print("No valid audio URLs in the output")
|
||||
return None
|
||||
|
||||
def remove_falsey_optional_inputs(self, kwargs):
|
||||
optional_inputs = self.INPUT_TYPES().get("optional", {})
|
||||
for key in list(kwargs.keys()):
|
||||
if key in optional_inputs:
|
||||
if isinstance(kwargs[key], torch.Tensor):
|
||||
continue
|
||||
elif not kwargs[key]:
|
||||
del kwargs[key]
|
||||
|
||||
def run_replicate_model(self, **kwargs):
|
||||
self.handle_array_inputs(kwargs)
|
||||
self.remove_falsey_optional_inputs(kwargs)
|
||||
self.convert_input_images_to_base64(kwargs)
|
||||
self.log_input(kwargs)
|
||||
output = replicate.run(replicate_model, input=kwargs)
|
||||
kwargs_without_force_rerun = {
|
||||
k: v for k, v in kwargs.items() if k != "force_rerun"
|
||||
}
|
||||
output = replicate.run(replicate_model, input=kwargs_without_force_rerun)
|
||||
print(f"Output: {output}")
|
||||
|
||||
if return_type == "IMAGE":
|
||||
output = self.handle_image_output(output)
|
||||
processed_outputs = []
|
||||
if isinstance(return_type, dict):
|
||||
for prop_name, prop_type in return_type.items():
|
||||
if prop_type == "IMAGE":
|
||||
processed_outputs.append(
|
||||
self.handle_image_output(output.get(prop_name))
|
||||
)
|
||||
elif prop_type == "AUDIO":
|
||||
processed_outputs.append(
|
||||
self.handle_audio_output(output.get(prop_name))
|
||||
)
|
||||
elif prop_type == "STRING":
|
||||
processed_outputs.append(
|
||||
"".join(list(output.get(prop_name, ""))).strip()
|
||||
)
|
||||
else:
|
||||
output = "".join(list(output)).strip()
|
||||
if return_type == "IMAGE":
|
||||
processed_outputs.append(self.handle_image_output(output))
|
||||
elif return_type == "AUDIO":
|
||||
processed_outputs.append(self.handle_audio_output(output))
|
||||
else:
|
||||
processed_outputs.append("".join(list(output)).strip())
|
||||
|
||||
return (output,)
|
||||
return tuple(processed_outputs)
|
||||
|
||||
return node_name, ReplicateToComfyUI
|
||||
|
||||
@@ -135,7 +247,9 @@ def create_comfyui_nodes_from_schemas(schemas_dir):
|
||||
schemas_dir_path = os.path.join(current_path, schemas_dir)
|
||||
for schema_file in os.listdir(schemas_dir_path):
|
||||
if schema_file.endswith(".json"):
|
||||
with open(os.path.join(schemas_dir_path, schema_file), "r", encoding="utf-8") as f:
|
||||
with open(
|
||||
os.path.join(schemas_dir_path, schema_file), "r", encoding="utf-8"
|
||||
) as f:
|
||||
schema = json.load(f)
|
||||
node_name, node_class = create_comfyui_node(schema)
|
||||
nodes[node_name] = node_class
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-replicate"
|
||||
description = "Run Replicate models in ComfyUI"
|
||||
version = "1.0.4"
|
||||
version = "1.0.7"
|
||||
license = { file = "LICENSE" }
|
||||
|
||||
[project.urls]
|
||||
|
||||
+99
-26
@@ -1,17 +1,41 @@
|
||||
DEFAULT_STEP = 0.01
|
||||
DEFAULT_ROUND = 0.001
|
||||
|
||||
IMAGE_EXTENSIONS = (".png", ".jpg", ".jpeg", ".gif", ".webp")
|
||||
VIDEO_EXTENSIONS = (".mp4", ".mkv", ".webm", ".mov", ".mpg", ".mpeg")
|
||||
AUDIO_EXTENSIONS = (".mp3", ".wav", ".flac", ".mpga", ".m4a")
|
||||
|
||||
def convert_to_comfyui_input_type(openapi_type, openapi_format=None):
|
||||
type_mapping = {
|
||||
"string": "STRING",
|
||||
"integer": "INT",
|
||||
"number": "FLOAT",
|
||||
"boolean": "BOOLEAN",
|
||||
}
|
||||
TYPE_MAPPING = {
|
||||
"string": "STRING",
|
||||
"integer": "INT",
|
||||
"number": "FLOAT",
|
||||
"boolean": "BOOLEAN",
|
||||
}
|
||||
|
||||
|
||||
def convert_to_comfyui_input_type(
|
||||
input_name, openapi_type, openapi_format=None, default_example_input=None
|
||||
):
|
||||
if openapi_type == "string" and openapi_format == "uri":
|
||||
return "IMAGE"
|
||||
return type_mapping.get(openapi_type, "STRING")
|
||||
if (
|
||||
default_example_input
|
||||
and isinstance(default_example_input, dict)
|
||||
and input_name in default_example_input
|
||||
):
|
||||
if is_type(default_example_input[input_name], IMAGE_EXTENSIONS):
|
||||
return "IMAGE"
|
||||
elif is_type(default_example_input[input_name], VIDEO_EXTENSIONS):
|
||||
return "VIDEO"
|
||||
elif is_type(default_example_input[input_name], AUDIO_EXTENSIONS):
|
||||
return "AUDIO"
|
||||
elif "image" in input_name.lower():
|
||||
return "IMAGE"
|
||||
elif "audio" in input_name.lower():
|
||||
return "AUDIO"
|
||||
else:
|
||||
return "STRING"
|
||||
|
||||
return TYPE_MAPPING.get(openapi_type, "STRING")
|
||||
|
||||
|
||||
def name_and_version(schema):
|
||||
@@ -23,11 +47,13 @@ def name_and_version(schema):
|
||||
return replicate_model, node_name
|
||||
|
||||
|
||||
def resolve_schema(prop_data, openapi_schemas):
|
||||
def resolve_schema(prop_data, openapi_schema):
|
||||
if "$ref" in prop_data:
|
||||
ref_path = prop_data["$ref"].split("/")
|
||||
current = openapi_schemas
|
||||
current = openapi_schema
|
||||
for path in ref_path[1:]: # Skip the first '#' element
|
||||
if path not in current:
|
||||
return prop_data # Return original if path is invalid
|
||||
current = current[path]
|
||||
return current
|
||||
return prop_data
|
||||
@@ -37,6 +63,7 @@ def schema_to_comfyui_input_types(schema):
|
||||
openapi_schema = schema["latest_version"]["openapi_schema"]
|
||||
input_schema = openapi_schema["components"]["schemas"]["Input"]
|
||||
input_types = {"required": {}, "optional": {}}
|
||||
default_example_input = get_default_example_input(schema)
|
||||
|
||||
required_props = input_schema.get("required", [])
|
||||
|
||||
@@ -51,7 +78,10 @@ def schema_to_comfyui_input_types(schema):
|
||||
input_type = prop_data["enum"]
|
||||
elif "type" in prop_data:
|
||||
input_type = convert_to_comfyui_input_type(
|
||||
prop_data["type"], prop_data.get("format")
|
||||
prop_name,
|
||||
prop_data["type"],
|
||||
prop_data.get("format"),
|
||||
default_example_input,
|
||||
)
|
||||
else:
|
||||
input_type = "STRING"
|
||||
@@ -134,22 +164,65 @@ def is_type(default_example_output, extensions):
|
||||
return False
|
||||
|
||||
|
||||
def get_return_type(schema):
|
||||
image_extensions = (".png", ".jpg", ".jpeg", ".gif", ".webp")
|
||||
video_extensions = (".mp4", ".mkv", ".webm", ".mov", ".mpg", ".mpeg")
|
||||
audio_extensions = (".mp3", ".wav")
|
||||
|
||||
openapi_schema = schema["latest_version"]["openapi_schema"]
|
||||
output_schema = openapi_schema["components"]["schemas"].get("Output")
|
||||
def get_default_example(schema):
|
||||
default_example = schema.get("default_example")
|
||||
default_example_output = default_example.get("output") if default_example else None
|
||||
return default_example if default_example else None
|
||||
|
||||
if is_type(default_example_output, image_extensions):
|
||||
|
||||
def get_default_example_input(schema):
|
||||
default_example = get_default_example(schema)
|
||||
return default_example.get("input") if default_example else None
|
||||
|
||||
|
||||
def get_default_example_output(schema):
|
||||
default_example = get_default_example(schema)
|
||||
return default_example.get("output") if default_example else None
|
||||
|
||||
|
||||
def get_return_type(schema):
|
||||
openapi_schema = schema["latest_version"]["openapi_schema"]
|
||||
output_schema = (
|
||||
openapi_schema.get("components", {}).get("schemas", {}).get("Output")
|
||||
)
|
||||
default_example_output = get_default_example_output(schema)
|
||||
|
||||
if output_schema and "$ref" in output_schema:
|
||||
output_schema = resolve_schema(output_schema, openapi_schema)
|
||||
|
||||
if isinstance(output_schema, dict) and output_schema.get("properties"):
|
||||
return_types = {}
|
||||
for prop_name, prop_data in output_schema["properties"].items():
|
||||
if isinstance(default_example_output, dict):
|
||||
prop_value = default_example_output.get(prop_name)
|
||||
|
||||
if is_type(prop_value, IMAGE_EXTENSIONS):
|
||||
return_types[prop_name] = "IMAGE"
|
||||
elif is_type(prop_value, AUDIO_EXTENSIONS):
|
||||
return_types[prop_name] = "AUDIO"
|
||||
elif is_type(prop_value, VIDEO_EXTENSIONS):
|
||||
return_types[prop_name] = "VIDEO_URI"
|
||||
else:
|
||||
return_types[prop_name] = "STRING"
|
||||
elif prop_data.get("format") == "uri":
|
||||
if "audio" in prop_name.lower():
|
||||
return_types[prop_name] = "AUDIO"
|
||||
elif "image" in prop_name.lower():
|
||||
return_types[prop_name] = "IMAGE"
|
||||
else:
|
||||
return_types[prop_name] = "STRING"
|
||||
elif prop_data.get("type") == "string":
|
||||
return_types[prop_name] = "STRING"
|
||||
else:
|
||||
return_types[prop_name] = "STRING"
|
||||
|
||||
return return_types
|
||||
|
||||
if is_type(default_example_output, IMAGE_EXTENSIONS):
|
||||
return "IMAGE"
|
||||
elif is_type(default_example_output, video_extensions):
|
||||
elif is_type(default_example_output, VIDEO_EXTENSIONS):
|
||||
return "VIDEO_URI"
|
||||
elif is_type(default_example_output, audio_extensions):
|
||||
return "AUDIO_URI"
|
||||
elif is_type(default_example_output, AUDIO_EXTENSIONS):
|
||||
return "AUDIO"
|
||||
|
||||
if output_schema:
|
||||
if (
|
||||
@@ -160,8 +233,8 @@ def get_return_type(schema):
|
||||
return "IMAGE"
|
||||
elif (
|
||||
output_schema.get("type") == "array"
|
||||
and output_schema["items"].get("type") == "string"
|
||||
and output_schema["items"].get("format") == "uri"
|
||||
and output_schema.get("items", {}).get("type") == "string"
|
||||
and output_schema.get("items", {}).get("format") == "uri"
|
||||
):
|
||||
# Handle multiple image output
|
||||
return "IMAGE"
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,566 @@
|
||||
{
|
||||
"url": "https://replicate.com/black-forest-labs/flux-dev",
|
||||
"owner": "black-forest-labs",
|
||||
"name": "flux-dev",
|
||||
"description": "A 12 billion parameter rectified flow transformer capable of generating images from text descriptions",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/black-forest-labs/flux",
|
||||
"paper_url": null,
|
||||
"license_url": "https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/4c0ff159-ab97-4962-acdf-a0f422694a81/Replicate_Prediction_15.webp",
|
||||
"default_example": {
|
||||
"id": "b94wgvxmz9rm40ch1rqtkjja6c",
|
||||
"model": "replicate/flux-dev-internal-model",
|
||||
"version": "21bd4fdfaff8c94de425081803719d30f2d0e6c9c2249f8995eaa428aea0a7f4",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"prompt": "black forest gateau cake spelling out the words \"FLUX DEV\", tasty, food photography, dynamic shot",
|
||||
"guidance": 3.5,
|
||||
"aspect_ratio": "1:1",
|
||||
"output_format": "webp",
|
||||
"output_quality": 80
|
||||
},
|
||||
"output": "https://replicate.delivery/yhqm/QWK1NynxhJqlN9EsMfIrufeLYl88RlBGwVCWdio1d1TDbocmA/out-0.webp",
|
||||
"logs": null,
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"image_count": 1,
|
||||
"predict_time": 12.326882126,
|
||||
"total_time": 12.363237
|
||||
},
|
||||
"created_at": "2024-08-01T13:44:53.242000Z",
|
||||
"started_at": "2024-08-01T13:44:53.278355Z",
|
||||
"completed_at": "2024-08-01T13:45:05.605237Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/b94wgvxmz9rm40ch1rqtkjja6c",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/b94wgvxmz9rm40ch1rqtkjja6c/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "2d27e06ff0ee2494eb3ae8e3da0be637763f59bf6a488b32b2f89cd928c3faba",
|
||||
"created_at": "2024-07-29T23:42:53.742826+00:00",
|
||||
"cog_version": "0.10.0-alpha16",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/ready": {
|
||||
"get": {
|
||||
"summary": "Ready",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Ready Ready Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "ready_ready_get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"required": [
|
||||
"prompt"
|
||||
],
|
||||
"properties": {
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 6,
|
||||
"description": "Random seed. Set for reproducible generation"
|
||||
},
|
||||
"image": {
|
||||
"type": "string",
|
||||
"title": "Image",
|
||||
"format": "uri",
|
||||
"x-order": 2,
|
||||
"description": "Input image for image to image mode. The aspect ratio of your output will match this image"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"x-order": 0,
|
||||
"description": "Prompt for generated image"
|
||||
},
|
||||
"guidance": {
|
||||
"type": "number",
|
||||
"title": "Guidance",
|
||||
"default": 3.5,
|
||||
"maximum": 10,
|
||||
"minimum": 0,
|
||||
"x-order": 5,
|
||||
"description": "Guidance for generated image. Ignored for flux-schnell"
|
||||
},
|
||||
"num_outputs": {
|
||||
"type": "integer",
|
||||
"title": "Num Outputs",
|
||||
"default": 1,
|
||||
"maximum": 4,
|
||||
"minimum": 1,
|
||||
"x-order": 4,
|
||||
"description": "Number of outputs to generate"
|
||||
},
|
||||
"aspect_ratio": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/aspect_ratio"
|
||||
}
|
||||
],
|
||||
"default": "1:1",
|
||||
"x-order": 1,
|
||||
"description": "Aspect ratio for the generated image"
|
||||
},
|
||||
"output_format": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/output_format"
|
||||
}
|
||||
],
|
||||
"default": "webp",
|
||||
"x-order": 7,
|
||||
"description": "Format of the output images"
|
||||
},
|
||||
"output_quality": {
|
||||
"type": "integer",
|
||||
"title": "Output Quality",
|
||||
"default": 80,
|
||||
"maximum": 100,
|
||||
"minimum": 0,
|
||||
"x-order": 8,
|
||||
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
|
||||
},
|
||||
"prompt_strength": {
|
||||
"type": "number",
|
||||
"title": "Prompt Strength",
|
||||
"default": 0.8,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 3,
|
||||
"description": "Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image"
|
||||
},
|
||||
"disable_safety_checker": {
|
||||
"type": "boolean",
|
||||
"title": "Disable Safety Checker",
|
||||
"default": false,
|
||||
"x-order": 9,
|
||||
"description": "Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output",
|
||||
"format": "uri"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"aspect_ratio": {
|
||||
"enum": [
|
||||
"1:1",
|
||||
"16:9",
|
||||
"21:9",
|
||||
"2:3",
|
||||
"3:2",
|
||||
"4:5",
|
||||
"5:4",
|
||||
"9:16",
|
||||
"9:21"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "aspect_ratio",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"output_format": {
|
||||
"enum": [
|
||||
"webp",
|
||||
"jpg",
|
||||
"png"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "output_format",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,532 @@
|
||||
{
|
||||
"url": "https://replicate.com/black-forest-labs/flux-pro",
|
||||
"owner": "black-forest-labs",
|
||||
"name": "flux-pro",
|
||||
"description": "State-of-the-art image generation with top of the line prompt following, visual quality, image detail and output diversity.",
|
||||
"visibility": "public",
|
||||
"github_url": null,
|
||||
"paper_url": null,
|
||||
"license_url": "https://docs.bfl.ml/agreement/",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/ae5d9d40-31f5-4c33-bd66-2f22b0e8d459/Flux_Pro_Sample.jpg",
|
||||
"default_example": {
|
||||
"id": "kg1krwsdf9rg80ch1sgsrgq7h8",
|
||||
"model": "replicate/flux-pro-internal-model",
|
||||
"version": "7722fec61a47408ca7445651e87bdb9b875e4c11d4f2f07c79ad5c2c8554d165",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"steps": 25,
|
||||
"width": 1024,
|
||||
"height": 1024,
|
||||
"prompt": "The world's largest black forest cake, the size of a building, surrounded by trees of the black forest",
|
||||
"guidance": 3,
|
||||
"interval": 2,
|
||||
"safety_tolerance": 2
|
||||
},
|
||||
"output": "https://bflapistorage.blob.core.windows.net/public/c8145aa6e5894cbd815d6ce708fea9f2/sample.jpg",
|
||||
"logs": null,
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"image_count": 1,
|
||||
"predict_time": 14.093671466,
|
||||
"total_time": 14.102014
|
||||
},
|
||||
"created_at": "2024-08-01T14:38:55.354000Z",
|
||||
"started_at": "2024-08-01T14:38:55.362343Z",
|
||||
"completed_at": "2024-08-01T14:39:09.456014Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/kg1krwsdf9rg80ch1sgsrgq7h8",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/kg1krwsdf9rg80ch1sgsrgq7h8/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "74346f05d975befd8e33db3d639761186019ea4b1a7dd8b236695c785100afbe",
|
||||
"created_at": "2024-08-01T10:55:08.089482+00:00",
|
||||
"cog_version": "0.10.0-alpha20",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/ready": {
|
||||
"get": {
|
||||
"summary": "Ready",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Ready Ready Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "ready_ready_get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"required": [
|
||||
"prompt"
|
||||
],
|
||||
"properties": {
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 6,
|
||||
"description": "Random seed. Set for reproducible generation"
|
||||
},
|
||||
"steps": {
|
||||
"type": "integer",
|
||||
"title": "Steps",
|
||||
"default": 25,
|
||||
"maximum": 50,
|
||||
"minimum": 1,
|
||||
"x-order": 2,
|
||||
"description": "Number of diffusion steps"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"x-order": 0,
|
||||
"description": "Text prompt for image generation"
|
||||
},
|
||||
"guidance": {
|
||||
"type": "number",
|
||||
"title": "Guidance",
|
||||
"default": 3,
|
||||
"maximum": 5,
|
||||
"minimum": 2,
|
||||
"x-order": 3,
|
||||
"description": "Controls the balance between adherence to the text prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt."
|
||||
},
|
||||
"interval": {
|
||||
"type": "number",
|
||||
"title": "Interval",
|
||||
"default": 2,
|
||||
"maximum": 4,
|
||||
"minimum": 1,
|
||||
"x-order": 4,
|
||||
"description": "Interval is a setting that increases the variance in possible outputs letting the model be a tad more dynamic in what outputs it may produce in terms of composition, color, detail, and prompt interpretation. Setting this value low will ensure strong prompt following with more consistent outputs, setting it higher will produce more dynamic or varied outputs."
|
||||
},
|
||||
"aspect_ratio": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/aspect_ratio"
|
||||
}
|
||||
],
|
||||
"default": "1:1",
|
||||
"x-order": 1,
|
||||
"description": "Aspect ratio for the generated image"
|
||||
},
|
||||
"safety_tolerance": {
|
||||
"type": "integer",
|
||||
"title": "Safety Tolerance",
|
||||
"default": 2,
|
||||
"maximum": 5,
|
||||
"minimum": 1,
|
||||
"x-order": 5,
|
||||
"description": "Safety tolerance, 1 is most strict and 5 is most permissive"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output",
|
||||
"format": "uri"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"aspect_ratio": {
|
||||
"enum": [
|
||||
"1:1",
|
||||
"16:9",
|
||||
"2:3",
|
||||
"3:2",
|
||||
"4:5",
|
||||
"5:4",
|
||||
"9:16"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "aspect_ratio",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,540 @@
|
||||
{
|
||||
"url": "https://replicate.com/black-forest-labs/flux-schnell",
|
||||
"owner": "black-forest-labs",
|
||||
"name": "flux-schnell",
|
||||
"description": "The fastest image generation model tailored for local development and personal use",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/replicate/cog-flux-schnell",
|
||||
"paper_url": null,
|
||||
"license_url": "https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-schnell",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/1f550ddf-344a-481b-aa2b-8f662983f7d4/Replicate_Prediction_14.webp",
|
||||
"default_example": {
|
||||
"id": "da9aj0hx9xrm40ch1ptaj3cb44",
|
||||
"model": "replicate/flux-schnell-internal-model",
|
||||
"version": "a6ad06b0260bf44c5beb738f4c0985a6759c25c982173acab5cab0ec6b035a33",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot",
|
||||
"aspect_ratio": "1:1",
|
||||
"output_format": "webp",
|
||||
"output_quality": 90
|
||||
},
|
||||
"output": "https://replicate.delivery/yhqm/SBdmNAnv2eWgdCnoKp1YqXJufQrkwsL3kBZstQfYs961dkcmA/out-0.webp",
|
||||
"logs": null,
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"image_count": 1,
|
||||
"predict_time": 1.242813822,
|
||||
"total_time": 1.278731
|
||||
},
|
||||
"created_at": "2024-08-01T11:30:01.679000Z",
|
||||
"started_at": "2024-08-01T11:30:01.714917Z",
|
||||
"completed_at": "2024-08-01T11:30:02.957731Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/da9aj0hx9xrm40ch1ptaj3cb44",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/da9aj0hx9xrm40ch1ptaj3cb44/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "f2ab8a5bfe79f02f0789a146cf5e73d2a4ff2684a98c2b303d1e1ff3814271db",
|
||||
"created_at": "2024-07-30T00:32:53.657122+00:00",
|
||||
"cog_version": "0.10.0-alpha16",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/ready": {
|
||||
"get": {
|
||||
"summary": "Ready",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Ready Ready Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "ready_ready_get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"required": [
|
||||
"prompt"
|
||||
],
|
||||
"properties": {
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 3,
|
||||
"description": "Random seed. Set for reproducible generation"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"x-order": 0,
|
||||
"description": "Prompt for generated image"
|
||||
},
|
||||
"num_outputs": {
|
||||
"type": "integer",
|
||||
"title": "Num Outputs",
|
||||
"default": 1,
|
||||
"maximum": 4,
|
||||
"minimum": 1,
|
||||
"x-order": 2,
|
||||
"description": "Number of outputs to generate"
|
||||
},
|
||||
"aspect_ratio": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/aspect_ratio"
|
||||
}
|
||||
],
|
||||
"default": "1:1",
|
||||
"x-order": 1,
|
||||
"description": "Aspect ratio for the generated image"
|
||||
},
|
||||
"output_format": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/output_format"
|
||||
}
|
||||
],
|
||||
"default": "webp",
|
||||
"x-order": 4,
|
||||
"description": "Format of the output images"
|
||||
},
|
||||
"output_quality": {
|
||||
"type": "integer",
|
||||
"title": "Output Quality",
|
||||
"default": 80,
|
||||
"maximum": 100,
|
||||
"minimum": 0,
|
||||
"x-order": 5,
|
||||
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
|
||||
},
|
||||
"disable_safety_checker": {
|
||||
"type": "boolean",
|
||||
"title": "Disable Safety Checker",
|
||||
"default": false,
|
||||
"x-order": 6,
|
||||
"description": "Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output",
|
||||
"format": "uri"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"aspect_ratio": {
|
||||
"enum": [
|
||||
"1:1",
|
||||
"16:9",
|
||||
"21:9",
|
||||
"2:3",
|
||||
"3:2",
|
||||
"4:5",
|
||||
"5:4",
|
||||
"9:16",
|
||||
"9:21"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "aspect_ratio",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"output_format": {
|
||||
"enum": [
|
||||
"webp",
|
||||
"jpg",
|
||||
"png"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "output_format",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,778 @@
|
||||
{
|
||||
"url": "https://replicate.com/cjwbw/seamless_communication",
|
||||
"owner": "cjwbw",
|
||||
"name": "seamless_communication",
|
||||
"description": "SeamlessM4T—Massively Multilingual & Multimodal Machine Translation",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/chenxwh/seamless_communication",
|
||||
"paper_url": "https://dl.fbaipublicfiles.com/seamless/seamless_m4t_paper.pdf",
|
||||
"license_url": "https://github.com/chenxwh/seamless_communication/blob/main/LICENSE",
|
||||
"run_count": 0,
|
||||
"cover_image_url": null,
|
||||
"default_example": {
|
||||
"id": "habhkrlbto7c6tm7apuk5amq6u",
|
||||
"model": "cjwbw/seamless_communication",
|
||||
"version": "668a4fec05a887143e5fe8d45df25ec4c794dd43169b9a11562309b2d45873b0",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"task_name": "S2ST (Speech to Speech translation)",
|
||||
"input_audio": "https://replicate.delivery/pbxt/JWSAJpKxUszI0scNYatExIXZX2rJ78UBilGXCTq4Ct9BDwTA/sample_input_2.mp3",
|
||||
"input_text_language": "None",
|
||||
"max_input_audio_length": 60,
|
||||
"target_language_text_only": "Norwegian Nynorsk",
|
||||
"target_language_with_speech": "French"
|
||||
},
|
||||
"output": {
|
||||
"text_output": "Le modèle M4T sans faille de MetaAI démocratise la communication parlée à travers les barrières linguistiques.",
|
||||
"audio_output": "https://pbxt.replicate.delivery/HSuWXcQA0PbWIBQ3renLWSxbFBKcsCQojUtAQK6eys5038jRA/out.wav"
|
||||
},
|
||||
"logs": null,
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 5.103559,
|
||||
"total_time": 84.660864
|
||||
},
|
||||
"created_at": "2023-09-13T20:29:20.589970Z",
|
||||
"started_at": "2023-09-13T20:30:40.147275Z",
|
||||
"completed_at": "2023-09-13T20:30:45.250834Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/habhkrlbto7c6tm7apuk5amq6u",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/habhkrlbto7c6tm7apuk5amq6u/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "668a4fec05a887143e5fe8d45df25ec4c794dd43169b9a11562309b2d45873b0",
|
||||
"created_at": "2023-09-13T20:28:44.472205+00:00",
|
||||
"cog_version": "0.8.3",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"task_name": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/task_name"
|
||||
}
|
||||
],
|
||||
"default": "S2ST (Speech to Speech translation)",
|
||||
"x-order": 0,
|
||||
"description": "Choose a task"
|
||||
},
|
||||
"input_text": {
|
||||
"type": "string",
|
||||
"title": "Input Text",
|
||||
"x-order": 2,
|
||||
"description": "Provide input for tasks with text: T2ST and T2TT."
|
||||
},
|
||||
"input_audio": {
|
||||
"type": "string",
|
||||
"title": "Input Audio",
|
||||
"format": "uri",
|
||||
"x-order": 1,
|
||||
"description": "Provide input file for tasks with speech input: S2ST, S2TT and ASR."
|
||||
},
|
||||
"input_text_language": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/input_text_language"
|
||||
}
|
||||
],
|
||||
"default": "None",
|
||||
"x-order": 3,
|
||||
"description": "Specify language of the input_text for T2ST and T2TT"
|
||||
},
|
||||
"max_input_audio_length": {
|
||||
"type": "number",
|
||||
"title": "Max Input Audio Length",
|
||||
"default": 60,
|
||||
"x-order": 6,
|
||||
"description": "Set maximum input audio length."
|
||||
},
|
||||
"target_language_text_only": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/target_language_text_only"
|
||||
}
|
||||
],
|
||||
"default": "Norwegian Nynorsk",
|
||||
"x-order": 5,
|
||||
"description": "Set target language for tasks with text output only: S2TT, T2TT and ASR."
|
||||
},
|
||||
"target_language_with_speech": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/target_language_with_speech"
|
||||
}
|
||||
],
|
||||
"default": "French",
|
||||
"x-order": 4,
|
||||
"description": "Set target language for tasks with speech output: S2ST or T2ST. Less languages are available for speech compared to text output."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"$ref": "#/components/schemas/ModelOutput",
|
||||
"title": "Output"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"task_name": {
|
||||
"enum": [
|
||||
"S2ST (Speech to Speech translation)",
|
||||
"S2TT (Speech to Text translation)",
|
||||
"T2ST (Text to Speech translation)",
|
||||
"T2TT (Text to Text translation)",
|
||||
"ASR (Automatic Speech Recognition)"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "task_name",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ModelOutput": {
|
||||
"type": "object",
|
||||
"title": "ModelOutput",
|
||||
"required": [
|
||||
"text_output"
|
||||
],
|
||||
"properties": {
|
||||
"text_output": {
|
||||
"type": "string",
|
||||
"title": "Text Output"
|
||||
},
|
||||
"audio_output": {
|
||||
"type": "string",
|
||||
"title": "Audio Output",
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"completed",
|
||||
"start",
|
||||
"logs",
|
||||
"output"
|
||||
],
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
},
|
||||
"input_text_language": {
|
||||
"enum": [
|
||||
"None",
|
||||
"Afrikaans",
|
||||
"Amharic",
|
||||
"Armenian",
|
||||
"Assamese",
|
||||
"Basque",
|
||||
"Belarusian",
|
||||
"Bengali",
|
||||
"Bosnian",
|
||||
"Bulgarian",
|
||||
"Burmese",
|
||||
"Cantonese",
|
||||
"Catalan",
|
||||
"Cebuano",
|
||||
"Central Kurdish",
|
||||
"Croatian",
|
||||
"Czech",
|
||||
"Danish",
|
||||
"Dutch",
|
||||
"Egyptian Arabic",
|
||||
"English",
|
||||
"Estonian",
|
||||
"Finnish",
|
||||
"French",
|
||||
"Galician",
|
||||
"Ganda",
|
||||
"Georgian",
|
||||
"German",
|
||||
"Greek",
|
||||
"Gujarati",
|
||||
"Halh Mongolian",
|
||||
"Hebrew",
|
||||
"Hindi",
|
||||
"Hungarian",
|
||||
"Icelandic",
|
||||
"Igbo",
|
||||
"Indonesian",
|
||||
"Irish",
|
||||
"Italian",
|
||||
"Japanese",
|
||||
"Javanese",
|
||||
"Kannada",
|
||||
"Kazakh",
|
||||
"Khmer",
|
||||
"Korean",
|
||||
"Kyrgyz",
|
||||
"Lao",
|
||||
"Lithuanian",
|
||||
"Luo",
|
||||
"Macedonian",
|
||||
"Maithili",
|
||||
"Malayalam",
|
||||
"Maltese",
|
||||
"Mandarin Chinese",
|
||||
"Marathi",
|
||||
"Meitei",
|
||||
"Modern Standard Arabic",
|
||||
"Moroccan Arabic",
|
||||
"Nepali",
|
||||
"North Azerbaijani",
|
||||
"Northern Uzbek",
|
||||
"Norwegian Bokmål",
|
||||
"Norwegian Nynorsk",
|
||||
"Nyanja",
|
||||
"Odia",
|
||||
"Polish",
|
||||
"Portuguese",
|
||||
"Punjabi",
|
||||
"Romanian",
|
||||
"Russian",
|
||||
"Serbian",
|
||||
"Shona",
|
||||
"Sindhi",
|
||||
"Slovak",
|
||||
"Slovenian",
|
||||
"Somali",
|
||||
"Southern Pashto",
|
||||
"Spanish",
|
||||
"Standard Latvian",
|
||||
"Standard Malay",
|
||||
"Swahili",
|
||||
"Swedish",
|
||||
"Tagalog",
|
||||
"Tajik",
|
||||
"Tamil",
|
||||
"Telugu",
|
||||
"Thai",
|
||||
"Turkish",
|
||||
"Ukrainian",
|
||||
"Urdu",
|
||||
"Vietnamese",
|
||||
"Welsh",
|
||||
"West Central Oromo",
|
||||
"Western Persian",
|
||||
"Yoruba",
|
||||
"Zulu"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "input_text_language",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"target_language_text_only": {
|
||||
"enum": [
|
||||
"Afrikaans",
|
||||
"Amharic",
|
||||
"Armenian",
|
||||
"Assamese",
|
||||
"Basque",
|
||||
"Belarusian",
|
||||
"Bengali",
|
||||
"Bosnian",
|
||||
"Bulgarian",
|
||||
"Burmese",
|
||||
"Cantonese",
|
||||
"Catalan",
|
||||
"Cebuano",
|
||||
"Central Kurdish",
|
||||
"Croatian",
|
||||
"Czech",
|
||||
"Danish",
|
||||
"Dutch",
|
||||
"Egyptian Arabic",
|
||||
"English",
|
||||
"Estonian",
|
||||
"Finnish",
|
||||
"French",
|
||||
"Galician",
|
||||
"Ganda",
|
||||
"Georgian",
|
||||
"German",
|
||||
"Greek",
|
||||
"Gujarati",
|
||||
"Halh Mongolian",
|
||||
"Hebrew",
|
||||
"Hindi",
|
||||
"Hungarian",
|
||||
"Icelandic",
|
||||
"Igbo",
|
||||
"Indonesian",
|
||||
"Irish",
|
||||
"Italian",
|
||||
"Japanese",
|
||||
"Javanese",
|
||||
"Kannada",
|
||||
"Kazakh",
|
||||
"Khmer",
|
||||
"Korean",
|
||||
"Kyrgyz",
|
||||
"Lao",
|
||||
"Lithuanian",
|
||||
"Luo",
|
||||
"Macedonian",
|
||||
"Maithili",
|
||||
"Malayalam",
|
||||
"Maltese",
|
||||
"Mandarin Chinese",
|
||||
"Marathi",
|
||||
"Meitei",
|
||||
"Modern Standard Arabic",
|
||||
"Moroccan Arabic",
|
||||
"Nepali",
|
||||
"North Azerbaijani",
|
||||
"Northern Uzbek",
|
||||
"Norwegian Bokmål",
|
||||
"Norwegian Nynorsk",
|
||||
"Nyanja",
|
||||
"Odia",
|
||||
"Polish",
|
||||
"Portuguese",
|
||||
"Punjabi",
|
||||
"Romanian",
|
||||
"Russian",
|
||||
"Serbian",
|
||||
"Shona",
|
||||
"Sindhi",
|
||||
"Slovak",
|
||||
"Slovenian",
|
||||
"Somali",
|
||||
"Southern Pashto",
|
||||
"Spanish",
|
||||
"Standard Latvian",
|
||||
"Standard Malay",
|
||||
"Swahili",
|
||||
"Swedish",
|
||||
"Tagalog",
|
||||
"Tajik",
|
||||
"Tamil",
|
||||
"Telugu",
|
||||
"Thai",
|
||||
"Turkish",
|
||||
"Ukrainian",
|
||||
"Urdu",
|
||||
"Vietnamese",
|
||||
"Welsh",
|
||||
"West Central Oromo",
|
||||
"Western Persian",
|
||||
"Yoruba",
|
||||
"Zulu"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "target_language_text_only",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"target_language_with_speech": {
|
||||
"enum": [
|
||||
"Bengali",
|
||||
"Catalan",
|
||||
"Czech",
|
||||
"Danish",
|
||||
"Dutch",
|
||||
"English",
|
||||
"Estonian",
|
||||
"Finnish",
|
||||
"French",
|
||||
"German",
|
||||
"Hindi",
|
||||
"Indonesian",
|
||||
"Italian",
|
||||
"Japanese",
|
||||
"Korean",
|
||||
"Maltese",
|
||||
"Mandarin Chinese",
|
||||
"Modern Standard Arabic",
|
||||
"Northern Uzbek",
|
||||
"Polish",
|
||||
"Portuguese",
|
||||
"Romanian",
|
||||
"Russian",
|
||||
"Slovak",
|
||||
"Spanish",
|
||||
"Swahili",
|
||||
"Swedish",
|
||||
"Tagalog",
|
||||
"Telugu",
|
||||
"Thai",
|
||||
"Turkish",
|
||||
"Ukrainian",
|
||||
"Urdu",
|
||||
"Vietnamese",
|
||||
"Welsh",
|
||||
"Western Persian"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "target_language_with_speech",
|
||||
"description": "An enumeration."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,9 +34,9 @@
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "a75c919339f65bf00afa96511af653fdbd0ec3cb0f5e6f4350809445eee0e14f",
|
||||
"created_at": "2024-06-11T18:23:49.034977+00:00",
|
||||
"cog_version": "v0.9.5+dev",
|
||||
"id": "69196a237cdc310988a4b12ad64f4b36d10189428c19a18526af708546e1856f",
|
||||
"created_at": "2024-07-02T06:00:03.657728+00:00",
|
||||
"cog_version": "v0.10.0-alpha13+dev",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
@@ -61,6 +61,24 @@
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/ready": {
|
||||
"get": {
|
||||
"summary": "Ready",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Ready Ready Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "ready_ready_get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
@@ -269,17 +287,40 @@
|
||||
"x-order": 0,
|
||||
"description": "Image input"
|
||||
},
|
||||
"top_k": {
|
||||
"type": "integer",
|
||||
"title": "Top K",
|
||||
"default": 1,
|
||||
"maximum": 1000,
|
||||
"minimum": 1,
|
||||
"x-order": 3,
|
||||
"description": "Top-K sampling"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"x-order": 1,
|
||||
"description": "Propmt"
|
||||
"description": "Prompt"
|
||||
},
|
||||
"max_length": {
|
||||
"type": "integer",
|
||||
"title": "Max Length",
|
||||
"default": 512,
|
||||
"maximum": 8192,
|
||||
"minimum": 1,
|
||||
"x-order": 2,
|
||||
"description": "Maximum number of tokens to generate."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output"
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Output",
|
||||
"x-cog-array-type": "iterator",
|
||||
"x-cog-array-display": "concatenate"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
|
||||
@@ -0,0 +1,475 @@
|
||||
{
|
||||
"url": "https://replicate.com/declare-lab/tango",
|
||||
"owner": "declare-lab",
|
||||
"name": "tango",
|
||||
"description": "Tango 2: Use text prompts to make sound effects",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/declare-lab/tango",
|
||||
"paper_url": "https://arxiv.org/pdf/2304.13731.pdf",
|
||||
"license_url": "https://github.com/declare-lab/tango/blob/master/LICENSE.md",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/3e074eeb-6f95-4c4c-b7d8-38f5b9c3a2fd/tango2.png",
|
||||
"default_example": {
|
||||
"id": "4gahgg8fa1rgm0cf6sg80rcgn4",
|
||||
"model": "declare-lab/tango",
|
||||
"version": "740e4f5e59bd3b871c9e5b4efbff7ded516d40aa6abf4e95fd5e8dd149b7bc3f",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"model": "tango2",
|
||||
"steps": 100,
|
||||
"prompt": "Quiet speech and then and airplane flying away",
|
||||
"guidance": 3
|
||||
},
|
||||
"output": "https://replicate.delivery/pbxt/RqTLAYe5ZM0DEaHQlDwvA9PGLud8TeEwrGkG3fAWY5e62eAWC/output.wav",
|
||||
"logs": null,
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 12.386586,
|
||||
"total_time": 184.047861
|
||||
},
|
||||
"created_at": "2024-05-01T22:56:56.144000Z",
|
||||
"started_at": "2024-05-01T22:59:47.805275Z",
|
||||
"completed_at": "2024-05-01T23:00:00.191861Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/4gahgg8fa1rgm0cf6sg80rcgn4",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/4gahgg8fa1rgm0cf6sg80rcgn4/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "740e4f5e59bd3b871c9e5b4efbff7ded516d40aa6abf4e95fd5e8dd149b7bc3f",
|
||||
"created_at": "2024-05-01T22:29:30.165543+00:00",
|
||||
"cog_version": "v0.9.6+dev",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"model": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/model"
|
||||
}
|
||||
],
|
||||
"default": "tango2",
|
||||
"x-order": 1,
|
||||
"description": "choose a model"
|
||||
},
|
||||
"steps": {
|
||||
"type": "integer",
|
||||
"title": "Steps",
|
||||
"default": 100,
|
||||
"x-order": 2,
|
||||
"description": "inference steps"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "Quiet speech and then and airplane flying away",
|
||||
"x-order": 0,
|
||||
"description": "Input prompt"
|
||||
},
|
||||
"guidance": {
|
||||
"type": "number",
|
||||
"title": "Guidance",
|
||||
"default": 3,
|
||||
"x-order": 3,
|
||||
"description": "guidance scale"
|
||||
}
|
||||
}
|
||||
},
|
||||
"model": {
|
||||
"enum": [
|
||||
"tango2",
|
||||
"tango2-full"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "model",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output",
|
||||
"format": "uri"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,615 @@
|
||||
{
|
||||
"url": "https://replicate.com/fofr/latent-consistency-model",
|
||||
"owner": "fofr",
|
||||
"name": "latent-consistency-model",
|
||||
"description": "Super-fast, 0.6s per image. LCM with img2img, large batching and canny controlnet",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/fofr/cog-lcm",
|
||||
"paper_url": null,
|
||||
"license_url": "https://github.com/fofr/cog-lcm/blob/main/LICENSE",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://replicate.delivery/pbxt/LF23xWrMie2vMCmbiswetET2BLperpEtNodZSN4yNfDkAClHB/out-0.jpg",
|
||||
"default_example": {
|
||||
"id": "uzzsxzjb2sus5xl5jqnxpjlyoq",
|
||||
"model": "fofr/latent-consistency-model",
|
||||
"version": "fd0f02756ae5c3244cfb45c0603296e7418c07d1501bc6e9463ea2d215d5e38f",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"image": "https://replicate.delivery/pbxt/JlG0Efd2ubBp9yGnlOi7I9Se2rXnJSrPFogLf0YieKgjnWN6/download-6.png",
|
||||
"width": 768,
|
||||
"height": 768,
|
||||
"prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k",
|
||||
"num_images": 1,
|
||||
"guidance_scale": 8,
|
||||
"archive_outputs": false,
|
||||
"prompt_strength": 0.45,
|
||||
"sizing_strategy": "width/height",
|
||||
"lcm_origin_steps": 50,
|
||||
"canny_low_threshold": 100,
|
||||
"num_inference_steps": 4,
|
||||
"canny_high_threshold": 200,
|
||||
"control_guidance_end": 1,
|
||||
"control_guidance_start": 0,
|
||||
"controlnet_conditioning_scale": 2
|
||||
},
|
||||
"output": [
|
||||
"https://replicate.delivery/pbxt/LF23xWrMie2vMCmbiswetET2BLperpEtNodZSN4yNfDkAClHB/out-0.jpg"
|
||||
],
|
||||
"logs": "Using seed: 38477\nFound 1 prompt:\n- Self-portrait oil painting, a beautiful cyborg with golden hair, 8k\nMaking 1 image\nUsing given dimensions\nimg2img mode\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 17.91it/s]\n100%|██████████| 4/4 [00:00<00:00, 17.82it/s]\n100%|██████████| 4/4 [00:00<00:00, 17.81it/s]",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 0.845919,
|
||||
"total_time": 1.28709
|
||||
},
|
||||
"created_at": "2023-11-17T12:01:12.926959Z",
|
||||
"started_at": "2023-11-17T12:01:13.368130Z",
|
||||
"completed_at": "2023-11-17T12:01:14.214049Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/uzzsxzjb2sus5xl5jqnxpjlyoq",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/uzzsxzjb2sus5xl5jqnxpjlyoq/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "683d19dc312f7a9f0428b04429a9ccefd28dbf7785fef083ad5cf991b65f406f",
|
||||
"created_at": "2024-01-10T10:02:04.312938+00:00",
|
||||
"cog_version": "0.8.6",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 10,
|
||||
"description": "Random seed. Leave blank to randomize the seed"
|
||||
},
|
||||
"image": {
|
||||
"type": "string",
|
||||
"title": "Image",
|
||||
"format": "uri",
|
||||
"x-order": 4,
|
||||
"description": "Input image for img2img"
|
||||
},
|
||||
"width": {
|
||||
"type": "integer",
|
||||
"title": "Width",
|
||||
"default": 768,
|
||||
"x-order": 1,
|
||||
"description": "Width of output image. Lower if out of memory"
|
||||
},
|
||||
"height": {
|
||||
"type": "integer",
|
||||
"title": "Height",
|
||||
"default": 768,
|
||||
"x-order": 2,
|
||||
"description": "Height of output image. Lower if out of memory"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k",
|
||||
"x-order": 0,
|
||||
"description": "For multiple prompts, enter each on a new line."
|
||||
},
|
||||
"num_images": {
|
||||
"type": "integer",
|
||||
"title": "Num Images",
|
||||
"default": 1,
|
||||
"maximum": 50,
|
||||
"minimum": 1,
|
||||
"x-order": 6,
|
||||
"description": "Number of images per prompt"
|
||||
},
|
||||
"control_image": {
|
||||
"type": "string",
|
||||
"title": "Control Image",
|
||||
"format": "uri",
|
||||
"x-order": 11,
|
||||
"description": "Image for controlnet conditioning"
|
||||
},
|
||||
"guidance_scale": {
|
||||
"type": "number",
|
||||
"title": "Guidance Scale",
|
||||
"default": 8,
|
||||
"maximum": 20,
|
||||
"minimum": 1,
|
||||
"x-order": 8,
|
||||
"description": "Scale for classifier-free guidance"
|
||||
},
|
||||
"archive_outputs": {
|
||||
"type": "boolean",
|
||||
"title": "Archive Outputs",
|
||||
"default": false,
|
||||
"x-order": 17,
|
||||
"description": "Option to archive the output images"
|
||||
},
|
||||
"prompt_strength": {
|
||||
"type": "number",
|
||||
"title": "Prompt Strength",
|
||||
"default": 0.8,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 5,
|
||||
"description": "Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image"
|
||||
},
|
||||
"sizing_strategy": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/sizing_strategy"
|
||||
}
|
||||
],
|
||||
"default": "width/height",
|
||||
"x-order": 3,
|
||||
"description": "Decide how to resize images – use width/height, resize based on input image or control image"
|
||||
},
|
||||
"lcm_origin_steps": {
|
||||
"type": "integer",
|
||||
"title": "Lcm Origin Steps",
|
||||
"default": 50,
|
||||
"minimum": 1,
|
||||
"x-order": 9
|
||||
},
|
||||
"canny_low_threshold": {
|
||||
"type": "number",
|
||||
"title": "Canny Low Threshold",
|
||||
"default": 100,
|
||||
"maximum": 255,
|
||||
"minimum": 1,
|
||||
"x-order": 15,
|
||||
"description": "Canny low threshold"
|
||||
},
|
||||
"num_inference_steps": {
|
||||
"type": "integer",
|
||||
"title": "Num Inference Steps",
|
||||
"default": 8,
|
||||
"maximum": 50,
|
||||
"minimum": 1,
|
||||
"x-order": 7,
|
||||
"description": "Number of denoising steps. Recommend 1 to 8 steps."
|
||||
},
|
||||
"canny_high_threshold": {
|
||||
"type": "number",
|
||||
"title": "Canny High Threshold",
|
||||
"default": 200,
|
||||
"maximum": 255,
|
||||
"minimum": 1,
|
||||
"x-order": 16,
|
||||
"description": "Canny high threshold"
|
||||
},
|
||||
"control_guidance_end": {
|
||||
"type": "number",
|
||||
"title": "Control Guidance End",
|
||||
"default": 1,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 14,
|
||||
"description": "Controlnet end"
|
||||
},
|
||||
"control_guidance_start": {
|
||||
"type": "number",
|
||||
"title": "Control Guidance Start",
|
||||
"default": 0,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 13,
|
||||
"description": "Controlnet start"
|
||||
},
|
||||
"disable_safety_checker": {
|
||||
"type": "boolean",
|
||||
"title": "Disable Safety Checker",
|
||||
"default": false,
|
||||
"x-order": 18,
|
||||
"description": "Disable safety checker for generated images. This feature is only available through the API"
|
||||
},
|
||||
"controlnet_conditioning_scale": {
|
||||
"type": "number",
|
||||
"title": "Controlnet Conditioning Scale",
|
||||
"default": 2,
|
||||
"maximum": 4,
|
||||
"minimum": 0.1,
|
||||
"x-order": 12,
|
||||
"description": "Controlnet conditioning scale"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"title": "Output"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sizing_strategy": {
|
||||
"enum": [
|
||||
"width/height",
|
||||
"input_image",
|
||||
"control_image"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "sizing_strategy",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,565 @@
|
||||
{
|
||||
"url": "https://replicate.com/lucataco/magnet",
|
||||
"owner": "lucataco",
|
||||
"name": "magnet",
|
||||
"description": "MAGNeT: Masked Audio Generation using a Single Non-Autoregressive Transformer",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/lucataco/audiocraft",
|
||||
"paper_url": "https://arxiv.org/abs/2401.04577",
|
||||
"license_url": "https://github.com/facebookresearch/audiocraft?tab=MIT-1-ov-file#readme",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/b958c60f-aa4a-44ac-b251-34317cd96245/magnet.jpeg",
|
||||
"default_example": {
|
||||
"id": "6usmrb3bog2on4b52tcnpt74oa",
|
||||
"model": "lucataco/magnet",
|
||||
"version": "e8e2ecd4a1dabb58924aa8300b668290cafae166dd36baf65dad9875877de50e",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"model": "facebook/magnet-small-10secs",
|
||||
"top_p": 0.9,
|
||||
"prompt": "80s electronic track with melodic synthesizers, catchy beat and groovy bass",
|
||||
"max_cfg": 10,
|
||||
"min_cfg": 1,
|
||||
"span_score": "prod-stride1",
|
||||
"variations": 3,
|
||||
"temperature": 3,
|
||||
"decoding_steps_stage_1": 20,
|
||||
"decoding_steps_stage_2": 10,
|
||||
"decoding_steps_stage_3": 10,
|
||||
"decoding_steps_stage_4": 10
|
||||
},
|
||||
"output": [
|
||||
"https://replicate.delivery/pbxt/A09884lLfO3qWidseZLbU90KjWL3eteHOcSafheMaucmacXjE/0.wav",
|
||||
"https://replicate.delivery/pbxt/dG0LoAeZINxcf0xueWgwgNHyF2tQv3Lvo7S7HfEew2JbNurRC/1.wav",
|
||||
"https://replicate.delivery/pbxt/K55hoe139wzvBqXV4pkfDMfqbqRMaYVnJ6O8M1efLbteacXjE/2.wav"
|
||||
],
|
||||
"logs": "/root/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torch/nn/utils/weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.\nwarnings.warn(\"torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.\")\nspiece.model: 0%| | 0.00/792k [00:00<?, ?B/s]\nspiece.model: 100%|██████████| 792k/792k [00:00<00:00, 31.9MB/s]\ntokenizer.json: 0%| | 0.00/1.39M [00:00<?, ?B/s]\ntokenizer.json: 100%|██████████| 1.39M/1.39M [00:00<00:00, 24.7MB/s]\nconfig.json: 0%| | 0.00/1.21k [00:00<?, ?B/s]\nconfig.json: 100%|██████████| 1.21k/1.21k [00:00<00:00, 10.4MB/s]\nmodel.safetensors: 0%| | 0.00/892M [00:00<?, ?B/s]\nmodel.safetensors: 4%|▎ | 31.5M/892M [00:00<00:05, 171MB/s]\nmodel.safetensors: 7%|▋ | 62.9M/892M [00:00<00:04, 193MB/s]\nmodel.safetensors: 11%|█ | 94.4M/892M [00:00<00:03, 208MB/s]\nmodel.safetensors: 14%|█▍ | 126M/892M [00:00<00:03, 231MB/s] \nmodel.safetensors: 18%|█▊ | 157M/892M [00:00<00:03, 213MB/s]\nmodel.safetensors: 22%|██▏ | 199M/892M [00:00<00:03, 227MB/s]\nmodel.safetensors: 26%|██▌ | 231M/892M [00:01<00:02, 232MB/s]\nmodel.safetensors: 29%|██▉ | 262M/892M [00:01<00:02, 234MB/s]\nmodel.safetensors: 33%|███▎ | 294M/892M [00:01<00:02, 235MB/s]\nmodel.safetensors: 36%|███▋ | 325M/892M [00:01<00:02, 239MB/s]\nmodel.safetensors: 40%|███▉ | 357M/892M [00:01<00:02, 233MB/s]\nmodel.safetensors: 44%|████▎ | 388M/892M [00:01<00:02, 233MB/s]\nmodel.safetensors: 47%|████▋ | 419M/892M [00:01<00:02, 235MB/s]\nmodel.safetensors: 51%|█████ | 451M/892M [00:01<00:01, 236MB/s]\nmodel.safetensors: 54%|█████▍ | 482M/892M [00:02<00:01, 227MB/s]\nmodel.safetensors: 58%|█████▊ | 514M/892M [00:02<00:01, 229MB/s]\nmodel.safetensors: 61%|██████ | 545M/892M [00:02<00:01, 228MB/s]\nmodel.safetensors: 65%|██████▍ | 577M/892M [00:02<00:01, 230MB/s]\nmodel.safetensors: 68%|██████▊ | 608M/892M [00:02<00:01, 238MB/s]\nmodel.safetensors: 72%|███████▏ | 640M/892M [00:02<00:01, 246MB/s]\nmodel.safetensors: 75%|███████▌ | 671M/892M [00:02<00:00, 245MB/s]\nmodel.safetensors: 79%|███████▉ | 703M/892M [00:03<00:00, 244MB/s]\nmodel.safetensors: 82%|████████▏ | 734M/892M [00:03<00:00, 242MB/s]\nmodel.safetensors: 86%|████████▌ | 765M/892M [00:03<00:00, 175MB/s]\nmodel.safetensors: 88%|████████▊ | 786M/892M [00:03<00:00, 155MB/s]\nmodel.safetensors: 92%|█████████▏| 818M/892M [00:03<00:00, 175MB/s]\nmodel.safetensors: 95%|█████████▌| 849M/892M [00:03<00:00, 190MB/s]\nmodel.safetensors: 99%|█████████▉| 881M/892M [00:04<00:00, 200MB/s]\nmodel.safetensors: 100%|██████████| 892M/892M [00:04<00:00, 217MB/s]",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 14.638626,
|
||||
"total_time": 110.299311
|
||||
},
|
||||
"created_at": "2024-01-17T19:26:53.835883Z",
|
||||
"started_at": "2024-01-17T19:28:29.496568Z",
|
||||
"completed_at": "2024-01-17T19:28:44.135194Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/6usmrb3bog2on4b52tcnpt74oa",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/6usmrb3bog2on4b52tcnpt74oa/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "e8e2ecd4a1dabb58924aa8300b668290cafae166dd36baf65dad9875877de50e",
|
||||
"created_at": "2024-01-17T19:21:50.415392+00:00",
|
||||
"cog_version": "0.8.6",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"model": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/model"
|
||||
}
|
||||
],
|
||||
"default": "facebook/magnet-small-10secs",
|
||||
"x-order": 1,
|
||||
"description": "Model to use"
|
||||
},
|
||||
"top_p": {
|
||||
"type": "number",
|
||||
"title": "Top P",
|
||||
"default": 0.9,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 5,
|
||||
"description": "Top p for sampling"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "80s electronic track with melodic synthesizers, catchy beat and groovy bass",
|
||||
"x-order": 0,
|
||||
"description": "Input Text"
|
||||
},
|
||||
"max_cfg": {
|
||||
"type": "number",
|
||||
"title": "Max Cfg",
|
||||
"default": 10,
|
||||
"x-order": 6,
|
||||
"description": "Max CFG coefficient"
|
||||
},
|
||||
"min_cfg": {
|
||||
"type": "number",
|
||||
"title": "Min Cfg",
|
||||
"default": 1,
|
||||
"x-order": 7,
|
||||
"description": "Min CFG coefficient"
|
||||
},
|
||||
"span_score": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/span_score"
|
||||
}
|
||||
],
|
||||
"default": "prod-stride1",
|
||||
"x-order": 3
|
||||
},
|
||||
"variations": {
|
||||
"type": "integer",
|
||||
"title": "Variations",
|
||||
"default": 3,
|
||||
"maximum": 4,
|
||||
"minimum": 1,
|
||||
"x-order": 2,
|
||||
"description": "Number of variations to generate"
|
||||
},
|
||||
"temperature": {
|
||||
"type": "number",
|
||||
"title": "Temperature",
|
||||
"default": 3,
|
||||
"x-order": 4,
|
||||
"description": "Temperature for sampling"
|
||||
},
|
||||
"decoding_steps_stage_1": {
|
||||
"type": "integer",
|
||||
"title": "Decoding Steps Stage 1",
|
||||
"default": 20,
|
||||
"x-order": 8,
|
||||
"description": "Number of decoding steps for stage 1"
|
||||
},
|
||||
"decoding_steps_stage_2": {
|
||||
"type": "integer",
|
||||
"title": "Decoding Steps Stage 2",
|
||||
"default": 10,
|
||||
"x-order": 9,
|
||||
"description": "Number of decoding steps for stage 2"
|
||||
},
|
||||
"decoding_steps_stage_3": {
|
||||
"type": "integer",
|
||||
"title": "Decoding Steps Stage 3",
|
||||
"default": 10,
|
||||
"x-order": 10,
|
||||
"description": "Number of decoding steps for stage 3"
|
||||
},
|
||||
"decoding_steps_stage_4": {
|
||||
"type": "integer",
|
||||
"title": "Decoding Steps Stage 4",
|
||||
"default": 10,
|
||||
"x-order": 11,
|
||||
"description": "Number of decoding steps for stage 4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"model": {
|
||||
"enum": [
|
||||
"facebook/magnet-small-10secs",
|
||||
"facebook/magnet-medium-10secs",
|
||||
"facebook/magnet-small-30secs",
|
||||
"facebook/magnet-medium-30secs",
|
||||
"facebook/audio-magnet-small",
|
||||
"facebook/audio-magnet-medium"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "model",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"Output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"title": "Output"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"span_score": {
|
||||
"enum": [
|
||||
"max-nonoverlap",
|
||||
"prod-stride1"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "span_score",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,492 @@
|
||||
{
|
||||
"url": "https://replicate.com/lucataco/xtts-v2",
|
||||
"owner": "lucataco",
|
||||
"name": "xtts-v2",
|
||||
"description": "Coqui XTTS-v2: Multilingual Text To Speech Voice Cloning",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/lucataco/cog-xtts-v2",
|
||||
"paper_url": "https://huggingface.co/coqui/XTTS-v2",
|
||||
"license_url": "https://coqui.ai/cpml",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/760b1398-2ab5-4e9b-959e-f3fed025c82f/xtts.png",
|
||||
"default_example": {
|
||||
"id": "adinmbzbslyshwze5s6qmpzmzu",
|
||||
"model": "lucataco/xtts-v2",
|
||||
"version": "49ff6cfa14bd4e7f80f62e2279f82f23dfc2e7970f825f8db5599f8a6213c009",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"text": "Hi there, I'm your new voice clone. Try your best to upload quality audio",
|
||||
"speaker": "https://replicate.delivery/pbxt/Jt79w0xsT64R1JsiJ0LQRL8UcWspg5J4RFrU6YwEKpOT1ukS/male.wav",
|
||||
"language": "en",
|
||||
"cleanup_voice": false
|
||||
},
|
||||
"output": "https://replicate.delivery/pbxt/eyESqfNPahnLY0gaohu50zm3nL6d5ZLxKdWMuqSPRqbihfxjA/output.wav",
|
||||
"logs": "ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\nbuilt with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\nconfiguration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\nlibavutil 56. 70.100 / 56. 70.100\nlibavcodec 58.134.100 / 58.134.100\nlibavformat 58. 76.100 / 58. 76.100\nlibavdevice 58. 13.100 / 58. 13.100\nlibavfilter 7.110.100 / 7.110.100\nlibswscale 5. 9.100 / 5. 9.100\nlibswresample 3. 9.100 / 3. 9.100\nlibpostproc 55. 9.100 / 55. 9.100\nGuessed Channel Layout for Input Stream #0.0 : mono\nInput #0, wav, from '/tmp/tmphmw6jd84male.wav':\nMetadata:\nencoder : Lavf58.29.100\nDuration: 00:00:08.64, bitrate: 705 kb/s\nStream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s\nStream mapping:\nStream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))\nPress [q] to stop, [?] for help\nOutput #0, wav, to '/tmp/speaker.wav':\nMetadata:\nISFT : Lavf58.76.100\nStream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s\nMetadata:\nencoder : Lavc58.134.100 pcm_s16le\nsize= 4kB time=00:00:00.00 bitrate=N/A speed=N/A\nsize= 744kB time=00:00:08.63 bitrate= 705.9kbits/s speed=1.75e+03x\nvideo:0kB audio:744kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.010236%\n> Text splitted to sentences.\n[\"Hi there, I'm your new voice clone.\", 'Try your best to upload quality audio']\n> Processing time: 3.3411097526550293\n> Real-time factor: 0.613438166517148",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 4.303438,
|
||||
"total_time": 4.319136
|
||||
},
|
||||
"created_at": "2023-11-16T16:42:06.735772Z",
|
||||
"started_at": "2023-11-16T16:42:06.751470Z",
|
||||
"completed_at": "2023-11-16T16:42:11.054908Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/adinmbzbslyshwze5s6qmpzmzu",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/adinmbzbslyshwze5s6qmpzmzu/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "684bc3855b37866c0c65add2ff39c78f3dea3f4ff103a436465326e0f438d55e",
|
||||
"created_at": "2023-11-28T15:39:16.308105+00:00",
|
||||
"cog_version": "0.8.6",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"required": [
|
||||
"speaker"
|
||||
],
|
||||
"properties": {
|
||||
"text": {
|
||||
"type": "string",
|
||||
"title": "Text",
|
||||
"default": "Hi there, I'm your new voice clone. Try your best to upload quality audio",
|
||||
"x-order": 0,
|
||||
"description": "Text to synthesize"
|
||||
},
|
||||
"speaker": {
|
||||
"type": "string",
|
||||
"title": "Speaker",
|
||||
"format": "uri",
|
||||
"x-order": 1,
|
||||
"description": "Original speaker audio (wav, mp3, m4a, ogg, or flv)"
|
||||
},
|
||||
"language": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/language"
|
||||
}
|
||||
],
|
||||
"default": "en",
|
||||
"x-order": 2,
|
||||
"description": "Output language for the synthesised speech"
|
||||
},
|
||||
"cleanup_voice": {
|
||||
"type": "boolean",
|
||||
"title": "Cleanup Voice",
|
||||
"default": false,
|
||||
"x-order": 3,
|
||||
"description": "Whether to apply denoising to the speaker audio (microphone recordings)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output",
|
||||
"format": "uri"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"language": {
|
||||
"enum": [
|
||||
"en",
|
||||
"es",
|
||||
"fr",
|
||||
"de",
|
||||
"it",
|
||||
"pt",
|
||||
"pl",
|
||||
"tr",
|
||||
"ru",
|
||||
"nl",
|
||||
"cs",
|
||||
"ar",
|
||||
"zh",
|
||||
"hu",
|
||||
"ko",
|
||||
"hi"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "language",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,496 @@
|
||||
{
|
||||
"url": "https://replicate.com/luosiallen/latent-consistency-model",
|
||||
"owner": "luosiallen",
|
||||
"name": "latent-consistency-model",
|
||||
"description": "Synthesizing High-Resolution Images with Few-Step Inference",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/luosiallen/latent-consistency-model",
|
||||
"paper_url": "https://arxiv.org/abs/2310.04378",
|
||||
"license_url": "https://github.com/chenxwh/latent-consistency-model/blob/main/LICENSE",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://pbxt.replicate.delivery/lE1UZOlbLiY7DpYlLvdUmyyt0Z0pu7tTTpgFn8a0ug3Jb4bE/out-0.png",
|
||||
"default_example": {
|
||||
"id": "5lwbdqdbyrilvvsm62mphlbghu",
|
||||
"model": "luosiallen/latent-consistency-model",
|
||||
"version": "553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"width": 768,
|
||||
"height": 768,
|
||||
"prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k",
|
||||
"num_images": 1,
|
||||
"guidance_scale": 8,
|
||||
"num_inference_steps": 8
|
||||
},
|
||||
"output": [
|
||||
"https://pbxt.replicate.delivery/lE1UZOlbLiY7DpYlLvdUmyyt0Z0pu7tTTpgFn8a0ug3Jb4bE/out-0.png"
|
||||
],
|
||||
"logs": "Using seed: 49296\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:01, 3.73it/s]\n 25%|██▌ | 2/8 [00:00<00:01, 4.96it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 5.53it/s]\n 50%|█████ | 4/8 [00:00<00:00, 5.85it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 6.04it/s]\n 75%|███████▌ | 6/8 [00:01<00:00, 6.16it/s]\n 88%|████████▊ | 7/8 [00:01<00:00, 6.23it/s]\n100%|██████████| 8/8 [00:01<00:00, 6.27it/s]\n100%|██████████| 8/8 [00:01<00:00, 5.88it/s]",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 3.024376,
|
||||
"total_time": 48.79153
|
||||
},
|
||||
"created_at": "2023-10-18T23:23:35.514094Z",
|
||||
"started_at": "2023-10-18T23:24:21.281248Z",
|
||||
"completed_at": "2023-10-18T23:24:24.305624Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/5lwbdqdbyrilvvsm62mphlbghu",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/5lwbdqdbyrilvvsm62mphlbghu/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc",
|
||||
"created_at": "2023-10-18T23:22:52.239431+00:00",
|
||||
"cog_version": "0.8.6",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 6,
|
||||
"description": "Random seed. Leave blank to randomize the seed"
|
||||
},
|
||||
"width": {
|
||||
"type": "integer",
|
||||
"title": "Width",
|
||||
"default": 768,
|
||||
"x-order": 1,
|
||||
"description": "Width of output image. Lower the setting if out of memory."
|
||||
},
|
||||
"height": {
|
||||
"type": "integer",
|
||||
"title": "Height",
|
||||
"default": 768,
|
||||
"x-order": 2,
|
||||
"description": "Height of output image. Lower the setting if out of memory."
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k",
|
||||
"x-order": 0,
|
||||
"description": "Input prompt"
|
||||
},
|
||||
"num_images": {
|
||||
"type": "integer",
|
||||
"title": "Num Images",
|
||||
"default": 1,
|
||||
"maximum": 4,
|
||||
"minimum": 1,
|
||||
"x-order": 3,
|
||||
"description": "Number of images to output."
|
||||
},
|
||||
"guidance_scale": {
|
||||
"type": "number",
|
||||
"title": "Guidance Scale",
|
||||
"default": 8,
|
||||
"maximum": 20,
|
||||
"minimum": 1,
|
||||
"x-order": 5,
|
||||
"description": "Scale for classifier-free guidance"
|
||||
},
|
||||
"num_inference_steps": {
|
||||
"type": "integer",
|
||||
"title": "Num Inference Steps",
|
||||
"default": 8,
|
||||
"maximum": 50,
|
||||
"minimum": 1,
|
||||
"x-order": 4,
|
||||
"description": "Number of denoising steps. Can be set to 1~50 steps. LCM support fast inference even <= 4 steps. Recommend: 1~8 steps."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"title": "Output"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,926 @@
|
||||
{
|
||||
"url": "https://replicate.com/meta/meta-llama-3.1-405b-instruct",
|
||||
"owner": "meta",
|
||||
"name": "meta-llama-3.1-405b-instruct",
|
||||
"description": "Meta's flagship 405 billion parameter language model, fine-tuned for chat completions",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1",
|
||||
"paper_url": null,
|
||||
"license_url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/e24670d1-18de-472a-94d8-b48b33d14489/meta-logo.png",
|
||||
"default_example": {
|
||||
"id": "zjq6szssxdrm20cgw0fsntgvbg",
|
||||
"model": "replicate-internal/llama-405b-instruct-vllm",
|
||||
"version": "67ab67c1831a3d70db83b12594ec256b8a97bd45e9427e05d20b8fa09ebf4061",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"top_p": 0.9,
|
||||
"prompt": "Tina has one brother and one sister. How many sisters do Tina's siblings have?",
|
||||
"max_tokens": 1024,
|
||||
"min_tokens": 0,
|
||||
"temperature": 0.6,
|
||||
"system_prompt": "You are a helpful assistant.",
|
||||
"presence_penalty": 0,
|
||||
"frequency_penalty": 0
|
||||
},
|
||||
"output": [
|
||||
"T",
|
||||
"ina",
|
||||
" has",
|
||||
" one",
|
||||
" brother",
|
||||
" and",
|
||||
" one",
|
||||
" sister",
|
||||
".",
|
||||
" From",
|
||||
" the",
|
||||
" brother",
|
||||
"'s",
|
||||
" perspective",
|
||||
",",
|
||||
" he",
|
||||
" has",
|
||||
" one",
|
||||
" sister",
|
||||
",",
|
||||
" Tina",
|
||||
",",
|
||||
" and",
|
||||
" also",
|
||||
" the",
|
||||
" other",
|
||||
" sister",
|
||||
".",
|
||||
" So",
|
||||
",",
|
||||
" Tina",
|
||||
"'s",
|
||||
" brother",
|
||||
" has",
|
||||
" ",
|
||||
"2",
|
||||
" sisters",
|
||||
".\n\n",
|
||||
"From",
|
||||
" the",
|
||||
" sister",
|
||||
"'s",
|
||||
" perspective",
|
||||
",",
|
||||
" she",
|
||||
" also",
|
||||
" has",
|
||||
" one",
|
||||
" sister",
|
||||
",",
|
||||
" Tina",
|
||||
".",
|
||||
" \n\n",
|
||||
"So",
|
||||
",",
|
||||
" Tina",
|
||||
"'s",
|
||||
" siblings",
|
||||
" have",
|
||||
" a",
|
||||
" total",
|
||||
" of",
|
||||
" ",
|
||||
"2",
|
||||
" sisters",
|
||||
" (",
|
||||
"from",
|
||||
" the",
|
||||
" brother",
|
||||
"'s",
|
||||
" perspective",
|
||||
")",
|
||||
" and",
|
||||
" ",
|
||||
"1",
|
||||
" sister",
|
||||
" (",
|
||||
"from",
|
||||
" the",
|
||||
" sister",
|
||||
"'s",
|
||||
" perspective",
|
||||
").",
|
||||
""
|
||||
],
|
||||
"logs": "INFO 07-23 15:04:21 async_llm_engine.py:173] Added request 3cd670c9b87b469ea9721ddfbcc6b67a.\nINFO 07-23 15:04:21 metrics.py:396] Avg prompt throughput: 7.8 tokens/s, Avg generation throughput: 17.7 tokens/s, Running: 1 reqs, Swapped: 0 reqs, Pending: 0 reqs, GPU KV cache usage: 0.3%, CPU KV cache usage: 0.0%.\nINFO 07-23 15:04:24 async_llm_engine.py:140] Finished request 3cd670c9b87b469ea9721ddfbcc6b67a.\nGeneration took 1721746720.08sFormatted prompt: <|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are a helpful assistant.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nTina has one brother and one sister. How many sisters do Tina's siblings have?<|eot_id|><|start_header_id|>assistant<|end_header_id|>",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"batch_size": 1.000229398266064,
|
||||
"total_time": 2.86309,
|
||||
"input_token_count": 26,
|
||||
"tokens_per_second": 29.74134035953616,
|
||||
"output_token_count": 84,
|
||||
"predict_time_share": 2.8200430870056152,
|
||||
"predict_time": 2.826425468,
|
||||
"time_to_first_token": 0.112068943
|
||||
},
|
||||
"created_at": "2024-07-23T15:04:21.227000Z",
|
||||
"started_at": "2024-07-23T15:04:21.263665Z",
|
||||
"completed_at": "2024-07-23T15:04:24.090090Z",
|
||||
"urls": {
|
||||
"stream": "https://streaming-api.svc.sea.v.replicate.net/v1/streams/6zoqtc6qgpxby7xzauee36qv6bktfaxugelxfqs6ifgg6q4s77sa",
|
||||
"get": "https://api.replicate.com/v1/predictions/zjq6szssxdrm20cgw0fsntgvbg",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/zjq6szssxdrm20cgw0fsntgvbg/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "e6cb7fc3ed90eae2c879c48deda8f49152391ad66349fe7694be24089c29f71c",
|
||||
"created_at": "2024-07-23T15:24:35.230971+00:00",
|
||||
"cog_version": "0.10.0-alpha17",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/ready": {
|
||||
"get": {
|
||||
"summary": "Ready",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Ready Ready Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "ready_ready_get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/trainings": {
|
||||
"post": {
|
||||
"summary": "Train",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TrainingResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"operationId": "train_trainings_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TrainingRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/trainings/{training_id}": {
|
||||
"put": {
|
||||
"summary": "Train Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "training_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Training ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"operationId": "train_idempotent_trainings__training_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/TrainingRequest"
|
||||
}
|
||||
],
|
||||
"title": "Training Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/trainings/{training_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel Training",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Training Trainings Training Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "training_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Training ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"operationId": "cancel_training_trainings__training_id__cancel_post"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"top_k": {
|
||||
"type": "integer",
|
||||
"title": "Top K",
|
||||
"default": 50,
|
||||
"x-order": 6,
|
||||
"description": "The number of highest probability tokens to consider for generating the output. If > 0, only keep the top k tokens with highest probability (top-k filtering)."
|
||||
},
|
||||
"top_p": {
|
||||
"type": "number",
|
||||
"title": "Top P",
|
||||
"default": 0.9,
|
||||
"x-order": 5,
|
||||
"description": "A probability threshold for generating the output. If < 1.0, only keep the top tokens with cumulative probability >= top_p (nucleus filtering). Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751)."
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "",
|
||||
"x-order": 0,
|
||||
"description": "Prompt"
|
||||
},
|
||||
"max_tokens": {
|
||||
"type": "integer",
|
||||
"title": "Max Tokens",
|
||||
"default": 512,
|
||||
"x-order": 3,
|
||||
"description": "The maximum number of tokens the model should generate as output."
|
||||
},
|
||||
"min_tokens": {
|
||||
"type": "integer",
|
||||
"title": "Min Tokens",
|
||||
"default": 0,
|
||||
"x-order": 2,
|
||||
"description": "The minimum number of tokens the model should generate as output."
|
||||
},
|
||||
"temperature": {
|
||||
"type": "number",
|
||||
"title": "Temperature",
|
||||
"default": 0.6,
|
||||
"x-order": 4,
|
||||
"description": "The value used to modulate the next token probabilities."
|
||||
},
|
||||
"system_prompt": {
|
||||
"type": "string",
|
||||
"title": "System Prompt",
|
||||
"default": "You are a helpful assistant.",
|
||||
"x-order": 1,
|
||||
"description": "System prompt to send to the model. This is prepended to the prompt and helps guide system behavior. Ignored for non-chat models."
|
||||
},
|
||||
"stop_sequences": {
|
||||
"type": "string",
|
||||
"title": "Stop Sequences",
|
||||
"x-order": 9,
|
||||
"description": "A comma-separated list of sequences to stop generation at. For example, '<end>,<stop>' will stop generation at the first instance of 'end' or '<stop>'."
|
||||
},
|
||||
"presence_penalty": {
|
||||
"type": "number",
|
||||
"title": "Presence Penalty",
|
||||
"default": 0,
|
||||
"x-order": 7,
|
||||
"description": "Presence penalty"
|
||||
},
|
||||
"frequency_penalty": {
|
||||
"type": "number",
|
||||
"title": "Frequency Penalty",
|
||||
"default": 0,
|
||||
"x-order": 8,
|
||||
"description": "Frequency penalty"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Output",
|
||||
"x-cog-array-type": "iterator",
|
||||
"x-cog-array-display": "concatenate"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"TrainingInput": {
|
||||
"type": "object",
|
||||
"title": "TrainingInput",
|
||||
"required": [
|
||||
"hf_model_id"
|
||||
],
|
||||
"properties": {
|
||||
"hf_token": {
|
||||
"type": "string",
|
||||
"title": "Hf Token",
|
||||
"format": "password",
|
||||
"x-order": 2,
|
||||
"description": "\n Hugging Face API token. \n Get your token at https://huggingface.co/settings/tokens\n ",
|
||||
"x-cog-secret": true
|
||||
},
|
||||
"hf_model_id": {
|
||||
"type": "string",
|
||||
"title": "Hf Model Id",
|
||||
"x-order": 0,
|
||||
"description": "\n Hugging Face model identifier \n (e.g. NousResearch/Hermes-2-Theta-Llama-3-8B).\n "
|
||||
},
|
||||
"hf_model_sha": {
|
||||
"type": "string",
|
||||
"title": "Hf Model Sha",
|
||||
"x-order": 1,
|
||||
"description": "\n The version of the model.\n If unspecified, the latest version is used.\n "
|
||||
},
|
||||
"allow_patterns": {
|
||||
"type": "string",
|
||||
"title": "Allow Patterns",
|
||||
"x-order": 3,
|
||||
"description": "\n Patterns constituting the allowlist. \n If provided, item paths must match at least one pattern from the allowlist. \n (e.g. \"*.safetensors\").\n "
|
||||
},
|
||||
"ignore_patterns": {
|
||||
"type": "string",
|
||||
"title": "Ignore Patterns",
|
||||
"default": "*.gguf",
|
||||
"x-order": 4,
|
||||
"description": "\n Patterns constituting the denylist. \n If provided, item paths must not match any patterns from the denylist. \n (e.g. \"*.gguf\").\n "
|
||||
},
|
||||
"prompt_template": {
|
||||
"type": "string",
|
||||
"title": "Prompt Template",
|
||||
"x-order": 5,
|
||||
"description": "Prompt template. This is a Jinja2 template that overrides the HuggingFace tokenizer configuration. If this is set to None and nothing is configured on HuggingFace, no formatting is applied. To override HuggingFace configuration, set it to the string `{{messages[0]['content']}}`."
|
||||
}
|
||||
}
|
||||
},
|
||||
"TrainingOutput": {
|
||||
"type": "object",
|
||||
"title": "TrainingOutput",
|
||||
"required": [
|
||||
"weights"
|
||||
],
|
||||
"properties": {
|
||||
"weights": {
|
||||
"type": "string",
|
||||
"title": "Weights",
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TrainingRequest": {
|
||||
"type": "object",
|
||||
"title": "TrainingRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/TrainingInput"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TrainingResponse": {
|
||||
"type": "object",
|
||||
"title": "TrainingResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/TrainingInput"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/TrainingOutput"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,469 @@
|
||||
{
|
||||
"url": "https://replicate.com/nateraw/audio-super-resolution",
|
||||
"owner": "nateraw",
|
||||
"name": "audio-super-resolution",
|
||||
"description": "AudioSR: Versatile Audio Super-resolution at Scale",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/haoheliu/versatile_audio_super_resolution",
|
||||
"paper_url": "https://arxiv.org/abs/2309.07314",
|
||||
"license_url": "https://huggingface.co/haoheliu/wellsolve_audio_super_resolution_48k/blob/main/README.md",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/6bc4e480-6695-451b-940d-48a3b83a1356/replicate-prediction-jvi5xvlbg4v4.png",
|
||||
"default_example": {
|
||||
"id": "qqynzilbxm2t5h6eaywx2p7g54",
|
||||
"model": "nateraw/audio-super-resolution",
|
||||
"version": "9c3d3e39fb0cb6aea677264881d8073f835336137b39fdea4e94093319379535",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"seed": 42,
|
||||
"ddim_steps": 50,
|
||||
"input_file": "https://replicate.delivery/pbxt/JYv70XQsiZBbSmknfMhGoEb4QYbuyJ9hJkfgjyzCvh4TzPmT/music.wav",
|
||||
"guidance_scale": 3.5
|
||||
},
|
||||
"output": "https://pbxt.replicate.delivery/73xEQwFed8UXSCQpBJuLYgg8ym0vjp2nSidaqWKwcxhUvHzIA/out.wav",
|
||||
"logs": "\u001b[93m Warning: audio is longer than 10.24 seconds, may degrade the model performance. It's recommand to truncate your audio to 5.12 seconds before input to AudioSR to get the best performance.\u001b[00m\n/src/audiosr/utils.py:109: FutureWarning: Pass sr=48000, n_fft=2048, n_mels=256, fmin=20, fmax=24000 as keyword args. From version 0.10 passing these as positional arguments will result in an error\nmel = librosa_mel_fn(sampling_rate, filter_length, n_mel, mel_fmin, mel_fmax)\nRunning DDIM Sampling with 50 timesteps\nDDIM Sampler: 0%| | 0/50 [00:00<?, ?it/s]\nDDIM Sampler: 2%|▏ | 1/50 [00:06<05:20, 6.54s/it]\nDDIM Sampler: 4%|▍ | 2/50 [00:06<02:14, 2.80s/it]\nDDIM Sampler: 6%|▌ | 3/50 [00:06<01:15, 1.60s/it]\nDDIM Sampler: 8%|▊ | 4/50 [00:07<00:47, 1.04s/it]\nDDIM Sampler: 10%|█ | 5/50 [00:07<00:32, 1.37it/s]\nDDIM Sampler: 12%|█▏ | 6/50 [00:07<00:23, 1.84it/s]\nDDIM Sampler: 14%|█▍ | 7/50 [00:07<00:18, 2.36it/s]\nDDIM Sampler: 16%|█▌ | 8/50 [00:07<00:14, 2.89it/s]\nDDIM Sampler: 18%|█▊ | 9/50 [00:07<00:12, 3.40it/s]\nDDIM Sampler: 20%|██ | 10/50 [00:08<00:10, 3.86it/s]\nDDIM Sampler: 22%|██▏ | 11/50 [00:08<00:09, 4.26it/s]\nDDIM Sampler: 24%|██▍ | 12/50 [00:08<00:08, 4.59it/s]\nDDIM Sampler: 26%|██▌ | 13/50 [00:08<00:07, 4.85it/s]\nDDIM Sampler: 28%|██▊ | 14/50 [00:08<00:07, 5.04it/s]\nDDIM Sampler: 30%|███ | 15/50 [00:09<00:06, 5.19it/s]\nDDIM Sampler: 32%|███▏ | 16/50 [00:09<00:06, 5.29it/s]\nDDIM Sampler: 34%|███▍ | 17/50 [00:09<00:06, 5.37it/s]\nDDIM Sampler: 36%|███▌ | 18/50 [00:09<00:05, 5.42it/s]\nDDIM Sampler: 38%|███▊ | 19/50 [00:09<00:05, 5.46it/s]\nDDIM Sampler: 40%|████ | 20/50 [00:09<00:05, 5.49it/s]\nDDIM Sampler: 42%|████▏ | 21/50 [00:10<00:05, 5.51it/s]\nDDIM Sampler: 44%|████▍ | 22/50 [00:10<00:05, 5.53it/s]\nDDIM Sampler: 46%|████▌ | 23/50 [00:10<00:04, 5.54it/s]\nDDIM Sampler: 48%|████▊ | 24/50 [00:10<00:04, 5.55it/s]\nDDIM Sampler: 50%|█████ | 25/50 [00:10<00:04, 5.55it/s]\nDDIM Sampler: 52%|█████▏ | 26/50 [00:11<00:04, 5.56it/s]\nDDIM Sampler: 54%|█████▍ | 27/50 [00:11<00:04, 5.56it/s]\nDDIM Sampler: 56%|█████▌ | 28/50 [00:11<00:03, 5.56it/s]\nDDIM Sampler: 58%|█████▊ | 29/50 [00:11<00:03, 5.56it/s]\nDDIM Sampler: 60%|██████ | 30/50 [00:11<00:03, 5.56it/s]\nDDIM Sampler: 62%|██████▏ | 31/50 [00:11<00:03, 5.56it/s]\nDDIM Sampler: 64%|██████▍ | 32/50 [00:12<00:03, 5.48it/s]\nDDIM Sampler: 66%|██████▌ | 33/50 [00:12<00:03, 5.50it/s]\nDDIM Sampler: 68%|██████▊ | 34/50 [00:12<00:02, 5.44it/s]\nDDIM Sampler: 70%|███████ | 35/50 [00:12<00:02, 5.23it/s]\nDDIM Sampler: 72%|███████▏ | 36/50 [00:12<00:02, 5.08it/s]\nDDIM Sampler: 74%|███████▍ | 37/50 [00:13<00:02, 4.99it/s]\nDDIM Sampler: 76%|███████▌ | 38/50 [00:13<00:02, 4.85it/s]\nDDIM Sampler: 78%|███████▊ | 39/50 [00:13<00:02, 4.74it/s]\nDDIM Sampler: 80%|████████ | 40/50 [00:13<00:02, 4.71it/s]\nDDIM Sampler: 82%|████████▏ | 41/50 [00:13<00:01, 4.69it/s]\nDDIM Sampler: 84%|████████▍ | 42/50 [00:14<00:01, 4.68it/s]\nDDIM Sampler: 86%|████████▌ | 43/50 [00:14<00:01, 4.68it/s]\nDDIM Sampler: 88%|████████▊ | 44/50 [00:14<00:01, 4.81it/s]\nDDIM Sampler: 90%|█████████ | 45/50 [00:14<00:00, 5.01it/s]\nDDIM Sampler: 92%|█████████▏| 46/50 [00:14<00:00, 5.16it/s]\nDDIM Sampler: 94%|█████████▍| 47/50 [00:15<00:00, 5.28it/s]\nDDIM Sampler: 96%|█████████▌| 48/50 [00:15<00:00, 5.36it/s]\nDDIM Sampler: 98%|█████████▊| 49/50 [00:15<00:00, 5.42it/s]\nDDIM Sampler: 100%|██████████| 50/50 [00:15<00:00, 5.46it/s]\nDDIM Sampler: 100%|██████████| 50/50 [00:15<00:00, 3.19it/s]",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 32.909901,
|
||||
"total_time": 121.483254
|
||||
},
|
||||
"created_at": "2023-09-20T19:17:04.700648Z",
|
||||
"started_at": "2023-09-20T19:18:33.274001Z",
|
||||
"completed_at": "2023-09-20T19:19:06.183902Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/qqynzilbxm2t5h6eaywx2p7g54",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/qqynzilbxm2t5h6eaywx2p7g54/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "9c3d3e39fb0cb6aea677264881d8073f835336137b39fdea4e94093319379535",
|
||||
"created_at": "2023-09-20T19:16:29.474130+00:00",
|
||||
"cog_version": "0.8.6",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"required": [
|
||||
"input_file"
|
||||
],
|
||||
"properties": {
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 3,
|
||||
"description": "Random seed. Leave blank to randomize the seed"
|
||||
},
|
||||
"ddim_steps": {
|
||||
"type": "integer",
|
||||
"title": "Ddim Steps",
|
||||
"default": 50,
|
||||
"maximum": 500,
|
||||
"minimum": 10,
|
||||
"x-order": 1,
|
||||
"description": "Number of inference steps"
|
||||
},
|
||||
"input_file": {
|
||||
"type": "string",
|
||||
"title": "Input File",
|
||||
"format": "uri",
|
||||
"x-order": 0,
|
||||
"description": "Audio to upsample"
|
||||
},
|
||||
"guidance_scale": {
|
||||
"type": "number",
|
||||
"title": "Guidance Scale",
|
||||
"default": 3.5,
|
||||
"maximum": 20,
|
||||
"minimum": 1,
|
||||
"x-order": 2,
|
||||
"description": "Scale for classifier free guidance"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output",
|
||||
"format": "uri"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -34,8 +34,8 @@
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "3ba6c05c93f84644dda18df05bcd36745f600efd3d401238baa6ffff3317dc0f",
|
||||
"created_at": "2024-06-28T07:13:42.455791+00:00",
|
||||
"id": "d28faa318942bf3f1cbed9714def03594f99b3c69b2eb279c39fc60993cee9ac",
|
||||
"created_at": "2024-07-04T00:52:17.710235+00:00",
|
||||
"cog_version": "0.9.4",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
@@ -275,6 +275,13 @@
|
||||
"format": "uri",
|
||||
"x-order": 0,
|
||||
"description": "Target/base image"
|
||||
},
|
||||
"disable_safety_checker": {
|
||||
"type": "boolean",
|
||||
"title": "Disable Safety Checker",
|
||||
"default": false,
|
||||
"x-order": 2,
|
||||
"description": "Disable safety checker for swapped images"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -41,8 +41,8 @@
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "8ed5310807da2e35da9f2ec47ad31540279196d721332519f6560de9efe93348",
|
||||
"created_at": "2024-06-27T11:14:37.819006+00:00",
|
||||
"id": "527d2a6296facb8e47ba1eaf17f142c240c19a30894f437feee9b91cc29d8e4f",
|
||||
"created_at": "2024-07-16T15:57:20.180462+00:00",
|
||||
"cog_version": "0.9.7",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
@@ -385,8 +385,8 @@
|
||||
"1:1",
|
||||
"16:9",
|
||||
"21:9",
|
||||
"2:3",
|
||||
"3:2",
|
||||
"2:3",
|
||||
"4:5",
|
||||
"5:4",
|
||||
"9:16",
|
||||
|
||||
@@ -0,0 +1,578 @@
|
||||
{
|
||||
"url": "https://replicate.com/stability-ai/stable-diffusion",
|
||||
"owner": "stability-ai",
|
||||
"name": "stable-diffusion",
|
||||
"description": "A latent text-to-image diffusion model capable of generating photo-realistic images given any text input",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/replicate/cog-stable-diffusion",
|
||||
"paper_url": "https://arxiv.org/abs/2112.10752",
|
||||
"license_url": "https://huggingface.co/spaces/CompVis/stable-diffusion-license",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://replicate.delivery/pbxt/sWeZFZou6v3CPKuoJbqX46ugPaHT1DcsWYx0srPmGrMOCPYIA/out-0.png",
|
||||
"default_example": {
|
||||
"id": "uvb7ynit4bhpjds3vn4bx7npeq",
|
||||
"model": "stability-ai/stable-diffusion",
|
||||
"version": "db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"prompt": "an astronaut riding a horse on mars, hd, dramatic lighting",
|
||||
"scheduler": "K_EULER",
|
||||
"num_outputs": 1,
|
||||
"guidance_scale": 7.5,
|
||||
"image_dimensions": "512x512",
|
||||
"num_inference_steps": 50
|
||||
},
|
||||
"output": [
|
||||
"https://replicate.delivery/pbxt/sWeZFZou6v3CPKuoJbqX46ugPaHT1DcsWYx0srPmGrMOCPYIA/out-0.png"
|
||||
],
|
||||
"logs": "Using seed: 52443\ninput_shape: torch.Size([1, 77])\n 0%| | 0/50 [00:00<?, ?it/s]\n 10%|█ | 5/50 [00:00<00:01, 41.06it/s]\n 20%|██ | 10/50 [00:00<00:00, 41.32it/s]\n 30%|███ | 15/50 [00:00<00:00, 43.77it/s]\n 42%|████▏ | 21/50 [00:00<00:00, 46.80it/s]\n 54%|█████▍ | 27/50 [00:00<00:00, 48.53it/s]\n 66%|██████▌ | 33/50 [00:00<00:00, 49.63it/s]\n 78%|███████▊ | 39/50 [00:00<00:00, 50.45it/s]\n 90%|█████████ | 45/50 [00:00<00:00, 50.90it/s]\n100%|██████████| 50/50 [00:01<00:00, 48.51it/s]",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 1.889956,
|
||||
"total_time": 2.03998
|
||||
},
|
||||
"created_at": "2023-04-10T15:45:31.434998Z",
|
||||
"started_at": "2023-04-10T15:45:31.585022Z",
|
||||
"completed_at": "2023-04-10T15:45:33.474978Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/uvb7ynit4bhpjds3vn4bx7npeq",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/uvb7ynit4bhpjds3vn4bx7npeq/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "ac732df83cea7fff18b8472768c88ad041fa750ff7682a21affe81863cbe77e4",
|
||||
"created_at": "2023-07-10T06:50:41.613128+00:00",
|
||||
"cog_version": "0.7.2",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.1.0",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 8,
|
||||
"description": "Random seed. Leave blank to randomize the seed"
|
||||
},
|
||||
"width": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/width"
|
||||
}
|
||||
],
|
||||
"default": 768,
|
||||
"x-order": 2,
|
||||
"description": "Width of generated image in pixels. Needs to be a multiple of 64"
|
||||
},
|
||||
"height": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/height"
|
||||
}
|
||||
],
|
||||
"default": 768,
|
||||
"x-order": 1,
|
||||
"description": "Height of generated image in pixels. Needs to be a multiple of 64"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "a vision of paradise. unreal engine",
|
||||
"x-order": 0,
|
||||
"description": "Input prompt"
|
||||
},
|
||||
"scheduler": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/scheduler"
|
||||
}
|
||||
],
|
||||
"default": "DPMSolverMultistep",
|
||||
"x-order": 7,
|
||||
"description": "Choose a scheduler."
|
||||
},
|
||||
"num_outputs": {
|
||||
"type": "integer",
|
||||
"title": "Num Outputs",
|
||||
"default": 1,
|
||||
"maximum": 4,
|
||||
"minimum": 1,
|
||||
"x-order": 4,
|
||||
"description": "Number of images to generate."
|
||||
},
|
||||
"guidance_scale": {
|
||||
"type": "number",
|
||||
"title": "Guidance Scale",
|
||||
"default": 7.5,
|
||||
"maximum": 20,
|
||||
"minimum": 1,
|
||||
"x-order": 6,
|
||||
"description": "Scale for classifier-free guidance"
|
||||
},
|
||||
"negative_prompt": {
|
||||
"type": "string",
|
||||
"title": "Negative Prompt",
|
||||
"x-order": 3,
|
||||
"description": "Specify things to not see in the output"
|
||||
},
|
||||
"num_inference_steps": {
|
||||
"type": "integer",
|
||||
"title": "Num Inference Steps",
|
||||
"default": 50,
|
||||
"maximum": 500,
|
||||
"minimum": 1,
|
||||
"x-order": 5,
|
||||
"description": "Number of denoising steps"
|
||||
}
|
||||
}
|
||||
},
|
||||
"width": {
|
||||
"enum": [
|
||||
64,
|
||||
128,
|
||||
192,
|
||||
256,
|
||||
320,
|
||||
384,
|
||||
448,
|
||||
512,
|
||||
576,
|
||||
640,
|
||||
704,
|
||||
768,
|
||||
832,
|
||||
896,
|
||||
960,
|
||||
1024
|
||||
],
|
||||
"type": "integer",
|
||||
"title": "width",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"Output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"title": "Output"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"height": {
|
||||
"enum": [
|
||||
64,
|
||||
128,
|
||||
192,
|
||||
256,
|
||||
320,
|
||||
384,
|
||||
448,
|
||||
512,
|
||||
576,
|
||||
640,
|
||||
704,
|
||||
768,
|
||||
832,
|
||||
896,
|
||||
960,
|
||||
1024
|
||||
],
|
||||
"type": "integer",
|
||||
"title": "height",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"scheduler": {
|
||||
"enum": [
|
||||
"DDIM",
|
||||
"K_EULER",
|
||||
"DPMSolverMultistep",
|
||||
"K_EULER_ANCESTRAL",
|
||||
"PNDM",
|
||||
"KLMS"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "scheduler",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"completed",
|
||||
"logs",
|
||||
"output",
|
||||
"start"
|
||||
],
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,639 @@
|
||||
{
|
||||
"url": "https://replicate.com/suno-ai/bark",
|
||||
"owner": "suno-ai",
|
||||
"name": "bark",
|
||||
"description": "🔊 Text-Prompted Generative Audio Model",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/chenxwh/bark",
|
||||
"paper_url": null,
|
||||
"license_url": "https://github.com/suno-ai/bark/blob/main/LICENSE",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/9fbbe7c2-beb0-4caa-bd59-647dd7eeee6b/fofr_dog.jpg",
|
||||
"default_example": {
|
||||
"completed_at": "2024-07-02T16:14:42.860493Z",
|
||||
"created_at": "2024-07-02T16:14:01.017000Z",
|
||||
"data_removed": false,
|
||||
"error": null,
|
||||
"id": "cvtnvmkn75rg80cgegws2aszp0",
|
||||
"input": {
|
||||
"prompt": "Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.",
|
||||
"text_temp": 0.7,
|
||||
"output_full": false,
|
||||
"waveform_temp": 0.7,
|
||||
"history_prompt": "announcer"
|
||||
},
|
||||
"logs": "0%| | 0/100 [00:00<?, ?it/s]\n 1%| | 1/100 [00:00<00:13, 7.39it/s]\n 3%|▎ | 3/100 [00:00<00:10, 9.39it/s]\n 5%|▌ | 5/100 [00:00<00:09, 10.34it/s]\n 7%|▋ | 7/100 [00:00<00:08, 10.36it/s]\n 9%|▉ | 9/100 [00:00<00:08, 10.66it/s]\n 11%|█ | 11/100 [00:01<00:08, 10.68it/s]\n 13%|█▎ | 13/100 [00:01<00:08, 10.80it/s]\n 15%|█▌ | 15/100 [00:01<00:07, 11.03it/s]\n 17%|█▋ | 17/100 [00:01<00:07, 11.17it/s]\n 19%|█▉ | 19/100 [00:01<00:07, 10.88it/s]\n 21%|██ | 21/100 [00:01<00:07, 10.98it/s]\n 23%|██▎ | 23/100 [00:02<00:06, 11.10it/s]\n 25%|██▌ | 25/100 [00:02<00:06, 10.82it/s]\n 27%|██▋ | 27/100 [00:02<00:06, 11.00it/s]\n 29%|██▉ | 29/100 [00:02<00:06, 10.92it/s]\n 31%|███ | 31/100 [00:02<00:06, 10.89it/s]\n 33%|███▎ | 33/100 [00:03<00:05, 11.23it/s]\n 35%|███▌ | 35/100 [00:03<00:05, 11.27it/s]\n 37%|███▋ | 37/100 [00:03<00:05, 10.96it/s]\n 39%|███▉ | 39/100 [00:03<00:05, 11.00it/s]\n 41%|████ | 41/100 [00:03<00:05, 10.90it/s]\n 43%|████▎ | 43/100 [00:03<00:05, 11.06it/s]\n 45%|████▌ | 45/100 [00:04<00:04, 11.12it/s]\n 47%|████▋ | 47/100 [00:04<00:04, 10.79it/s]\n 49%|████▉ | 49/100 [00:04<00:04, 10.82it/s]\n 51%|█████ | 51/100 [00:04<00:04, 10.78it/s]\n 53%|█████▎ | 53/100 [00:04<00:04, 10.71it/s]\n 55%|█████▌ | 55/100 [00:05<00:04, 10.97it/s]\n 57%|█████▋ | 57/100 [00:05<00:03, 11.12it/s]\n 59%|█████▉ | 59/100 [00:05<00:03, 10.85it/s]\n 61%|██████ | 61/100 [00:05<00:03, 10.83it/s]\n 63%|██████▎ | 63/100 [00:05<00:03, 10.73it/s]\n 65%|██████▌ | 65/100 [00:05<00:03, 10.90it/s]\n 67%|██████▋ | 67/100 [00:06<00:02, 11.01it/s]\n 69%|██████▉ | 69/100 [00:06<00:02, 10.86it/s]\n 71%|███████ | 71/100 [00:06<00:02, 10.71it/s]\n 73%|███████▎ | 73/100 [00:06<00:02, 10.64it/s]\n 75%|███████▌ | 75/100 [00:06<00:02, 10.25it/s]\n 77%|███████▋ | 77/100 [00:07<00:02, 10.47it/s]\n 79%|███████▉ | 79/100 [00:07<00:01, 10.54it/s]\n 81%|████████ | 81/100 [00:07<00:01, 10.42it/s]\n 83%|████████▎ | 83/100 [00:07<00:01, 10.11it/s]\n 85%|████████▌ | 85/100 [00:07<00:01, 10.23it/s]\n100%|██████████| 100/100 [00:07<00:00, 12.59it/s]\n 0%| | 0/33 [00:00<?, ?it/s]\n 3%|▎ | 1/33 [00:00<00:29, 1.08it/s]\n 6%|▌ | 2/33 [00:01<00:28, 1.08it/s]\n 9%|▉ | 3/33 [00:02<00:27, 1.09it/s]\n 12%|█▏ | 4/33 [00:03<00:26, 1.09it/s]\n 15%|█▌ | 5/33 [00:04<00:26, 1.07it/s]\n 18%|█▊ | 6/33 [00:05<00:25, 1.08it/s]\n 21%|██ | 7/33 [00:06<00:24, 1.08it/s]\n 24%|██▍ | 8/33 [00:07<00:23, 1.08it/s]\n 27%|██▋ | 9/33 [00:08<00:22, 1.09it/s]\n 30%|███ | 10/33 [00:09<00:21, 1.09it/s]\n 33%|███▎ | 11/33 [00:10<00:20, 1.09it/s]\n 36%|███▋ | 12/33 [00:11<00:19, 1.08it/s]\n 39%|███▉ | 13/33 [00:12<00:18, 1.08it/s]\n 42%|████▏ | 14/33 [00:12<00:17, 1.08it/s]\n 45%|████▌ | 15/33 [00:13<00:16, 1.08it/s]\n 48%|████▊ | 16/33 [00:14<00:15, 1.09it/s]\n 52%|█████▏ | 17/33 [00:15<00:14, 1.08it/s]\n 55%|█████▍ | 18/33 [00:16<00:13, 1.08it/s]\n 58%|█████▊ | 19/33 [00:17<00:12, 1.08it/s]\n 61%|██████ | 20/33 [00:18<00:12, 1.08it/s]\n 64%|██████▎ | 21/33 [00:19<00:11, 1.09it/s]\n 67%|██████▋ | 22/33 [00:20<00:10, 1.09it/s]\n 70%|██████▉ | 23/33 [00:21<00:09, 1.08it/s]\n 73%|███████▎ | 24/33 [00:22<00:08, 1.07it/s]\n 76%|███████▌ | 25/33 [00:23<00:07, 1.08it/s]\n 79%|███████▉ | 26/33 [00:24<00:06, 1.08it/s]\n 82%|████████▏ | 27/33 [00:25<00:05, 1.07it/s]\n 85%|████████▍ | 28/33 [00:25<00:04, 1.07it/s]\n 88%|████████▊ | 29/33 [00:26<00:03, 1.07it/s]\n 91%|█████████ | 30/33 [00:27<00:02, 1.07it/s]\n 94%|█████████▍| 31/33 [00:28<00:01, 1.06it/s]\n 97%|█████████▋| 32/33 [00:29<00:00, 1.06it/s]\n100%|██████████| 33/33 [00:30<00:00, 1.19it/s]\n100%|██████████| 33/33 [00:30<00:00, 1.09it/s]",
|
||||
"metrics": {
|
||||
"predict_time": 41.825636899,
|
||||
"total_time": 41.843493
|
||||
},
|
||||
"output": {
|
||||
"audio_out": "https://replicate.delivery/czjl/nLXd7G4BJjpXHtBNKsOn9WP6aKQn5NaL4mUGzogs45ucZHxE/audio.wav"
|
||||
},
|
||||
"started_at": "2024-07-02T16:14:01.034856Z",
|
||||
"status": "succeeded",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/cvtnvmkn75rg80cgegws2aszp0",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/cvtnvmkn75rg80cgegws2aszp0/cancel"
|
||||
},
|
||||
"version": "b76242b40d67c76ab6742e987628a2a9ac019e11d56ab96c4e91ce03b79b2787"
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "b76242b40d67c76ab6742e987628a2a9ac019e11d56ab96c4e91ce03b79b2787",
|
||||
"created_at": "2023-04-27T20:11:57.984157+00:00",
|
||||
"cog_version": "0.7.0-beta19",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "Hello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.",
|
||||
"x-order": 0,
|
||||
"description": "Input prompt"
|
||||
},
|
||||
"text_temp": {
|
||||
"type": "number",
|
||||
"title": "Text Temp",
|
||||
"default": 0.7,
|
||||
"x-order": 3,
|
||||
"description": "generation temperature (1.0 more diverse, 0.0 more conservative)"
|
||||
},
|
||||
"output_full": {
|
||||
"type": "boolean",
|
||||
"title": "Output Full",
|
||||
"default": false,
|
||||
"x-order": 5,
|
||||
"description": "return full generation as a .npz file to be used as a history prompt"
|
||||
},
|
||||
"waveform_temp": {
|
||||
"type": "number",
|
||||
"title": "Waveform Temp",
|
||||
"default": 0.7,
|
||||
"x-order": 4,
|
||||
"description": "generation temperature (1.0 more diverse, 0.0 more conservative)"
|
||||
},
|
||||
"history_prompt": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/history_prompt"
|
||||
}
|
||||
],
|
||||
"x-order": 1,
|
||||
"description": "history choice for audio cloning, choose from the list"
|
||||
},
|
||||
"custom_history_prompt": {
|
||||
"type": "string",
|
||||
"title": "Custom History Prompt",
|
||||
"format": "uri",
|
||||
"x-order": 2,
|
||||
"description": "Provide your own .npz file with history choice for audio cloning, this will override the previous history_prompt setting"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"$ref": "#/components/schemas/ModelOutput",
|
||||
"title": "Output"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ModelOutput": {
|
||||
"type": "object",
|
||||
"title": "ModelOutput",
|
||||
"required": [
|
||||
"audio_out"
|
||||
],
|
||||
"properties": {
|
||||
"audio_out": {
|
||||
"type": "string",
|
||||
"title": "Audio Out",
|
||||
"format": "uri"
|
||||
},
|
||||
"prompt_npz": {
|
||||
"type": "string",
|
||||
"title": "Prompt Npz",
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"history_prompt": {
|
||||
"enum": [
|
||||
"announcer",
|
||||
"de_speaker_0",
|
||||
"de_speaker_1",
|
||||
"de_speaker_2",
|
||||
"de_speaker_3",
|
||||
"de_speaker_4",
|
||||
"de_speaker_5",
|
||||
"de_speaker_6",
|
||||
"de_speaker_7",
|
||||
"de_speaker_8",
|
||||
"de_speaker_9",
|
||||
"en_speaker_0",
|
||||
"en_speaker_1",
|
||||
"en_speaker_2",
|
||||
"en_speaker_3",
|
||||
"en_speaker_4",
|
||||
"en_speaker_5",
|
||||
"en_speaker_6",
|
||||
"en_speaker_7",
|
||||
"en_speaker_8",
|
||||
"en_speaker_9",
|
||||
"es_speaker_0",
|
||||
"es_speaker_1",
|
||||
"es_speaker_2",
|
||||
"es_speaker_3",
|
||||
"es_speaker_4",
|
||||
"es_speaker_5",
|
||||
"es_speaker_6",
|
||||
"es_speaker_7",
|
||||
"es_speaker_8",
|
||||
"es_speaker_9",
|
||||
"fr_speaker_0",
|
||||
"fr_speaker_1",
|
||||
"fr_speaker_2",
|
||||
"fr_speaker_3",
|
||||
"fr_speaker_4",
|
||||
"fr_speaker_5",
|
||||
"fr_speaker_6",
|
||||
"fr_speaker_7",
|
||||
"fr_speaker_8",
|
||||
"fr_speaker_9",
|
||||
"hi_speaker_0",
|
||||
"hi_speaker_1",
|
||||
"hi_speaker_2",
|
||||
"hi_speaker_3",
|
||||
"hi_speaker_4",
|
||||
"hi_speaker_5",
|
||||
"hi_speaker_6",
|
||||
"hi_speaker_7",
|
||||
"hi_speaker_8",
|
||||
"hi_speaker_9",
|
||||
"it_speaker_0",
|
||||
"it_speaker_1",
|
||||
"it_speaker_2",
|
||||
"it_speaker_3",
|
||||
"it_speaker_4",
|
||||
"it_speaker_5",
|
||||
"it_speaker_6",
|
||||
"it_speaker_7",
|
||||
"it_speaker_8",
|
||||
"it_speaker_9",
|
||||
"ja_speaker_0",
|
||||
"ja_speaker_1",
|
||||
"ja_speaker_2",
|
||||
"ja_speaker_3",
|
||||
"ja_speaker_4",
|
||||
"ja_speaker_5",
|
||||
"ja_speaker_6",
|
||||
"ja_speaker_7",
|
||||
"ja_speaker_8",
|
||||
"ja_speaker_9",
|
||||
"ko_speaker_0",
|
||||
"ko_speaker_1",
|
||||
"ko_speaker_2",
|
||||
"ko_speaker_3",
|
||||
"ko_speaker_4",
|
||||
"ko_speaker_5",
|
||||
"ko_speaker_6",
|
||||
"ko_speaker_7",
|
||||
"ko_speaker_8",
|
||||
"ko_speaker_9",
|
||||
"pl_speaker_0",
|
||||
"pl_speaker_1",
|
||||
"pl_speaker_2",
|
||||
"pl_speaker_3",
|
||||
"pl_speaker_4",
|
||||
"pl_speaker_5",
|
||||
"pl_speaker_6",
|
||||
"pl_speaker_7",
|
||||
"pl_speaker_8",
|
||||
"pl_speaker_9",
|
||||
"pt_speaker_0",
|
||||
"pt_speaker_1",
|
||||
"pt_speaker_2",
|
||||
"pt_speaker_3",
|
||||
"pt_speaker_4",
|
||||
"pt_speaker_5",
|
||||
"pt_speaker_6",
|
||||
"pt_speaker_7",
|
||||
"pt_speaker_8",
|
||||
"pt_speaker_9",
|
||||
"ru_speaker_0",
|
||||
"ru_speaker_1",
|
||||
"ru_speaker_2",
|
||||
"ru_speaker_3",
|
||||
"ru_speaker_4",
|
||||
"ru_speaker_5",
|
||||
"ru_speaker_6",
|
||||
"ru_speaker_7",
|
||||
"ru_speaker_8",
|
||||
"ru_speaker_9",
|
||||
"tr_speaker_0",
|
||||
"tr_speaker_1",
|
||||
"tr_speaker_2",
|
||||
"tr_speaker_3",
|
||||
"tr_speaker_4",
|
||||
"tr_speaker_5",
|
||||
"tr_speaker_6",
|
||||
"tr_speaker_7",
|
||||
"tr_speaker_8",
|
||||
"tr_speaker_9",
|
||||
"zh_speaker_0",
|
||||
"zh_speaker_1",
|
||||
"zh_speaker_2",
|
||||
"zh_speaker_3",
|
||||
"zh_speaker_4",
|
||||
"zh_speaker_5",
|
||||
"zh_speaker_6",
|
||||
"zh_speaker_7",
|
||||
"zh_speaker_8",
|
||||
"zh_speaker_9"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "history_prompt",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"completed",
|
||||
"logs",
|
||||
"output",
|
||||
"start"
|
||||
],
|
||||
"uniqueItems": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,361 @@
|
||||
{
|
||||
"url": "https://replicate.com/tstramer/material-diffusion",
|
||||
"owner": "tstramer",
|
||||
"name": "material-diffusion",
|
||||
"description": "Stable diffusion fork for generating tileable outputs using v1.5 model",
|
||||
"visibility": "public",
|
||||
"github_url": null,
|
||||
"paper_url": null,
|
||||
"license_url": null,
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://replicate.delivery/pbxt/XcklpSF1o7Z1I91xQQQHFvJfltWEa3HuQpoeVVTvN7GVJhffA/out-0.png",
|
||||
"default_example": {
|
||||
"id": "itzymcxcyrddxelbfae6jkpb7i",
|
||||
"model": "tstramer/material-diffusion",
|
||||
"version": "a42692c54c0f407f803a0a8a9066160976baedb77c91171a01730f9b0d7beeff",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"prompt": "Mossy Runic Bricks seamless texture, trending on artstation, stone, moss, base color, albedo, 4k",
|
||||
"scheduler": "K-LMS",
|
||||
"num_outputs": 1,
|
||||
"guidance_scale": 7.5,
|
||||
"prompt_strength": 0.8,
|
||||
"num_inference_steps": 50
|
||||
},
|
||||
"output": [
|
||||
"https://replicate.delivery/pbxt/XcklpSF1o7Z1I91xQQQHFvJfltWEa3HuQpoeVVTvN7GVJhffA/out-0.png"
|
||||
],
|
||||
"logs": "Using seed: 52336\n 0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:03<02:57, 3.63s/it]\n 6%|▌ | 3/50 [00:03<00:47, 1.00s/it]\n 10%|█ | 5/50 [00:03<00:23, 1.90it/s]\n 14%|█▍ | 7/50 [00:04<00:14, 2.98it/s]\n 18%|█▊ | 9/50 [00:04<00:09, 4.22it/s]\n 22%|██▏ | 11/50 [00:04<00:07, 5.54it/s]\n 26%|██▌ | 13/50 [00:04<00:05, 6.88it/s]\n 30%|███ | 15/50 [00:04<00:04, 8.07it/s]\n 34%|███▍ | 17/50 [00:04<00:03, 9.02it/s]\n 38%|███▊ | 19/50 [00:05<00:03, 10.04it/s]\n 42%|████▏ | 21/50 [00:05<00:02, 10.78it/s]\n 46%|████▌ | 23/50 [00:05<00:02, 11.48it/s]\n 50%|█████ | 25/50 [00:05<00:02, 12.04it/s]\n 54%|█████▍ | 27/50 [00:05<00:01, 12.43it/s]\n 58%|█████▊ | 29/50 [00:05<00:01, 12.67it/s]\n 62%|██████▏ | 31/50 [00:05<00:01, 12.72it/s]\n 66%|██████▌ | 33/50 [00:06<00:01, 12.94it/s]\n 70%|███████ | 35/50 [00:06<00:01, 13.11it/s]\n 74%|███████▍ | 37/50 [00:06<00:00, 13.23it/s]\n 78%|███████▊ | 39/50 [00:06<00:00, 13.30it/s]\n 82%|████████▏ | 41/50 [00:06<00:00, 13.38it/s]\n 86%|████████▌ | 43/50 [00:06<00:00, 13.29it/s]\n 90%|█████████ | 45/50 [00:06<00:00, 13.07it/s]\n 94%|█████████▍| 47/50 [00:07<00:00, 13.14it/s]\n 98%|█████████▊| 49/50 [00:07<00:00, 13.14it/s]\n100%|██████████| 50/50 [00:07<00:00, 6.79it/s]",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 9.265848,
|
||||
"total_time": 254.158255
|
||||
},
|
||||
"created_at": "2022-11-13T03:07:03.790192Z",
|
||||
"started_at": "2022-11-13T03:11:08.682599Z",
|
||||
"completed_at": "2022-11-13T03:11:17.948447Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/itzymcxcyrddxelbfae6jkpb7i",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/itzymcxcyrddxelbfae6jkpb7i/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "a42692c54c0f407f803a0a8a9066160976baedb77c91171a01730f9b0d7beeff",
|
||||
"created_at": "2022-11-13T03:04:18.885453+00:00",
|
||||
"cog_version": "0.4.4",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Response"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Request"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"mask": {
|
||||
"type": "string",
|
||||
"title": "Mask",
|
||||
"format": "uri",
|
||||
"x-order": 4,
|
||||
"description": "Black and white image to use as mask for inpainting over init_image. Black pixels are inpainted and white pixels are preserved. Tends to work better with prompt strength of 0.5-0.7. Consider using https://replicate.com/andreasjansson/stable-diffusion-inpainting instead."
|
||||
},
|
||||
"seed": {
|
||||
"type": "integer",
|
||||
"title": "Seed",
|
||||
"x-order": 10,
|
||||
"description": "Random seed. Leave blank to randomize the seed"
|
||||
},
|
||||
"width": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/width"
|
||||
}
|
||||
],
|
||||
"default": 512,
|
||||
"x-order": 1,
|
||||
"description": "Width of output image. Maximum size is 1024x768 or 768x1024 because of memory limits"
|
||||
},
|
||||
"height": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/height"
|
||||
}
|
||||
],
|
||||
"default": 512,
|
||||
"x-order": 2,
|
||||
"description": "Height of output image. Maximum size is 1024x768 or 768x1024 because of memory limits"
|
||||
},
|
||||
"prompt": {
|
||||
"type": "string",
|
||||
"title": "Prompt",
|
||||
"default": "",
|
||||
"x-order": 0,
|
||||
"description": "Input prompt"
|
||||
},
|
||||
"scheduler": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/scheduler"
|
||||
}
|
||||
],
|
||||
"default": "K-LMS",
|
||||
"x-order": 9,
|
||||
"description": "Choose a scheduler. If you use an init image, PNDM will be used"
|
||||
},
|
||||
"init_image": {
|
||||
"type": "string",
|
||||
"title": "Init Image",
|
||||
"format": "uri",
|
||||
"x-order": 3,
|
||||
"description": "Inital image to generate variations of. Will be resized to the specified width and height"
|
||||
},
|
||||
"num_outputs": {
|
||||
"type": "integer",
|
||||
"title": "Num Outputs",
|
||||
"default": 1,
|
||||
"maximum": 10,
|
||||
"minimum": 1,
|
||||
"x-order": 6,
|
||||
"description": "Number of images to output. If the NSFW filter is triggered, you may get fewer outputs than this."
|
||||
},
|
||||
"guidance_scale": {
|
||||
"type": "number",
|
||||
"title": "Guidance Scale",
|
||||
"default": 7.5,
|
||||
"maximum": 20,
|
||||
"minimum": 1,
|
||||
"x-order": 8,
|
||||
"description": "Scale for classifier-free guidance"
|
||||
},
|
||||
"prompt_strength": {
|
||||
"type": "number",
|
||||
"title": "Prompt Strength",
|
||||
"default": 0.8,
|
||||
"x-order": 5,
|
||||
"description": "Prompt strength when using init image. 1.0 corresponds to full destruction of information in init image"
|
||||
},
|
||||
"num_inference_steps": {
|
||||
"type": "integer",
|
||||
"title": "Num Inference Steps",
|
||||
"default": 50,
|
||||
"maximum": 500,
|
||||
"minimum": 1,
|
||||
"x-order": 7,
|
||||
"description": "Number of denoising steps"
|
||||
}
|
||||
}
|
||||
},
|
||||
"width": {
|
||||
"enum": [
|
||||
128,
|
||||
256,
|
||||
384,
|
||||
448,
|
||||
512,
|
||||
576,
|
||||
640,
|
||||
704,
|
||||
768,
|
||||
832,
|
||||
896,
|
||||
960,
|
||||
1024
|
||||
],
|
||||
"type": "integer",
|
||||
"title": "width",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"Output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"title": "Output"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"processing",
|
||||
"succeeded",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"height": {
|
||||
"enum": [
|
||||
128,
|
||||
256,
|
||||
384,
|
||||
448,
|
||||
512,
|
||||
576,
|
||||
640,
|
||||
704,
|
||||
768,
|
||||
832,
|
||||
896,
|
||||
960,
|
||||
1024
|
||||
],
|
||||
"type": "integer",
|
||||
"title": "height",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"Request": {
|
||||
"type": "object",
|
||||
"title": "Request",
|
||||
"properties": {
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
}
|
||||
},
|
||||
"description": "The request body for a prediction"
|
||||
},
|
||||
"Response": {
|
||||
"type": "object",
|
||||
"title": "Response",
|
||||
"required": [
|
||||
"status"
|
||||
],
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
}
|
||||
},
|
||||
"description": "The response body for a prediction"
|
||||
},
|
||||
"scheduler": {
|
||||
"enum": [
|
||||
"DDIM",
|
||||
"K-LMS",
|
||||
"PNDM"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "scheduler",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -96,9 +96,9 @@
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "b5f6212d032508382d61ff00469ddda3e32fd8a0e75dc39d8a4191bb742157fb",
|
||||
"created_at": "2024-03-21T14:03:14.481482+00:00",
|
||||
"cog_version": "0.9.4",
|
||||
"id": "80537f9eead1a5bfa72d5ac6ea6414379be41d4d4f6679fd776e9535d1eb58bb",
|
||||
"created_at": "2024-07-17T14:00:16.459010+00:00",
|
||||
"cog_version": "0.9.5",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
|
||||
@@ -0,0 +1,655 @@
|
||||
{
|
||||
"url": "https://replicate.com/zsxkib/realistic-voice-cloning",
|
||||
"owner": "zsxkib",
|
||||
"name": "realistic-voice-cloning",
|
||||
"description": "Create song covers with any RVC v2 trained AI voice from audio files.",
|
||||
"visibility": "public",
|
||||
"github_url": "https://github.com/zsxkib/AICoverGen.git",
|
||||
"paper_url": null,
|
||||
"license_url": "https://github.com/SociallyIneptWeeb/AICoverGen/blob/main/LICENSE",
|
||||
"run_count": 0,
|
||||
"cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/7a110507-8a38-4fcb-8826-61aec80309cb/Out_0_1024x1024.png",
|
||||
"default_example": {
|
||||
"id": "opfbdorbymurmp2ykemgwe23qa",
|
||||
"model": "zsxkib/realistic-voice-cloning",
|
||||
"version": "a0076ea13a704d9fa6d02535bc8951d3b141c84dc95d2d3f2f5016eabfcb8d94",
|
||||
"status": "succeeded",
|
||||
"input": {
|
||||
"protect": 0.33,
|
||||
"rvc_model": "Squidward",
|
||||
"index_rate": 0.5,
|
||||
"song_input": "https://replicate.delivery/pbxt/JsPIizFfRy54Jk5LuXdnrNdV1JHJ6oLmPPdRuIfh3lvpoNai/gangnam.mp3",
|
||||
"reverb_size": 0.15,
|
||||
"pitch_change": "no-change",
|
||||
"rms_mix_rate": 0.25,
|
||||
"filter_radius": 3,
|
||||
"output_format": "mp3",
|
||||
"reverb_damping": 0.7,
|
||||
"reverb_dryness": 0.8,
|
||||
"reverb_wetness": 0.2,
|
||||
"crepe_hop_length": 128,
|
||||
"pitch_change_all": 0,
|
||||
"main_vocals_volume_change": 10,
|
||||
"pitch_detection_algorithm": "rmvpe",
|
||||
"instrumental_volume_change": 0,
|
||||
"backup_vocals_volume_change": 0
|
||||
},
|
||||
"output": "https://replicate.delivery/pbxt/TqYjsueAmlVePUapV0rf7MCDCDBfAJxhw2aE5euzA6Gw4rCPC/tmp11cudxj_gangnam%20%28Squidward%20Ver%29.mp3",
|
||||
"logs": "[~] Starting AI Cover Generation Pipeline...\n[~] Applying audio effects to Vocals...\n[~] Combining AI Vocals and Instrumentals...\n[~] Removing intermediate audio files...\n[+] Cover generated at /src/song_output/d0386572142/tmp11cudxj_gangnam (Squidward Ver).mp3",
|
||||
"error": null,
|
||||
"metrics": {
|
||||
"predict_time": 2.811273,
|
||||
"total_time": 2.832374
|
||||
},
|
||||
"created_at": "2023-11-14T16:52:20.000859Z",
|
||||
"started_at": "2023-11-14T16:52:20.021960Z",
|
||||
"completed_at": "2023-11-14T16:52:22.833233Z",
|
||||
"urls": {
|
||||
"get": "https://api.replicate.com/v1/predictions/opfbdorbymurmp2ykemgwe23qa",
|
||||
"cancel": "https://api.replicate.com/v1/predictions/opfbdorbymurmp2ykemgwe23qa/cancel"
|
||||
}
|
||||
},
|
||||
"latest_version": {
|
||||
"id": "0a9c7c558af4c0f20667c1bd1260ce32a2879944a0b9e44e1398660c077b1550",
|
||||
"created_at": "2023-11-15T16:00:55.551923+00:00",
|
||||
"cog_version": "0.8.6",
|
||||
"openapi_schema": {
|
||||
"info": {
|
||||
"title": "Cog",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
"summary": "Root",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Root Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "root__get"
|
||||
}
|
||||
},
|
||||
"/shutdown": {
|
||||
"post": {
|
||||
"summary": "Start Shutdown",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Start Shutdown Shutdown Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "start_shutdown_shutdown_post"
|
||||
}
|
||||
},
|
||||
"/predictions": {
|
||||
"post": {
|
||||
"summary": "Predict",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model",
|
||||
"operationId": "predict_predictions_post",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/health-check": {
|
||||
"get": {
|
||||
"summary": "Healthcheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Healthcheck Health Check Get"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
}
|
||||
},
|
||||
"operationId": "healthcheck_health_check_get"
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}": {
|
||||
"put": {
|
||||
"summary": "Predict Idempotent",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PredictionResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "prefer",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prefer"
|
||||
},
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"description": "Run a single prediction on the model (idempotent creation).",
|
||||
"operationId": "predict_idempotent_predictions__prediction_id__put",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/PredictionRequest"
|
||||
}
|
||||
],
|
||||
"title": "Prediction Request"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/predictions/{prediction_id}/cancel": {
|
||||
"post": {
|
||||
"summary": "Cancel",
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"title": "Response Cancel Predictions Prediction Id Cancel Post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "prediction_id",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Prediction ID"
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"description": "Cancel a running prediction",
|
||||
"operationId": "cancel_predictions__prediction_id__cancel_post"
|
||||
}
|
||||
}
|
||||
},
|
||||
"openapi": "3.0.2",
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Input": {
|
||||
"type": "object",
|
||||
"title": "Input",
|
||||
"properties": {
|
||||
"protect": {
|
||||
"type": "number",
|
||||
"title": "Protect",
|
||||
"default": 0.33,
|
||||
"maximum": 0.5,
|
||||
"minimum": 0,
|
||||
"x-order": 9,
|
||||
"description": "Control how much of the original vocals' breath and voiceless consonants to leave in the AI vocals. Set 0.5 to disable."
|
||||
},
|
||||
"rvc_model": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/rvc_model"
|
||||
}
|
||||
],
|
||||
"default": "Squidward",
|
||||
"x-order": 1,
|
||||
"description": "RVC model for a specific voice. If using a custom model, this should match the name of the downloaded model. If a 'custom_rvc_model_download_url' is provided, this will be automatically set to the name of the downloaded model."
|
||||
},
|
||||
"index_rate": {
|
||||
"type": "number",
|
||||
"title": "Index Rate",
|
||||
"default": 0.5,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 4,
|
||||
"description": "Control how much of the AI's accent to leave in the vocals."
|
||||
},
|
||||
"song_input": {
|
||||
"type": "string",
|
||||
"title": "Song Input",
|
||||
"format": "uri",
|
||||
"x-order": 0,
|
||||
"description": "Upload your audio file here."
|
||||
},
|
||||
"reverb_size": {
|
||||
"type": "number",
|
||||
"title": "Reverb Size",
|
||||
"default": 0.15,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 14,
|
||||
"description": "The larger the room, the longer the reverb time."
|
||||
},
|
||||
"pitch_change": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/pitch_change"
|
||||
}
|
||||
],
|
||||
"default": "no-change",
|
||||
"x-order": 3,
|
||||
"description": "Adjust pitch of AI vocals. Options: `no-change`, `male-to-female`, `female-to-male`."
|
||||
},
|
||||
"rms_mix_rate": {
|
||||
"type": "number",
|
||||
"title": "Rms Mix Rate",
|
||||
"default": 0.25,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 6,
|
||||
"description": "Control how much to use the original vocal's loudness (0) or a fixed loudness (1)."
|
||||
},
|
||||
"filter_radius": {
|
||||
"type": "integer",
|
||||
"title": "Filter Radius",
|
||||
"default": 3,
|
||||
"maximum": 7,
|
||||
"minimum": 0,
|
||||
"x-order": 5,
|
||||
"description": "If >=3: apply median filtering median filtering to the harvested pitch results."
|
||||
},
|
||||
"output_format": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/output_format"
|
||||
}
|
||||
],
|
||||
"default": "mp3",
|
||||
"x-order": 18,
|
||||
"description": "wav for best quality and large file size, mp3 for decent quality and small file size."
|
||||
},
|
||||
"reverb_damping": {
|
||||
"type": "number",
|
||||
"title": "Reverb Damping",
|
||||
"default": 0.7,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 17,
|
||||
"description": "Absorption of high frequencies in the reverb."
|
||||
},
|
||||
"reverb_dryness": {
|
||||
"type": "number",
|
||||
"title": "Reverb Dryness",
|
||||
"default": 0.8,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 16,
|
||||
"description": "Level of AI vocals without reverb."
|
||||
},
|
||||
"reverb_wetness": {
|
||||
"type": "number",
|
||||
"title": "Reverb Wetness",
|
||||
"default": 0.2,
|
||||
"maximum": 1,
|
||||
"minimum": 0,
|
||||
"x-order": 15,
|
||||
"description": "Level of AI vocals with reverb."
|
||||
},
|
||||
"crepe_hop_length": {
|
||||
"type": "integer",
|
||||
"title": "Crepe Hop Length",
|
||||
"default": 128,
|
||||
"x-order": 8,
|
||||
"description": "When `pitch_detection_algo` is set to `mangio-crepe`, this controls how often it checks for pitch changes in milliseconds. Lower values lead to longer conversions and higher risk of voice cracks, but better pitch accuracy."
|
||||
},
|
||||
"pitch_change_all": {
|
||||
"type": "number",
|
||||
"title": "Pitch Change All",
|
||||
"default": 0,
|
||||
"x-order": 13,
|
||||
"description": "Change pitch/key of background music, backup vocals and AI vocals in semitones. Reduces sound quality slightly."
|
||||
},
|
||||
"main_vocals_volume_change": {
|
||||
"type": "number",
|
||||
"title": "Main Vocals Volume Change",
|
||||
"default": 0,
|
||||
"x-order": 10,
|
||||
"description": "Control volume of main AI vocals. Use -3 to decrease the volume by 3 decibels, or 3 to increase the volume by 3 decibels."
|
||||
},
|
||||
"pitch_detection_algorithm": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/pitch_detection_algorithm"
|
||||
}
|
||||
],
|
||||
"default": "rmvpe",
|
||||
"x-order": 7,
|
||||
"description": "Best option is rmvpe (clarity in vocals), then mangio-crepe (smoother vocals)."
|
||||
},
|
||||
"instrumental_volume_change": {
|
||||
"type": "number",
|
||||
"title": "Instrumental Volume Change",
|
||||
"default": 0,
|
||||
"x-order": 12,
|
||||
"description": "Control volume of the background music/instrumentals."
|
||||
},
|
||||
"backup_vocals_volume_change": {
|
||||
"type": "number",
|
||||
"title": "Backup Vocals Volume Change",
|
||||
"default": 0,
|
||||
"x-order": 11,
|
||||
"description": "Control volume of backup AI vocals."
|
||||
},
|
||||
"custom_rvc_model_download_url": {
|
||||
"type": "string",
|
||||
"title": "Custom Rvc Model Download Url",
|
||||
"x-order": 2,
|
||||
"description": "URL to download a custom RVC model. If provided, the model will be downloaded (if it doesn't already exist) and used for prediction, regardless of the 'rvc_model' value."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Output": {
|
||||
"type": "string",
|
||||
"title": "Output",
|
||||
"format": "uri"
|
||||
},
|
||||
"Status": {
|
||||
"enum": [
|
||||
"starting",
|
||||
"processing",
|
||||
"succeeded",
|
||||
"canceled",
|
||||
"failed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "Status",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"rvc_model": {
|
||||
"enum": [
|
||||
"Squidward",
|
||||
"MrKrabs",
|
||||
"Plankton",
|
||||
"Drake",
|
||||
"Vader",
|
||||
"Trump",
|
||||
"Biden",
|
||||
"Obama",
|
||||
"Guitar",
|
||||
"Voilin",
|
||||
"CUSTOM"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "rvc_model",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"WebhookEvent": {
|
||||
"enum": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "WebhookEvent",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"pitch_change": {
|
||||
"enum": [
|
||||
"no-change",
|
||||
"male-to-female",
|
||||
"female-to-male"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "pitch_change",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"output_format": {
|
||||
"enum": [
|
||||
"mp3",
|
||||
"wav"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "output_format",
|
||||
"description": "An enumeration."
|
||||
},
|
||||
"ValidationError": {
|
||||
"type": "object",
|
||||
"title": "ValidationError",
|
||||
"required": [
|
||||
"loc",
|
||||
"msg",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"loc": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"title": "Location"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"title": "Message"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "Error Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionRequest": {
|
||||
"type": "object",
|
||||
"title": "PredictionRequest",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "string",
|
||||
"title": "Webhook",
|
||||
"format": "uri",
|
||||
"maxLength": 65536,
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"output_file_prefix": {
|
||||
"type": "string",
|
||||
"title": "Output File Prefix"
|
||||
},
|
||||
"webhook_events_filter": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/WebhookEvent"
|
||||
},
|
||||
"default": [
|
||||
"start",
|
||||
"output",
|
||||
"logs",
|
||||
"completed"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"PredictionResponse": {
|
||||
"type": "object",
|
||||
"title": "PredictionResponse",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"title": "Id"
|
||||
},
|
||||
"logs": {
|
||||
"type": "string",
|
||||
"title": "Logs",
|
||||
"default": ""
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"title": "Error"
|
||||
},
|
||||
"input": {
|
||||
"$ref": "#/components/schemas/Input"
|
||||
},
|
||||
"output": {
|
||||
"$ref": "#/components/schemas/Output"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/Status"
|
||||
},
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"title": "Metrics"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "Version"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"title": "Created At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"started_at": {
|
||||
"type": "string",
|
||||
"title": "Started At",
|
||||
"format": "date-time"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string",
|
||||
"title": "Completed At",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"type": "object",
|
||||
"title": "HTTPValidationError",
|
||||
"properties": {
|
||||
"detail": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/ValidationError"
|
||||
},
|
||||
"title": "Detail"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pitch_detection_algorithm": {
|
||||
"enum": [
|
||||
"rmvpe",
|
||||
"mangio-crepe"
|
||||
],
|
||||
"type": "string",
|
||||
"title": "pitch_detection_algorithm",
|
||||
"description": "An enumeration."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+21
-1
@@ -1,40 +1,60 @@
|
||||
{
|
||||
"models": [
|
||||
"ai-forever/kandinsky-2",
|
||||
"ai-forever/kandinsky-2.2",
|
||||
"andreasjansson/blip-2",
|
||||
"batouresearch/high-resolution-controlnet-tile",
|
||||
"batouresearch/magic-image-refiner",
|
||||
"batouresearch/magic-style-transfer",
|
||||
"bytedance/sdxl-lightning-4step",
|
||||
"black-forest-labs/flux-dev",
|
||||
"black-forest-labs/flux-pro",
|
||||
"black-forest-labs/flux-schnell",
|
||||
"cjwbw/hyper-sdxl-1step-t2i",
|
||||
"cjwbw/pixart-sigma",
|
||||
"cjwbw/seamless_communication",
|
||||
"cjwbw/supir",
|
||||
"cuuupid/glm-4v-9b",
|
||||
"cuuupid/idm-vton",
|
||||
"declare-lab/tango",
|
||||
"fofr/consistent-character",
|
||||
"fofr/controlnet-preprocessors",
|
||||
"fofr/face-to-many",
|
||||
"fofr/latent-consistency-model",
|
||||
"fofr/sd3-with-chaos",
|
||||
"fofr/style-transfer",
|
||||
"fofr/ultrapixel",
|
||||
"lucataco/hunyuandit-v1.1",
|
||||
"lucataco/llama-3-vision-alpha",
|
||||
"lucataco/magnet",
|
||||
"lucataco/moondream2",
|
||||
"lucataco/paligemma-3b-pt-224",
|
||||
"lucataco/pasd-magnify",
|
||||
"lucataco/qwen-vl-chat",
|
||||
"lucataco/sdxl-clip-interrogator",
|
||||
"lucataco/xtts-v2",
|
||||
"luosiallen/latent-consistency-model",
|
||||
"meta/meta-llama-3.1-405b-instruct",
|
||||
"meta/llama-2-70b-chat",
|
||||
"meta/llama-2-7b-chat",
|
||||
"meta/musicgen",
|
||||
"mistralai/mixtral-8x7b-instruct-v0.1",
|
||||
"nateraw/audio-super-resolution",
|
||||
"nateraw/musicgen-songstarter-v0.2",
|
||||
"omniedgeio/face-swap",
|
||||
"philz1337x/clarity-upscaler",
|
||||
"replicate/deepfloyd-if",
|
||||
"salesforce/blip",
|
||||
"smoretalk/rembg-enhance",
|
||||
"snowflake/snowflake-arctic-instruct",
|
||||
"stability-ai/sdxl",
|
||||
"stability-ai/stable-diffusion",
|
||||
"stability-ai/stable-diffusion-3",
|
||||
"suno-ai/bark",
|
||||
"tstramer/material-diffusion",
|
||||
"yorickvp/llava-13b",
|
||||
"yorickvp/llava-v1.6-34b",
|
||||
"yorickvp/llava-v1.6-mistral-7b"
|
||||
"yorickvp/llava-v1.6-mistral-7b",
|
||||
"zsxkib/realistic-voice-cloning"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user