# Pose Variation

For AI agents: this is the Markdown version of https://docs.fashiolabs.com/tools/pose_angle_switch.html. The index of all Fashio API docs is at https://docs.fashiolabs.com/llms.txt, and the complete reference in one file is at https://docs.fashiolabs.com/llms-full.txt.

Re-pose the person in an existing photo while guaranteeing every garment, accessory and held or worn item stays exactly as photographed — same person, same outfit, new body posture.

`toolId: "pose_angle_switch"` · 4 credits · single\_image\_edit · ratio: ignored

![Pose Variation result — same person and outfit in a new pose](https://firebasestorage.googleapis.com/v0/b/fashio-ai-app.firebasestorage.app/o/fal_outputs%2Fangle2.jpg?alt=media&token=b3c0d7b6-6041-40cf-990b-784a6d4102e7)

## What it does

Give this tool an existing on-model photo and a target pose, and it re-poses the person while locking everything else in place — the garment, any accessories, and anything they're holding or wearing stays identical to the source photo. Only the body posture changes.

This is an in-place edit, so the original crop and canvas are always preserved — `ratio` is ignored if you send it. Don't expect it to change the output framing; it won't.

## Request body

| Field | Type |  | Description |
| --- | --- | --- | --- |
| `toolId` | string | required | Always `"pose_angle_switch"`. |
| `images.user_photo` | string | required | URL of the existing on-model photo to re-pose. |
| `pose` | string | required | A catalog ID from [GET /v1/poses](https://docs.fashiolabs.com/core-endpoints.md). Required in practice — without it there's nothing to change the pose to. |

## Example request

**cURL**

```bash
curl -X POST https://api.fashiolabs.com/v1/generations \
  -H "Authorization: Bearer fio_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "toolId": "pose_angle_switch",
    "images": {
      "user_photo": "https://your-cdn.com/on-model-shot.jpg"
    },
    "pose": "pose_hand_on_hip"
  }'
```

**Node.js**

```javascript
const res = await fetch("https://api.fashiolabs.com/v1/generations", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.FASHIO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    toolId: "pose_angle_switch",
    images: {
      user_photo: "https://your-cdn.com/on-model-shot.jpg",
    },
    pose: "pose_hand_on_hip",
  }),
});
const { id } = await res.json();
```

**Python**

```python
import os, requests

res = requests.post(
    "https://api.fashiolabs.com/v1/generations",
    headers={"Authorization": f"Bearer {os.environ['FASHIO_API_KEY']}"},
    json={
        "toolId": "pose_angle_switch",
        "images": {
            "user_photo": "https://your-cdn.com/on-model-shot.jpg",
        },
        "pose": "pose_hand_on_hip",
    },
)
job_id = res.json()["id"]
```

## Response

**202 Accepted**

```json
{ "success": true, "id": "8b1e...", "status": "processing" }
```

Poll `GET /v1/generations/:id` (see [Quickstart](https://docs.fashiolabs.com/quickstart.md)) until it completes:

**200 · completed**

```json
{
  "success": true,
  "id": "8b1e...",
  "status": "completed",
  "resultUrls": ["https://.../result.jpg"],
  "errorMessage": null
}
```

## Common errors

| Status | Meaning |
| --- | --- |
| 400 | `pose_angle_switch: missing required image "user_photo"` — required image field wasn't resolvable. |
| 402 | `Insufficient diamonds. Required 4, have <n>.` |
| 429 | Daily request cap reached for this key — see [Rate Limits](https://docs.fashiolabs.com/rate-limits.md). |

## Related tools

- [Virtual Try-On (Single)](https://docs.fashiolabs.com/tools/virtual_model.md) — generate a fresh on-model photo from a garment instead of re-posing an existing one.
- [Model Swap](https://docs.fashiolabs.com/tools/model_swap.md) — change who's wearing the outfit instead of how they're posed.

---

Source: https://docs.fashiolabs.com/tools/pose_angle_switch.html · OpenAPI spec: https://docs.fashiolabs.com/openapi.yaml · Docs index: https://docs.fashiolabs.com/llms.txt
