zerogpu-tool-catalog / tools /image_edit_pose_transfer.openapi.json
Mike0021's picture
Publish discovery-only ZeroGPU OpenAPI catalog
fea5887 verified
Raw History Blame Contribute Delete
9.83 kB
{
"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": []
},
{}
]
}
}
}
}