|
6431 | 6431 | } |
6432 | 6432 | } |
6433 | 6433 | }, |
| 6434 | + "/api/v1/app/generation_device_options": { |
| 6435 | + "get": { |
| 6436 | + "tags": ["app"], |
| 6437 | + "summary": "Get Generation Device Options", |
| 6438 | + "description": "List the devices available for generation, for use with the `generation_devices` setting.", |
| 6439 | + "operationId": "get_generation_device_options", |
| 6440 | + "responses": { |
| 6441 | + "200": { |
| 6442 | + "description": "Successful Response", |
| 6443 | + "content": { |
| 6444 | + "application/json": { |
| 6445 | + "schema": { |
| 6446 | + "items": { |
| 6447 | + "$ref": "#/components/schemas/GenerationDeviceOption" |
| 6448 | + }, |
| 6449 | + "type": "array", |
| 6450 | + "title": "Response Get Generation Device Options" |
| 6451 | + } |
| 6452 | + } |
| 6453 | + } |
| 6454 | + } |
| 6455 | + } |
| 6456 | + } |
| 6457 | + }, |
6434 | 6458 | "/api/v1/app/runtime_config": { |
6435 | 6459 | "get": { |
6436 | 6460 | "tags": ["app"], |
|
28461 | 28485 | "title": "GeneratePasswordResponse", |
28462 | 28486 | "description": "Response containing a generated password." |
28463 | 28487 | }, |
| 28488 | + "GenerationDeviceOption": { |
| 28489 | + "properties": { |
| 28490 | + "device": { |
| 28491 | + "type": "string", |
| 28492 | + "title": "Device", |
| 28493 | + "description": "The device identifier, e.g. 'cuda:0', 'mps', or 'cpu'" |
| 28494 | + }, |
| 28495 | + "name": { |
| 28496 | + "type": "string", |
| 28497 | + "title": "Name", |
| 28498 | + "description": "Human-readable device name" |
| 28499 | + } |
| 28500 | + }, |
| 28501 | + "type": "object", |
| 28502 | + "required": ["device", "name"], |
| 28503 | + "title": "GenerationDeviceOption", |
| 28504 | + "description": "A device that may be selected for generation." |
| 28505 | + }, |
28464 | 28506 | "GetMaskBoundingBoxInvocation": { |
28465 | 28507 | "category": "mask", |
28466 | 28508 | "class": "invocation", |
|
70155 | 70197 | ], |
70156 | 70198 | "title": "Max Queue History", |
70157 | 70199 | "description": "Keep the last N completed, failed, and canceled queue items on startup. Set to 0 to prune all terminal items." |
| 70200 | + }, |
| 70201 | + "generation_devices": { |
| 70202 | + "title": "Generation Devices", |
| 70203 | + "description": "Devices to use for parallel generation. `auto` uses every available GPU; provide an explicit list (e.g. `[cuda:0, cuda:1]`) to use specific devices. Takes effect after restarting InvokeAI." |
70158 | 70204 | } |
70159 | 70205 | }, |
70160 | 70206 | "type": "object", |
|
0 commit comments