|
| 1 | +openapi: 3.1.0 |
| 2 | +info: |
| 3 | + title: Livepeer AI Runner |
| 4 | + description: An application to run AI pipelines |
| 5 | + version: 0.1.0 |
| 6 | +servers: |
| 7 | +- url: https://dream-gateway.livepeer.cloud |
| 8 | + description: Livepeer Cloud Community Gateway |
| 9 | +paths: |
| 10 | + /text-to-image: |
| 11 | + post: |
| 12 | + summary: Text To Image |
| 13 | + operationId: text_to_image |
| 14 | + requestBody: |
| 15 | + content: |
| 16 | + application/json: |
| 17 | + schema: |
| 18 | + $ref: '#/components/schemas/TextToImageParams' |
| 19 | + required: true |
| 20 | + responses: |
| 21 | + '200': |
| 22 | + description: Successful Response |
| 23 | + content: |
| 24 | + application/json: |
| 25 | + schema: |
| 26 | + $ref: '#/components/schemas/ImageResponse' |
| 27 | + '400': |
| 28 | + description: Bad Request |
| 29 | + content: |
| 30 | + application/json: |
| 31 | + schema: |
| 32 | + $ref: '#/components/schemas/HTTPError' |
| 33 | + '500': |
| 34 | + description: Internal Server Error |
| 35 | + content: |
| 36 | + application/json: |
| 37 | + schema: |
| 38 | + $ref: '#/components/schemas/HTTPError' |
| 39 | + '422': |
| 40 | + description: Validation Error |
| 41 | + content: |
| 42 | + application/json: |
| 43 | + schema: |
| 44 | + $ref: '#/components/schemas/HTTPValidationError' |
| 45 | + security: |
| 46 | + - HTTPBearer: [] |
| 47 | + /image-to-image: |
| 48 | + post: |
| 49 | + summary: Image To Image |
| 50 | + operationId: image_to_image |
| 51 | + requestBody: |
| 52 | + content: |
| 53 | + multipart/form-data: |
| 54 | + schema: |
| 55 | + $ref: '#/components/schemas/Body_image_to_image_image_to_image_post' |
| 56 | + required: true |
| 57 | + responses: |
| 58 | + '200': |
| 59 | + description: Successful Response |
| 60 | + content: |
| 61 | + application/json: |
| 62 | + schema: |
| 63 | + $ref: '#/components/schemas/ImageResponse' |
| 64 | + '400': |
| 65 | + description: Bad Request |
| 66 | + content: |
| 67 | + application/json: |
| 68 | + schema: |
| 69 | + $ref: '#/components/schemas/HTTPError' |
| 70 | + '500': |
| 71 | + description: Internal Server Error |
| 72 | + content: |
| 73 | + application/json: |
| 74 | + schema: |
| 75 | + $ref: '#/components/schemas/HTTPError' |
| 76 | + '422': |
| 77 | + description: Validation Error |
| 78 | + content: |
| 79 | + application/json: |
| 80 | + schema: |
| 81 | + $ref: '#/components/schemas/HTTPValidationError' |
| 82 | + security: |
| 83 | + - HTTPBearer: [] |
| 84 | + /image-to-video: |
| 85 | + post: |
| 86 | + summary: Image To Video |
| 87 | + operationId: image_to_video |
| 88 | + requestBody: |
| 89 | + content: |
| 90 | + multipart/form-data: |
| 91 | + schema: |
| 92 | + $ref: '#/components/schemas/Body_image_to_video_image_to_video_post' |
| 93 | + required: true |
| 94 | + responses: |
| 95 | + '200': |
| 96 | + description: Successful Response |
| 97 | + content: |
| 98 | + application/json: |
| 99 | + schema: |
| 100 | + $ref: '#/components/schemas/VideoResponse' |
| 101 | + '400': |
| 102 | + description: Bad Request |
| 103 | + content: |
| 104 | + application/json: |
| 105 | + schema: |
| 106 | + $ref: '#/components/schemas/HTTPError' |
| 107 | + '500': |
| 108 | + description: Internal Server Error |
| 109 | + content: |
| 110 | + application/json: |
| 111 | + schema: |
| 112 | + $ref: '#/components/schemas/HTTPError' |
| 113 | + '422': |
| 114 | + description: Validation Error |
| 115 | + content: |
| 116 | + application/json: |
| 117 | + schema: |
| 118 | + $ref: '#/components/schemas/HTTPValidationError' |
| 119 | + security: |
| 120 | + - HTTPBearer: [] |
| 121 | +components: |
| 122 | + schemas: |
| 123 | + APIError: |
| 124 | + properties: |
| 125 | + msg: |
| 126 | + type: string |
| 127 | + title: Msg |
| 128 | + type: object |
| 129 | + required: |
| 130 | + - msg |
| 131 | + title: APIError |
| 132 | + Body_image_to_image_image_to_image_post: |
| 133 | + properties: |
| 134 | + prompt: |
| 135 | + type: string |
| 136 | + title: Prompt |
| 137 | + image: |
| 138 | + type: string |
| 139 | + format: binary |
| 140 | + title: Image |
| 141 | + model_id: |
| 142 | + type: string |
| 143 | + title: Model Id |
| 144 | + default: '' |
| 145 | + strength: |
| 146 | + type: number |
| 147 | + title: Strength |
| 148 | + default: 0.8 |
| 149 | + guidance_scale: |
| 150 | + type: number |
| 151 | + title: Guidance Scale |
| 152 | + default: 7.5 |
| 153 | + negative_prompt: |
| 154 | + type: string |
| 155 | + title: Negative Prompt |
| 156 | + default: '' |
| 157 | + safety_check: |
| 158 | + type: boolean |
| 159 | + title: Safety Check |
| 160 | + default: true |
| 161 | + seed: |
| 162 | + type: integer |
| 163 | + title: Seed |
| 164 | + num_images_per_prompt: |
| 165 | + type: integer |
| 166 | + title: Num Images Per Prompt |
| 167 | + default: 1 |
| 168 | + type: object |
| 169 | + required: |
| 170 | + - prompt |
| 171 | + - image |
| 172 | + - model_id |
| 173 | + title: Body_image_to_image_image_to_image_post |
| 174 | + Body_image_to_video_image_to_video_post: |
| 175 | + properties: |
| 176 | + image: |
| 177 | + type: string |
| 178 | + format: binary |
| 179 | + title: Image |
| 180 | + model_id: |
| 181 | + type: string |
| 182 | + title: Model Id |
| 183 | + default: '' |
| 184 | + height: |
| 185 | + type: integer |
| 186 | + title: Height |
| 187 | + default: 576 |
| 188 | + width: |
| 189 | + type: integer |
| 190 | + title: Width |
| 191 | + default: 1024 |
| 192 | + fps: |
| 193 | + type: integer |
| 194 | + title: Fps |
| 195 | + default: 6 |
| 196 | + motion_bucket_id: |
| 197 | + type: integer |
| 198 | + title: Motion Bucket Id |
| 199 | + default: 127 |
| 200 | + noise_aug_strength: |
| 201 | + type: number |
| 202 | + title: Noise Aug Strength |
| 203 | + default: 0.02 |
| 204 | + seed: |
| 205 | + type: integer |
| 206 | + title: Seed |
| 207 | + type: object |
| 208 | + required: |
| 209 | + - image |
| 210 | + - model_id |
| 211 | + title: Body_image_to_video_image_to_video_post |
| 212 | + HTTPError: |
| 213 | + properties: |
| 214 | + detail: |
| 215 | + $ref: '#/components/schemas/APIError' |
| 216 | + type: object |
| 217 | + required: |
| 218 | + - detail |
| 219 | + title: HTTPError |
| 220 | + HTTPValidationError: |
| 221 | + properties: |
| 222 | + detail: |
| 223 | + items: |
| 224 | + $ref: '#/components/schemas/ValidationError' |
| 225 | + type: array |
| 226 | + title: Detail |
| 227 | + type: object |
| 228 | + title: HTTPValidationError |
| 229 | + HealthCheck: |
| 230 | + properties: |
| 231 | + status: |
| 232 | + type: string |
| 233 | + title: Status |
| 234 | + default: OK |
| 235 | + type: object |
| 236 | + title: HealthCheck |
| 237 | + ImageResponse: |
| 238 | + properties: |
| 239 | + images: |
| 240 | + items: |
| 241 | + $ref: '#/components/schemas/Media' |
| 242 | + type: array |
| 243 | + title: Images |
| 244 | + type: object |
| 245 | + required: |
| 246 | + - images |
| 247 | + title: ImageResponse |
| 248 | + Media: |
| 249 | + properties: |
| 250 | + url: |
| 251 | + type: string |
| 252 | + title: Url |
| 253 | + seed: |
| 254 | + type: integer |
| 255 | + title: Seed |
| 256 | + nsfw: |
| 257 | + type: boolean |
| 258 | + title: Nsfw |
| 259 | + type: object |
| 260 | + required: |
| 261 | + - url |
| 262 | + - seed |
| 263 | + - nsfw |
| 264 | + title: Media |
| 265 | + TextToImageParams: |
| 266 | + properties: |
| 267 | + model_id: |
| 268 | + type: string |
| 269 | + title: Model Id |
| 270 | + default: '' |
| 271 | + prompt: |
| 272 | + type: string |
| 273 | + title: Prompt |
| 274 | + height: |
| 275 | + type: integer |
| 276 | + title: Height |
| 277 | + width: |
| 278 | + type: integer |
| 279 | + title: Width |
| 280 | + guidance_scale: |
| 281 | + type: number |
| 282 | + title: Guidance Scale |
| 283 | + default: 7.5 |
| 284 | + negative_prompt: |
| 285 | + type: string |
| 286 | + title: Negative Prompt |
| 287 | + default: '' |
| 288 | + safety_check: |
| 289 | + type: boolean |
| 290 | + title: Safety Check |
| 291 | + default: true |
| 292 | + seed: |
| 293 | + type: integer |
| 294 | + title: Seed |
| 295 | + num_inference_steps: |
| 296 | + type: integer |
| 297 | + title: Num Inference Steps |
| 298 | + default: 50 |
| 299 | + num_images_per_prompt: |
| 300 | + type: integer |
| 301 | + title: Num Images Per Prompt |
| 302 | + default: 1 |
| 303 | + type: object |
| 304 | + required: |
| 305 | + - prompt |
| 306 | + - model_id |
| 307 | + title: TextToImageParams |
| 308 | + ValidationError: |
| 309 | + properties: |
| 310 | + loc: |
| 311 | + items: |
| 312 | + anyOf: |
| 313 | + - type: string |
| 314 | + - type: integer |
| 315 | + type: array |
| 316 | + title: Location |
| 317 | + msg: |
| 318 | + type: string |
| 319 | + title: Message |
| 320 | + type: |
| 321 | + type: string |
| 322 | + title: Error Type |
| 323 | + type: object |
| 324 | + required: |
| 325 | + - loc |
| 326 | + - msg |
| 327 | + - type |
| 328 | + title: ValidationError |
| 329 | + VideoResponse: |
| 330 | + properties: |
| 331 | + frames: |
| 332 | + items: |
| 333 | + items: |
| 334 | + $ref: '#/components/schemas/Media' |
| 335 | + type: array |
| 336 | + type: array |
| 337 | + title: Frames |
| 338 | + type: object |
| 339 | + required: |
| 340 | + - frames |
| 341 | + title: VideoResponse |
| 342 | + securitySchemes: |
| 343 | + HTTPBearer: |
| 344 | + type: http |
| 345 | + scheme: bearer |
0 commit comments