File size: 9,828 Bytes
fea5887
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
{
 "openapi": "3.0.3",
 "info": {
  "title": "Pose transfer (default): Qwen-Image-Edit-2511 + AnyPose LoRA",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space linoyts/Qwen-Image-Edit-2511-AnyPose; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://linoyts-qwen-image-edit-2511-anypose.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "Image editing",
  "slot": "Pose transfer",
  "need": "Re-pose a character to match a reference pose image.",
  "role": "default",
  "space": "linoyts/Qwen-Image-Edit-2511-AnyPose",
  "space_url": "https://huggingface.co/spaces/linoyts/Qwen-Image-Edit-2511-AnyPose",
  "model": "Qwen-Image-Edit-2511 + AnyPose LoRA",
  "license": "Apache-2.0",
  "license_class": "open",
  "gpu_seconds_booked": "60",
  "notes": "Clean 4-step API that's commercially usable.",
  "caveats": "",
  "lineup_call": "/infer(reference_image, pose_image, num_inference_steps=4, rewrite_prompt=false, seed) \u2192 gallery",
  "api_style": "v1",
  "mcp_url": "https://linoyts-qwen-image-edit-2511-anypose.hf.space/gradio_api/mcp/"
 },
 "components": {
  "securitySchemes": {
   "hfToken": {
    "type": "http",
    "scheme": "bearer",
    "description": "Your own Hugging Face token (read scope is enough). It is sent only to the upstream Space and bills that call to your account's ZeroGPU quota. Without it the call runs on the small anonymous quota."
   }
  },
  "schemas": {}
 },
 "paths": {
  "/gradio_api/call/infer": {
   "post": {
    "description": "Re-pose a character to match a reference pose image. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/infer/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/linoyts/Qwen-Image-Edit-2511-AnyPose. License: Apache-2.0. \n\nUpstream description: Run image-editing inference using the Qwen-Image-Edit pipeline.\nReturns, in order: Result: list[dict(image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict(str, Any)), caption: str | None) | dict(video: filepath, caption: str | None)]; Seed: float",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 2,
          "maxItems": 10,
          "items": {},
          "description": "Positional inputs, in this order:\n0. reference_image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict(str, Any)) (required)\n1. pose_image: dict(path: str | None (Path to a local file), url: str | None (Publicly available url or base64 encoded image), size: int | None (Size of image in bytes), orig_name: str | None (Original filename), mime_type: str | None (mime type of image), is_stream: bool (Can always be set to False), meta: dict(str, Any)) (required)\n2. prompt: str (default \"\\nMake the person in image 1 do the exact same pose of the person in image 2. \\nChanging the style and background of the image of the person in image 1 is undesirable, so don't do it. \\nThe new pose should be pixel accurate to the pose we are trying to copy. \\nThe position of the arms and head and legs should be the same as the pose we are trying to copy. \\nChange the field of view and angle to match exactly image 2. Head tilt and eye gaze pose should match the person in image 2. \\nRemove the background of image 2, and replace it with the background of image 1.\\nDon't change the identity of the person in image 1, keep their appearance the same, it is undesirable to change their facical features or hair style. don't do it.\\n\")\n3. seed: float (default 0)\n4. randomize_seed: bool (default true)\n5. true_guidance_scale: float (default 1.0)\n6. num_inference_steps: float (default 4)\n7. height: float (default 256)\n8. width: float (default 256)\n9. rewrite_prompt: bool (default false)"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "reference_image",
      "schema": {
       "type": "object",
       "required": [
        "path",
        "meta"
       ],
       "description": "A file. Set path to a public https URL (or a path returned by POST /gradio_api/upload on the same Space) and meta to {\"_type\": \"gradio.FileData\"}.",
       "properties": {
        "path": {
         "type": "string"
        },
        "url": {
         "type": "string"
        },
        "orig_name": {
         "type": "string"
        },
        "meta": {
         "type": "object",
         "properties": {
          "_type": {
           "type": "string",
           "enum": [
            "gradio.FileData"
           ]
          }
         }
        }
       }
      },
      "required": true,
      "default": null
     },
     {
      "name": "pose_image",
      "schema": {
       "type": "object",
       "required": [
        "path",
        "meta"
       ],
       "description": "A file. Set path to a public https URL (or a path returned by POST /gradio_api/upload on the same Space) and meta to {\"_type\": \"gradio.FileData\"}.",
       "properties": {
        "path": {
         "type": "string"
        },
        "url": {
         "type": "string"
        },
        "orig_name": {
         "type": "string"
        },
        "meta": {
         "type": "object",
         "properties": {
          "_type": {
           "type": "string",
           "enum": [
            "gradio.FileData"
           ]
          }
         }
        }
       }
      },
      "required": true,
      "default": null
     },
     {
      "name": "prompt",
      "schema": {
       "type": "string"
      },
      "required": false,
      "default": "\nMake the person in image 1 do the exact same pose of the person in image 2. \nChanging the style and background of the image of the person in image 1 is undesirable, so don't do it. \nThe new pose should be pixel accurate to the pose we are trying to copy. \nThe position of the arms and head and legs should be the same as the pose we are trying to copy. \nChange the field of view and angle to match exactly image 2. Head tilt and eye gaze pose should match the person in image 2. \nRemove the background of image 2, and replace it with the background of image 1.\nDon't change the identity of the person in image 1, keep their appearance the same, it is undesirable to change their facical features or hair style. don't do it.\n"
     },
     {
      "name": "seed",
      "schema": {
       "type": "number",
       "description": "numeric value between 0 and 2147483647"
      },
      "required": false,
      "default": 0
     },
     {
      "name": "randomize_seed",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": true
     },
     {
      "name": "true_guidance_scale",
      "schema": {
       "type": "number",
       "description": "numeric value between 1.0 and 10.0"
      },
      "required": false,
      "default": 1.0
     },
     {
      "name": "num_inference_steps",
      "schema": {
       "type": "number",
       "description": "numeric value between 1 and 40"
      },
      "required": false,
      "default": 4
     },
     {
      "name": "height",
      "schema": {
       "type": "number",
       "description": "numeric value between 256 and 2048"
      },
      "required": false,
      "default": 256
     },
     {
      "name": "width",
      "schema": {
       "type": "number",
       "description": "numeric value between 256 and 2048"
      },
      "required": false,
      "default": 256
     },
     {
      "name": "rewrite_prompt",
      "schema": {
       "type": "boolean"
      },
      "required": false,
      "default": false
     }
    ],
    "operationId": "image_edit_pose_transfer",
    "tags": [
     "Image editing"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Pose transfer (default): Qwen-Image-Edit-2511 + AnyPose LoRA",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/infer/{event_id}": {
   "get": {
    "summary": "Read the result stream for /infer",
    "description": "Server-sent events. The final `event: complete` carries a JSON array of outputs; `event: error` means the call failed.",
    "parameters": [
     {
      "name": "event_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "SSE stream",
      "content": {
       "text/event-stream": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    },
    "operationId": "image_edit_pose_transfer_result",
    "tags": [
     "Image editing"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}