查询任务
GET
https://api.deerapi.com/replicate/v1/predictions/{id}
Replicate
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.deerapi.com/replicate/v1/predictions/1mw0gka0d9rma0cnymeaj7zk1g' \
--header 'Authorization: Bearer {{api-key}}'
响应示例响应示例
{
"id": "hvmbv5hndhrme0cpws2rnqqf60",
"logs": "Seed set to: 493139620\nRunning workflow\ngot prompt\nExecuting node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 67, title: ConditioningZeroOut, class type: ConditioningZeroOut\nExecuting node 68, title: ConditioningSetTimestepRange, class type: ConditioningSetTimestepRange\nExecuting node 69, title: Conditioning (Combine), class type: ConditioningCombine\nExecuting node 294, title: KSampler, class type: KSampler\n0%| | 0/40 [00:00<?, ?it/s]\n2%|▎ | 1/40 [00:00<00:04, 8.05it/s]\n5%|▌ | 2/40 [00:00<00:07, 4.80it/s]\n8%|▊ | 3/40 [00:00<00:07, 4.93it/s]\n10%|█ | 4/40 [00:00<00:07, 4.99it/s]\n12%|█▎ | 5/40 [00:00<00:06, 5.02it/s]\n15%|█▌ | 6/40 [00:01<00:06, 5.05it/s]\n18%|█▊ | 7/40 [00:01<00:06, 5.06it/s]\n20%|██ | 8/40 [00:01<00:06, 5.06it/s]\n22%|██▎ | 9/40 [00:01<00:06, 5.06it/s]\n25%|██▌ | 10/40 [00:01<00:05, 5.06it/s]\n28%|██▊ | 11/40 [00:02<00:05, 5.06it/s]\n30%|███ | 12/40 [00:02<00:05, 5.07it/s]\n32%|███▎ | 13/40 [00:02<00:05, 5.07it/s]\n35%|███▌ | 14/40 [00:02<00:05, 5.08it/s]\n38%|███▊ | 15/40 [00:02<00:04, 5.08it/s]\n40%|████ | 16/40 [00:03<00:04, 5.08it/s]\n42%|████▎ | 17/40 [00:03<00:04, 5.08it/s]\n45%|████▌ | 18/40 [00:03<00:04, 5.08it/s]\n48%|████▊ | 19/40 [00:03<00:04, 5.09it/s]\n50%|█████ | 20/40 [00:03<00:03, 5.09it/s]\n52%|█████▎ | 21/40 [00:04<00:03, 5.09it/s]\n55%|█████▌ | 22/40 [00:04<00:03, 5.09it/s]\n57%|█████▊ | 23/40 [00:04<00:03, 5.08it/s]\n60%|██████ | 24/40 [00:04<00:03, 5.08it/s]\n62%|██████▎ | 25/40 [00:04<00:02, 5.08it/s]\n65%|██████▌ | 26/40 [00:05<00:02, 5.08it/s]\n68%|██████▊ | 27/40 [00:05<00:02, 5.03it/s]\n70%|███████ | 28/40 [00:05<00:02, 5.04it/s]\n72%|███████▎ | 29/40 [00:05<00:02, 5.05it/s]\n75%|███████▌ | 30/40 [00:05<00:01, 5.06it/s]\n78%|███████▊ | 31/40 [00:06<00:01, 5.06it/s]\n80%|████████ | 32/40 [00:06<00:01, 5.06it/s]\n82%|████████▎ | 33/40 [00:06<00:01, 5.06it/s]\n85%|████████▌ | 34/40 [00:06<00:01, 5.07it/s]\n88%|████████▊ | 35/40 [00:06<00:00, 5.08it/s]\n90%|█████████ | 36/40 [00:07<00:00, 5.08it/s]\n92%|█████████▎| 37/40 [00:07<00:00, 5.05it/s]\n95%|█████████▌| 38/40 [00:07<00:00, 5.05it/s]\n98%|█████████▊| 39/40 [00:07<00:00, 5.04it/s]\n100%|██████████| 40/40 [00:07<00:00, 4.99it/s]\n100%|██████████| 40/40 [00:07<00:00, 5.07it/s]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 309, title: Save Image, class type: SaveImage\nPrompt executed in 8.44 seconds\noutputs: {'309': {'images': [{'filename': 'R8_sd3.5L_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nR8_sd3.5L_00001_.png\n",
"urls": {
"get": "https://api.replicate.com/v1/predictions/hvmbv5hndhrme0cpws2rnqqf60",
"cancel": "https://api.replicate.com/v1/predictions/hvmbv5hndhrme0cpws2rnqqf60/cancel",
"stream": "https://stream.replicate.com/v1/files/bcwr-ncd5hup2fsbkmgzekx5amaeffdq2q5chgothvyneybb6aliwdqnq"
},
"error": null,
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"
},
"model": "stability-ai/stable-diffusion-3.5-large",
"output": [
"https://replicate.delivery/xezq/fCzG33Tfn4vttEJVGKpeoWvvoGoOeqL3v9opPr6A9CBprQ4SB/out-0.webp"
],
"status": "succeeded",
"metrics": {
"image_count": 1,
"predict_time": 8.733386377
},
"version": "hidden",
"created_at": "2025-05-19T02:00:17.516Z",
"started_at": "2025-05-19T02:00:17.53369162Z",
"completed_at": "2025-05-19T02:00:26.267077996Z",
"data_removed": false
}
请求参数
Path 参数
id
string
必需
示例值:
1mw0gka0d9rma0cnymeaj7zk1g
Header 参数
Authorization
string
必需
示例值:
Bearer {{api-key}}
返回响应
修改于 2025-05-19 05:48:36