---
title: "Create Job"
method: POST
path: "/api/jobs"
---

# Create Job

`POST /api/jobs`

## 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/jobs`
- Auth: HTTP bearer

Single-shot draft+submit. Kept for the existing Platform-Storage
upload flow (inputs already exist in workspace before the user clicks
Generate). The two-phase `/draft` + `/submit` flow is preferred for
new clients — see `project_nail_art_storage_layout.md` memory.

## Request body

- JobCreateRequest: Frontend posts this after uploading hand images + selecting a nail-set. Inputs are raw S3 keys: `nail_set_s3_key` + `hand_s3_keys`, uploaded via `/api/uploads/standalone-presign` under the caller's own prefix (or pre-seeded admin nail-sets / curated-gallery keys). They're scope- + existence-validated server-side before the job is accepted. DEPRECATED — direct hand upload: a hand with a `None` entry in `hand_template_ids` (or no `hand_template_ids` at all) is an ad-hoc, user-uploaded hand that runs the full strip + SAM3 + VLM preprocess. The frontend no longer offers direct hand upload — all hands now come from curated hand templates — so this is retained only for in-flight / legacy jobs and is slated for removal. New callers SHOULD supply a `hand_template_id` per hand. (Per-finger custom directions also only apply on the template path; the worker logs a DEPRECATED warning when a hand arrives without a template.)
  - `nail_set_s3_key` string, nullable
  - `nail_set_label` string, nullable
  - `hand_s3_keys` string[], nullable
  - `hand_template_ids` string[], nullable
  - `harmonize_num_images` integer
  - `nail_shape` 'almond' | 'square' | 'coffin' | 'round' | 'oval' | 'squoval' | 'stiletto', nullable
  - `nail_length` 'super_short' | 'short' | 'medium' | 'long', nullable
  - `shape_terms` string, nullable
  - `output_aspect` 'auto' | '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16' | '4:1' | '1:4' | '8:1' | '1:8', nullable
  - `output_max_kb` integer, nullable
  - `output_format` 'png' | 'jpg' | 'webp', nullable
  - `output_resolution` '2K' | '4K', nullable
  - `collection_tag` string, nullable

## Response `201`

Successful Response

- JobCreateResponse
  - `id` string, uuid, required
  - `series_id` string, uuid, required
  - `status` 'draft' | 'pending' | 'running' | 'succeeded' | 'failed', required
  - `nail_set_s3_key` string, required
  - `hands` HandResultResponse[], required
    - `id` string, uuid, required
    - `hand_idx` integer, required
    - `status` 'charging' | 'running' | 'succeeded' | 'failed' | 'refunded', required
    - `hand_s3_key` string, required
    - `hand_template_id` string, uuid, nullable
    - `hand_url` string, nullable
    - `bare_s3_key` string, nullable
    - `warp_s3_key` string, nullable
    - `final_s3_key` string, nullable
    - `final_url` string, nullable
    - `candidate_s3_keys` string[], nullable
    - `candidate_urls` string[], nullable
    - `candidate_video_urls` string[], nullable
    - `cents_charged` integer, nullable
    - `error_message` string, nullable
    - `created_at` string, date-time, required
    - `finished_at` string, date-time, nullable
  - `total_cents_charged` integer, required
  - `created_at` string, date-time, 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)
