openapi: 3.1.0
info:
  title: Fashio API
  version: "1.0"
  summary: AI fashion model generation for e-commerce — v1 public API.
  description: |
    Fashio generates publish-ready e-commerce photos: upload a garment photo,
    pick an AI model and a venue, get back on-model shots. This is the same
    generation pipeline the Fashio mobile app and web dashboard use — external
    API access runs through the same diamond credit balance as your account.

    ## Authentication
    Every request needs an API key in the `Authorization` header:

    ```
    Authorization: Bearer fio_live_<keyId>.<secret>
    ```

    Create a key from your dashboard at **fashiolabs.com → Profile → API Keys**.
    A key authenticates as your account — generations are billed against your
    own diamond balance, exactly like using the app.

    ## Typical flow
    1. `POST /v1/uploads` — send a garment photo, get back a URL.
    2. `GET /v1/fashion-models`, `GET /v1/venues`, `GET /v1/poses` — browse the
       catalog to pick a model/venue/pose id (or skip these and only use your
       own image URLs where a tool allows it).
    3. `POST /v1/generations` — start a job with the URLs and ids you have.
    4. `GET /v1/generations/{id}` — poll until `status` is `completed` or `failed`.

    ## Rate limits
    Every key has a daily request cap (visible when you create it). Going over
    it returns `429`.
  contact:
    name: Fashio
    url: https://fashiolabs.com
  license:
    name: Proprietary
    url: https://fashiolabs.com/legal
servers:
  - url: https://api.fashiolabs.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Catalog
    description: Browse selectable models, venues and poses.
  - name: Uploads
    description: Turn a raw image into a URL you can pass to a generation.
  - name: Generations
    description: Start and poll AI generation jobs.
  - name: Account
    description: Email, plan, diamond balance, and renewal date for the calling key's account.
  - name: Template Sets
    description: Save a generation's styling (model/venue/pose) as a reusable preset.
  - name: Ready Template Sets
    description: Browse Fashio's own curated "ready photoshoot" library and generate a full catalogue from it.

paths:
  /v1/models:
    get:
      operationId: listModels
      summary: List generation tools
      description: >-
        Every tool `POST /v1/generations` accepts as `toolId`, with its
        input shape and fallback diamond price (the real price is resolved
        per-request and may differ slightly if it's been updated since).
      tags: [Catalog]
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  models:
                    type: array
                    items:
                      type: object
                      properties:
                        id: { type: string, example: virtual_model }
                        inputShape:
                          type: string
                          enum: [single_image_edit, model_garment, fanout_pack, deterministic, video]
                        promptMode:
                          type: string
                          enum: [none, assembled, custom, motion]
                        fallbackPriceDiamonds: { type: integer, example: 4 }
        "401": { $ref: "#/components/responses/Unauthorized" }
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |
            curl https://api.fashiolabs.com/v1/models \
              -H "Authorization: Bearer $FASHIO_API_KEY"
        - lang: JavaScript
          label: Node.js
          source: |
            const res = await fetch("https://api.fashiolabs.com/v1/models", {
              headers: { Authorization: `Bearer ${process.env.FASHIO_API_KEY}` },
            });
            const { models } = await res.json();
        - lang: Python
          label: Python
          source: |
            import os, requests

            res = requests.get(
                "https://api.fashiolabs.com/v1/models",
                headers={"Authorization": f"Bearer {os.environ['FASHIO_API_KEY']}"},
            )
            models = res.json()["models"]

  /v1/fashion-models:
    get:
      operationId: listFashionModels
      summary: List selectable AI person models
      tags: [Catalog]
      parameters:
        - name: gender
          in: query
          schema: { type: string, enum: [male, female] }
        - name: limit
          in: query
          schema: { type: integer, minimum: 1, maximum: 100, default: 20 }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  fashionModels:
                    type: array
                    items:
                      type: object
                      properties:
                        id: { type: string }
                        image_urls: { type: array, items: { type: string } }
                        gender: { type: string }
                        race: { type: string }
                        bodyType: { type: string }
                        ageRange: { type: string }
                        isPremium: { type: boolean }
        "401": { $ref: "#/components/responses/Unauthorized" }

  /v1/venues:
    get:
      operationId: listVenues
      summary: List selectable venues/backgrounds
      tags: [Catalog]
      parameters:
        - name: limit
          in: query
          schema: { type: integer, minimum: 1, maximum: 100, default: 20 }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  venues:
                    type: array
                    items:
                      type: object
                      properties:
                        id: { type: string }
                        displayNames: { type: object, additionalProperties: { type: string } }
                        image_url: { type: string }
                        type: { type: string }
        "401": { $ref: "#/components/responses/Unauthorized" }

  /v1/poses:
    get:
      operationId: listPoses
      summary: List selectable poses
      tags: [Catalog]
      parameters:
        - name: type
          in: query
          description: Pose subset — omit for the default (non-jewelry) pose set.
          schema: { type: string, example: ring }
        - name: limit
          in: query
          schema: { type: integer, minimum: 1, maximum: 100, default: 20 }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  poses:
                    type: array
                    items:
                      type: object
                      properties:
                        id: { type: string }
                        displayNames: { type: object, additionalProperties: { type: string } }
                        image_url: { type: string }
                        type: { type: string }
        "401": { $ref: "#/components/responses/Unauthorized" }

  /v1/style-presets:
    get:
      operationId: listStylePresets
      summary: List style presets (pro_studio)
      description: >-
        The lighting/mood presets pro_studio accepts as `stylePreset`, active
        ones only, in display order. Each carries a preview image.
      tags: [Catalog]
      parameters:
        - name: limit
          in: query
          schema: { type: integer, minimum: 1, maximum: 100, default: 20 }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  stylePresets:
                    type: array
                    items:
                      type: object
                      properties:
                        id: { type: string }
                        displayNames: { type: object, additionalProperties: { type: string } }
                        descriptions: { type: object, additionalProperties: { type: string } }
                        image_url: { type: string }
                        sortOrder: { type: integer }
                        isActive: { type: boolean }
        "401": { $ref: "#/components/responses/Unauthorized" }

  /v1/uploads:
    post:
      operationId: uploadImage
      summary: Upload an image, get a usable URL
      description: >-
        Send raw image bytes with an `image/jpeg`, `image/png` or `image/webp`
        Content-Type. The returned `url` can be passed into any `images.*`
        field of `POST /v1/generations`. Max 8 MB.
      tags: [Uploads]
      requestBody:
        required: true
        content:
          image/jpeg: { schema: { type: string, format: binary } }
          image/png: { schema: { type: string, format: binary } }
          image/webp: { schema: { type: string, format: binary } }
      responses:
        "200":
          description: Uploaded
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  id: { type: string, format: uuid }
                  url: { type: string, format: uri }
        "413": { description: "Image larger than 8 MB", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
        "415": { description: "Not a JPEG/PNG/WebP image", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |
            curl https://api.fashiolabs.com/v1/uploads \
              -H "Authorization: Bearer $FASHIO_API_KEY" \
              -H "Content-Type: image/jpeg" \
              --data-binary @garment.jpg
        - lang: JavaScript
          label: Node.js
          source: |
            import { readFile } from "node:fs/promises";

            const bytes = await readFile("garment.jpg");
            const res = await fetch("https://api.fashiolabs.com/v1/uploads", {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.FASHIO_API_KEY}`,
                "Content-Type": "image/jpeg",
              },
              body: bytes,
            });
            const { url } = await res.json();
        - lang: Python
          label: Python
          source: |
            import os, requests

            with open("garment.jpg", "rb") as f:
                res = requests.post(
                    "https://api.fashiolabs.com/v1/uploads",
                    headers={
                        "Authorization": f"Bearer {os.environ['FASHIO_API_KEY']}",
                        "Content-Type": "image/jpeg",
                    },
                    data=f.read(),
                )
            url = res.json()["url"]

  /v1/generations:
    post:
      operationId: createGeneration
      summary: Start a generation job
      description: >-
        Deducts diamonds from your account and queues the job. Returns
        immediately with `status: "processing"` — poll
        `GET /v1/generations/{id}` for the result. See `GET /v1/models` for
        valid `toolId` values and what each one needs in `images`.
      tags: [Generations]
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateGenerationRequest"
            examples:
              virtualTryOn:
                summary: virtual_model — put a garment on an AI model
                value:
                  toolId: virtual_model
                  images:
                    fashion_model: "6a2f811f-0465-4c70-92aa-2434765441f9"
                    garment_photo: "https://firebasestorage.googleapis.com/.../garment.jpg"
                    venue: pure_white
                  pose: contrapposto_elegance
              removeBackground:
                summary: remove_background — deterministic, no prompt/pose needed
                value:
                  toolId: remove_background
                  images:
                    user_photo: "https://firebasestorage.googleapis.com/.../product.jpg"
      responses:
        "202":
          description: Job queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  id: { type: string, description: "Pass this to GET /v1/generations/{id}" }
                  status: { type: string, enum: [processing] }
        "400": { description: "Unknown tool or missing required image", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
        "402": { description: "Insufficient diamond balance", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
        "429": { description: "Daily request cap reached", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |
            curl https://api.fashiolabs.com/v1/generations \
              -H "Authorization: Bearer $FASHIO_API_KEY" \
              -H "Content-Type: application/json" \
              -d '{
                "toolId": "virtual_model",
                "images": {
                  "fashion_model": "6a2f811f-0465-4c70-92aa-2434765441f9",
                  "garment_photo": "https://.../garment.jpg",
                  "venue": "pure_white"
                },
                "pose": "contrapposto_elegance"
              }'
        - lang: JavaScript
          label: Node.js
          source: |
            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: "virtual_model",
                images: {
                  fashion_model: "6a2f811f-0465-4c70-92aa-2434765441f9",
                  garment_photo: garmentUrl,
                  venue: "pure_white",
                },
                pose: "contrapposto_elegance",
              }),
            });
            const { id } = await res.json();
        - lang: Python
          label: Python
          source: |
            import os, requests

            res = requests.post(
                "https://api.fashiolabs.com/v1/generations",
                headers={"Authorization": f"Bearer {os.environ['FASHIO_API_KEY']}"},
                json={
                    "toolId": "virtual_model",
                    "images": {
                        "fashion_model": "6a2f811f-0465-4c70-92aa-2434765441f9",
                        "garment_photo": garment_url,
                        "venue": "pure_white",
                    },
                    "pose": "contrapposto_elegance",
                },
            )
            job_id = res.json()["id"]

  /v1/generations/{id}:
    get:
      operationId: getGeneration
      summary: Poll a generation job
      tags: [Generations]
      parameters:
        - name: id
          in: path
          required: true
          schema: { type: string }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  id: { type: string }
                  status: { type: string, enum: [processing, completed, failed] }
                  resultUrls: { type: array, items: { type: string, format: uri } }
                  errorMessage: { type: ["string", "null"] }
        "404": { description: "Not found, or not owned by this key", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |
            curl https://api.fashiolabs.com/v1/generations/$JOB_ID \
              -H "Authorization: Bearer $FASHIO_API_KEY"
        - lang: JavaScript
          label: Node.js
          source: |
            async function pollUntilDone(id) {
              for (;;) {
                const res = await fetch(`https://api.fashiolabs.com/v1/generations/${id}`, {
                  headers: { Authorization: `Bearer ${process.env.FASHIO_API_KEY}` },
                });
                const job = await res.json();
                if (job.status !== "processing") return job;
                await new Promise((r) => setTimeout(r, 2000));
              }
            }
        - lang: Python
          label: Python
          source: |
            import os, time, requests

            def poll_until_done(job_id):
                headers = {"Authorization": f"Bearer {os.environ['FASHIO_API_KEY']}"}
                while True:
                    job = requests.get(
                        f"https://api.fashiolabs.com/v1/generations/{job_id}",
                        headers=headers,
                    ).json()
                    if job["status"] != "processing":
                        return job
                    time.sleep(2)

  /v1/account:
    get:
      operationId: getAccount
      summary: Get account info
      description: >-
        Email, plan status, diamond (credit) balance, and renewal date for the
        account that owns the calling API key.
      tags: [Account]
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  email: { type: ["string", "null"] }
                  diamondBalance: { type: integer, example: 160 }
                  plan:
                    type: object
                    properties:
                      isPremium: { type: boolean }
                      status: { type: string, example: active }
                      planProductId: { type: ["string", "null"], example: growth_yearly }
                      provider: { type: ["string", "null"], example: revenuecat }
                      cancelAtPeriodEnd: { type: boolean }
                      renewsAt: { type: ["string", "null"], format: date-time }
        "401": { $ref: "#/components/responses/Unauthorized" }
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |
            curl https://api.fashiolabs.com/v1/account \
              -H "Authorization: Bearer $FASHIO_API_KEY"

  /v1/template-sets:
    post:
      operationId: createTemplateSet
      summary: Save a generation's styling as a reusable preset
      description: >-
        Captures fashion_model/venue/pose/shotType/stylePreset/ratio from a
        completed generation (`sourceMediaId`) — or from explicit fields — and
        saves it under `label`. Reuse it later via `POST /v1/generations
        { templateSetId }` to put a new garment on the same model/venue/pose.
      tags: [Template Sets]
      requestBody:
        required: true
        content:
          application/json:
            schema: { $ref: "#/components/schemas/CreateTemplateSetRequest" }
            examples:
              fromGeneration:
                summary: Capture styling from a past job
                value:
                  label: "Studio white, model A, 3/4 pose"
                  sourceMediaId: "8b1e..."
      responses:
        "201":
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  id: { type: string }
        "400": { description: "Missing label, or no toolId/images resolvable", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
        "404": { description: "sourceMediaId not found", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
    get:
      operationId: listTemplateSets
      summary: List saved template sets
      tags: [Template Sets]
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  templateSets:
                    type: array
                    items: { $ref: "#/components/schemas/TemplateSet" }
        "401": { $ref: "#/components/responses/Unauthorized" }

  /v1/template-sets/{id}:
    delete:
      operationId: deleteTemplateSet
      summary: Delete a saved template set
      tags: [Template Sets]
      parameters:
        - name: id
          in: path
          required: true
          schema: { type: string }
      responses:
        "200":
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
        "404": { description: "Not found, or not owned by this key", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }

  /v1/ready-template-sets:
    get:
      operationId: listReadyTemplateSets
      summary: Browse Fashio's ready-made photoshoot library
      description: >-
        Fashio's own curated catalogue of "ready photoshoots" (one model + one
        venue + N pinned poses each) — NOT the caller's own saved presets, see
        `GET /v1/template-sets` for those. Use an id here with
        `POST /v1/catalog-jobs`.
      tags: [Ready Template Sets]
      parameters:
        - { name: query, in: query, description: Free-text search., schema: { type: string } }
        - { name: category, in: query, schema: { type: string } }
        - { name: featuredOnly, in: query, schema: { type: boolean } }
        - { name: sort, in: query, schema: { type: string, enum: [popular, newest, curated], default: curated } }
        - { name: gender, in: query, schema: { type: string } }
        - { name: setting, in: query, schema: { type: string } }
        - { name: lighting, in: query, schema: { type: string } }
        - { name: mood, in: query, schema: { type: string } }
        - { name: palette, in: query, schema: { type: string } }
        - { name: type, in: query, schema: { type: string } }
        - { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 60, default: 20 } }
        - { name: startAfter, in: query, description: "Cursor from the previous page's nextCursor.", schema: { type: integer } }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  templateSets:
                    type: array
                    items: { $ref: "#/components/schemas/ReadyTemplateSet" }
                  nextCursor: { type: ["integer", "null"] }
        "401": { $ref: "#/components/responses/Unauthorized" }

  /v1/ready-template-sets/{id}:
    get:
      operationId: getReadyTemplateSet
      summary: Get one ready-made photoshoot set
      description: Includes its full list of shots — each shot's `id` can be passed in `POST /v1/catalog-jobs`'s `shotIds`.
      tags: [Ready Template Sets]
      parameters:
        - name: id
          in: path
          required: true
          schema: { type: string }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  templateSet: { $ref: "#/components/schemas/ReadyTemplateSet" }
        "404": { description: "Not found", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }

  /v1/catalog-jobs:
    post:
      operationId: createCatalogJob
      summary: Generate a full catalogue from a ready-made photoshoot set
      description: >-
        Runs your product photo(s) through every shot (or a chosen subset) of
        one of Fashio's curated photoshoot sets, producing one image per shot.
        Billed per shot (`GET /v1/ready-template-sets/{id}`'s shot count ×
        the style's per-shot price). Poll the returned `mediaItemId` with
        `GET /v1/generations/{id}` — `resultUrls` holds every shot's output
        once `status` is `completed`.
      tags: [Ready Template Sets]
      requestBody:
        required: true
        content:
          application/json:
            schema: { $ref: "#/components/schemas/CreateCatalogJobRequest" }
      responses:
        "202":
          description: Job queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  success: { type: boolean }
                  mediaItemId: { type: string, description: "Pass this to GET /v1/generations/{id}" }
                  status: { type: string, enum: [pack_processing] }
                  packTotal: { type: integer }
                  templateSetId: { type: string }
                  shotIds: { type: array, items: { type: string } }
                  diamondCost: { type: integer }
                  message: { type: string }
        "400": { description: "Missing readyTemplateSetId or a required product image", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
        "402": { description: "Insufficient diamond balance", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }
        "404": { description: "readyTemplateSetId not found", content: { application/json: { schema: { $ref: "#/components/schemas/Error" } } } }

components:
  responses:
    Unauthorized:
      description: Missing, malformed or revoked API key
      content:
        application/json:
          schema: { $ref: "#/components/schemas/Error" }
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: "fio_live_<keyId>.<secret>"
      description: Create a key at fashiolabs.com → Profile → API Keys.
  schemas:
    Error:
      type: object
      properties:
        success: { type: boolean, enum: [false] }
        error: { type: string }
    CreateGenerationRequest:
      type: object
      properties:
        toolId:
          type: string
          description: See GET /v1/models for each tool's inputs and price. Required unless templateSetId is given (it fills toolId in from the saved preset).
          enum: [virtual_model, outfit_photo, pro_studio, jewelry_on_model, clothing_ecom_pack, jewelry_ecom_pack, ai_videos, model_to_flat_lay, amateur_to_pro, pose_angle_switch, model_swap, photo_edit, photo_enhance, remove_background, photo_reframe]
          example: virtual_model
        templateSetId:
          type: string
          description: >-
            A saved preset from POST /v1/template-sets. Fills in
            fashion_model/venue/pose/shotType/stylePreset/ratio; the request
            only needs to supply the new garment's images. toolId must either
            be omitted or match the preset's own toolId.
        images:
          type: object
          description: >-
            Keys depend on toolId. Common ones: garment_photo, garment_photos[],
            fashion_model (catalog id or URL), venue (catalog id or URL),
            user_photo, jewelry_image(s). Values are URLs (from
            POST /v1/uploads, GET /v1/fashion-models, or your own hosting) —
            except fashion_model/venue, which also accept a catalog id.
          additionalProperties:
            oneOf:
              - type: string
              - type: array
                items: { type: string }
        pose: { type: string, description: "Pose catalog id — see GET /v1/poses." }
        shotType: { type: string, description: pro_studio only. }
        stylePreset: { type: string, description: pro_studio only. }
        customPrompt: { type: string, description: "Free-text instruction (photo_edit, model_swap, virtual_model note)." }
        motionPrompt: { type: string, description: "ai_videos only — describes the motion." }
        ratio: { type: string, example: "1:1", description: "1:1, 9:16, 16:9, 4:3, 3:4, 4:5 or auto." }
        duration: { type: integer, description: "ai_videos only, in seconds.", example: 5 }
        targetRatio: { type: string, description: "photo_reframe only — the output aspect ratio." }
        jewelryType: { type: string, enum: [ring, necklace, earring, bracelet], description: "jewelry_on_model only." }
        backgroundColor: { type: string, description: "jewelry_on_model only, optional solid studio background." }
    CreateTemplateSetRequest:
      type: object
      required: [label]
      properties:
        label: { type: string, example: "Studio white, model A, 3/4 pose" }
        sourceMediaId:
          type: string
          description: A completed generation's id to capture styling from. Either this or toolId+images must be given.
        toolId:
          type: string
          description: Required if sourceMediaId is omitted.
          enum: [virtual_model, outfit_photo, pro_studio, jewelry_on_model, clothing_ecom_pack, jewelry_ecom_pack]
        images:
          type: object
          description: Required if sourceMediaId is omitted.
          properties:
            fashion_model: { type: string }
            venue: { type: string }
        pose: { type: string }
        shotType: { type: string }
        stylePreset: { type: string }
        ratio: { type: string }
    TemplateSet:
      type: object
      properties:
        id: { type: string }
        label: { type: string }
        toolId: { type: string }
        images:
          type: object
          properties:
            fashion_model: { type: string }
            venue: { type: string }
        pose: { type: ["string", "null"] }
        shotType: { type: ["string", "null"] }
        stylePreset: { type: ["string", "null"] }
        ratio: { type: ["string", "null"] }
        sourceMediaId: { type: ["string", "null"] }
        coverUrl: { type: ["string", "null"], format: uri }
    ReadyTemplateSet:
      type: object
      properties:
        id: { type: string }
        displayNames: { type: object, additionalProperties: { type: string } }
        description: { type: object, additionalProperties: { type: string } }
        coverUrl: { type: string, format: uri }
        tags: { type: object }
        shotCount: { type: integer }
        isFeatured: { type: boolean }
        likes: { type: integer }
        uses: { type: integer }
        shots:
          type: array
          items:
            type: object
            properties:
              id: { type: string }
              shotType: { type: string }
              framing: { type: string }
              previewUrl: { type: string, format: uri }
              thumbUrl: { type: string, format: uri }
              isDefault: { type: boolean }
    CreateCatalogJobRequest:
      type: object
      required: [readyTemplateSetId, images]
      properties:
        readyTemplateSetId: { type: string, description: "id from GET /v1/ready-template-sets." }
        shotIds:
          type: array
          items: { type: string }
          description: Subset of the set's shots. Omit to generate every shot in the set.
        images:
          type: object
          properties:
            garment_photo: { type: string, description: "Your product photo." }
            garment_photos: { type: array, items: { type: string }, description: "Multiple angles of your product." }
        ratio: { type: string, example: "4:5" }
        modelId: { type: string, description: "Optional image-to-image model override." }
