stable-diffusion-aws-extension/docs/en/developer-guide/api/comfy-1.0.0.md

220 lines
5.5 KiB
Markdown

# Comfy
# 执行
<a id="opIdCreateInferenceJob"></a>
## GET 获取执行详情 GetExecute
GET /executes/prompt_id
### Params
|Name|Location|Type|Required|Description|
|---|---|---|---|---|
|prompt_id|query|string| yes |Prompt ID|
> Response Examples
> Success
```json
{
"statusCode": 200,
"debug": {
"function_url": "https://ap-northeast-1.console.aws.amazon.com/lambda/home?region=ap-northeast-1#/functions/Extension-for-Stable-Diff-GetExecutelambda150CA75A-OnCA61VlLPFO",
"log_url": "https://ap-northeast-1.console.aws.amazon.com/cloudwatch/home?region=ap-northeast-1#logsV2:log-groups/log-group/%2Faws%2Flambda%2FExtension-for-Stable-Diff-GetExecutelambda150CA75A-OnCA61VlLPFO/log-events/2024%2F03%2F31%2F%5B%24LATEST%5D42a5a96838004138bd6cdaab65aa0904",
"trace_url": "https://ap-northeast-1.console.aws.amazon.com/cloudwatch/home?region=ap-northeast-1#xray:traces/1-66094ccd-59bee192247987145ec3f20e"
},
"data": {
"prompt_id": "11111111-1111-1112",
"need_sync": true,
"sagemaker_raw": {},
"prompt_path": "",
"endpoint_name": "esd-async-test",
"status": "created",
"create_time": "2024-03-31T11:25:21.493741",
"inference_type": "Async",
"start_time": "2024-03-31T11:25:21.493756",
"prompt_params": {
"prompt": {
"4": {
"inputs": {
"ckpt_name": "sdXL_v10VAEFix.safetensors"
},
"class_type": "CheckpointLoaderSimple"
},
"5": {
"inputs": {
"width": "1024",
"height": "1024",
"batch_size": "1"
},
"class_type": "EmptyLatentImage"
},
"6": {
"inputs": {
"clip": [
"4",
"1"
],
"text": "evening sunset scenery blue sky nature, glass bottle with a galaxy in it"
},
"class_type": "CLIPTextEncode"
},
"7": {
"inputs": {
"clip": [
"4",
"1"
],
"text": "text, watermark"
},
"class_type": "CLIPTextEncode"
},
"10": {
"inputs": {
"latent_image": [
"5",
"0"
],
"cfg": "8",
"return_with_leftover_noise": "enable",
"end_at_step": "20",
"positive": [
"6",
"0"
],
"add_noise": "enable",
"steps": "25",
"scheduler": "normal",
"negative": [
"7",
"0"
],
"start_at_step": "0",
"sampler_name": "euler",
"noise_seed": "721897303308196",
"model": [
"4",
"0"
]
},
"class_type": "KSamplerAdvanced"
},
"11": {
"inputs": {
"latent_image": [
"10",
"0"
],
"cfg": "8",
"return_with_leftover_noise": "disable",
"end_at_step": "10000",
"positive": [
"15",
"0"
],
"add_noise": "disable",
"steps": "25",
"scheduler": "normal",
"negative": [
"16",
"0"
],
"start_at_step": "20",
"sampler_name": "euler",
"noise_seed": "0",
"model": [
"12",
"0"
]
},
"class_type": "KSamplerAdvanced"
},
"12": {
"inputs": {
"ckpt_name": "sdXL_v10VAEFix.safetensors"
},
"class_type": "CheckpointLoaderSimple"
},
"15": {
"inputs": {
"clip": [
"12",
"1"
],
"text": "evening sunset scenery blue sky nature, glass bottle with a galaxy in it"
},
"class_type": "CLIPTextEncode"
},
"16": {
"inputs": {
"clip": [
"12",
"1"
],
"text": "text, watermark"
},
"class_type": "CLIPTextEncode"
},
"17": {
"inputs": {
"samples": [
"11",
"0"
],
"vae": [
"12",
"2"
]
},
"class_type": "VAEDecode"
},
"19": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"17",
"0"
]
},
"class_type": "SaveImage"
}
}
},
"output_path": ""
},
"message": "OK"
}
```
### Responses
|HTTP Status Code |Meaning|Description|Data schema|
|---|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Success|Inline|
### Responses Data Schema
HTTP Status Code **200**
|Name|Type|Required|Restrictions|Title|description|
|---|---|---|---|---|---|
|» statusCode|integer|true|none||none|
|» data|object|true|none||none|
|»» inference|object|true|none||none|
|»»» id|string|true|none||none|
|»»» type|string|true|none||none|
|»»» api_params_s3_location|string|true|none||none|
|»»» api_params_s3_upload_url|string|true|none||none|
|»»» models|[object]|true|none||none|
|»»»» id|string|true|none||none|
|»»»» name|[string]|true|none||none|
|»»»» type|string|true|none||none|
|» message|string|true|none||none|
# Data Schema