---
title: "Preview Pose Sketch"
method: POST
path: "/api/tryon/pose-variants/preview-sketch"
tags: ["tryon"]
---

# Preview Pose Sketch

`POST /api/tryon/pose-variants/preview-sketch`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/tryon/pose-variants/preview-sketch`
- Auth: HTTP bearer

Synchronously turn a user-uploaded person photo into a line
sketch. Same nano-banana edit prompt the async worker handler
uses, just invoked direct from the API so the Create modal can
show a preview before the user commits the variant.

Reuses the FE upload's `source_photo_s3_key`. Returns the
generated sketch's S3 key + a presigned URL the FE can render
immediately. Failures raise 422 with a typed reason so the FE
can surface a "couldn't generate sketch — try a different photo
or rewrite the prompt" affordance.

## Request body

- TryonPoseVariantPreviewSketchRequest
  - `source_photo_s3_key` string, required
  - `refinement_prompt` string, nullable

## Response `200`

Successful Response

- TryonPoseVariantPreviewSketchResponse
  - `sketch_s3_key` string, required
  - `sketch_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
