{
  "openapi": "3.1.0",
  "info": {
    "title": "O!PLANET Studio API",
    "version": "1.0.0",
    "description": "내 프로그램에서 라이선스·남은 크레딧, 프린터 상태, 출력 기록, 보관함을 조회하고 AI 이미지를 만드는 HTTP API입니다. 카드 출력은 이 API에 없습니다(프린터가 연결된 컴퓨터의 CLI로 합니다. https://studio.oplanet.net/docs/dev)."
  },
  "servers": [
    {
      "url": "https://studio.oplanet.net"
    }
  ],
  "tags": [
    {
      "name": "license",
      "description": "라이선스: 고객 이름·라이선스 상태·이번 달 AI 사용·AI 막힘"
    },
    {
      "name": "printer",
      "description": "프린터: 이 라이선스의 프린터와 서버가 마지막으로 받은 상태"
    },
    {
      "name": "print",
      "description": "출력 기록(조회만). 카드 출력은 이 API에 없습니다"
    },
    {
      "name": "billing",
      "description": "남은 크레딧(달러, 부가세 포함, 선불 크레딧)"
    },
    {
      "name": "generate",
      "description": "AI 이미지: 모델 목록·금액 예상·만들기·결과 받기"
    },
    {
      "name": "storage",
      "description": "보관함: 디자인·이미지·저장한 프롬프트(읽기만)"
    }
  ],
  "components": {
    "securitySchemes": {
      "licenseKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "라이선스 키(OPL-로 시작). 고객마다 1개이고, 웹 내 계정에서 늘 전체를 보고 복사할 수 있습니다. 설치 프로그램에 넣는 키와 같습니다."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "오류",
        "additionalProperties": false,
        "required": [
          "ok",
          "code",
          "message",
          "action"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": false,
            "description": "실패하면 늘 false"
          },
          "code": {
            "type": "string",
            "description": "오류 code. 판단은 이 값으로",
            "examples": [
              "rate_limited"
            ]
          },
          "message": {
            "type": "string",
            "description": "사람에게 보여 줄 한 줄. 문장은 바뀔 수 있음"
          },
          "action": {
            "type": "string",
            "description": "사람이 할 일. 문장은 바뀔 수 있음"
          },
          "details": {
            "type": "array",
            "description": "요청 형식 오류일 때만 있음",
            "items": {
              "type": "object",
              "description": "틀린 칸",
              "additionalProperties": false,
              "required": [
                "path",
                "rule"
              ],
              "properties": {
                "path": {
                  "type": "string",
                  "description": "틀린 칸"
                },
                "rule": {
                  "type": "string",
                  "description": "어긴 규칙"
                }
              }
            }
          }
        }
      },
      "Printer": {
        "type": "object",
        "description": "프린터(웹 /v1/printer 와 같은 모양). 상태는 state 값과 reasons, 센서 값은 detail",
        "additionalProperties": false,
        "required": [
          "serial",
          "model",
          "registered",
          "activated",
          "activatedAt",
          "state",
          "reasons",
          "online",
          "lastSeenAt",
          "detail",
          "lastPrint",
          "currentPrint",
          "recent30Days",
          "lastRibbon"
        ],
        "properties": {
          "serial": {
            "type": "string",
            "description": "프린터 시리얼",
            "examples": [
              "10001400142"
            ]
          },
          "model": {
            "type": "string",
            "description": "모델 이름",
            "examples": [
              "KC Prime"
            ]
          },
          "registered": {
            "type": "boolean",
            "description": "이 라이선스의 프린터 목록에 있음(목록에 나오면 늘 true)"
          },
          "activated": {
            "type": "boolean",
            "description": "프로그램이나 웹에서 한 번이라도 썼음"
          },
          "activatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "처음 쓴 시각"
          },
          "state": {
            "type": "string",
            "description": "상태 값(ready·printing·blocked·cleaning·offline·unknown 중 한 가지)",
            "enum": [
              "ready",
              "printing",
              "blocked",
              "cleaning",
              "offline",
              "unknown"
            ]
          },
          "reasons": {
            "type": "array",
            "description": "막힌 이유 code(cover_open, ribbon_out 등). 없으면 빈 배열",
            "items": {
              "type": "string",
              "description": "이유 code"
            }
          },
          "online": {
            "type": "boolean",
            "description": "최근 2분 안에 소식이 있었음(또는 출력 화면이 잡고 있음)"
          },
          "lastSeenAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "마지막 소식 시각"
          },
          "detail": {
            "type": "object",
            "description": "센서 값(마지막 소식 기준, 모르면 null)",
            "additionalProperties": false,
            "required": [
              "cover",
              "cardInFeeder",
              "ribbon",
              "cardsUntilCleaning",
              "cleaningCount",
              "source",
              "totalCards"
            ],
            "properties": {
              "cover": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "덮개(open·closed)",
                "examples": [
                  "closed"
                ]
              },
              "cardInFeeder": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "공급기에 카드가 있음"
              },
              "ribbon": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "리본(센서 값). 리본이 없거나 모르면 null",
                "additionalProperties": false,
                "required": [
                  "label",
                  "remaining",
                  "capacity",
                  "percent",
                  "state",
                  "uid",
                  "updatedAt"
                ],
                "properties": {
                  "label": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "리본 종류",
                    "examples": [
                      "Color YMCKO"
                    ]
                  },
                  "remaining": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "남은 면. 새 리본(칩 값 20000 = 안 쓴 새 리본 표시)이면 capacity 와 같고, 칩 값이 용량보다 커 알 수 없으면 null",
                    "examples": [
                      85
                    ]
                  },
                  "capacity": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "한 롤의 면 수",
                    "examples": [
                      300
                    ]
                  },
                  "percent": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "남은 비율(%). 새 리본이면 100, 알 수 없으면 null",
                    "examples": [
                      28
                    ]
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "new",
                      "in_use",
                      "unknown"
                    ],
                    "description": "리본 상태: new 새 리본(안 쓴 것), in_use 쓰는 중, unknown 남은 양을 알 수 없음(값이 없거나 용량보다 큼)",
                    "examples": [
                      "in_use"
                    ]
                  },
                  "uid": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "리본 고유 번호"
                  },
                  "updatedAt": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "리본 값을 마지막으로 받은 시각"
                  }
                }
              },
              "totalCards": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "프린터가 센 전체 카드 장수",
                "examples": [
                  629
                ]
              },
              "cardsUntilCleaning": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "다음 청소까지 남은 카드 수",
                "examples": [
                  371
                ]
              },
              "cleaningCount": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "프린터가 센 청소 횟수"
              },
              "source": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "값을 보낸 곳(cli·web)"
              }
            }
          },
          "lastPrint": {
            "type": [
              "object",
              "null"
            ],
            "description": "마지막 출력(없으면 null)",
            "additionalProperties": false,
            "required": [
              "printId",
              "state",
              "result",
              "createdAt",
              "finishedAt"
            ],
            "properties": {
              "printId": {
                "type": "string",
                "description": "출력 번호"
              },
              "state": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "출력 상태"
              },
              "result": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "최종 결과(completed·failed·unknown), 진행 중이면 null"
              },
              "createdAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "만든 시각"
              },
              "finishedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "끝난 시각"
              }
            }
          },
          "currentPrint": {
            "type": [
              "object",
              "null"
            ],
            "description": "지금 진행 중인 출력(이 라이선스의 것). 없으면 null. 값이 없는 칸은 빠짐",
            "additionalProperties": false,
            "required": [
              "printId",
              "state"
            ],
            "properties": {
              "printId": {
                "type": "string",
                "description": "출력 번호",
                "examples": [
                  "J20261106-000001"
                ]
              },
              "state": {
                "type": "string",
                "description": "출력 상태(ready·sending·printing·blocked·recovering)"
              },
              "stage": {
                "type": "string",
                "description": "진행 단계"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "만든 시각"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "description": "시작 시각"
              },
              "lastEventAt": {
                "type": "string",
                "format": "date-time",
                "description": "마지막 진행 소식 시각"
              },
              "bytesSent": {
                "type": "integer",
                "description": "보낸 바이트"
              },
              "totalBytes": {
                "type": "integer",
                "description": "전체 바이트"
              },
              "reasons": {
                "type": "array",
                "description": "막힌 이유 code(막혔을 때만)",
                "items": {
                  "type": "string",
                  "description": "이유 code"
                }
              }
            }
          },
          "recent30Days": {
            "type": "object",
            "description": "최근 30일",
            "additionalProperties": false,
            "required": [
              "prints",
              "completed",
              "cards"
            ],
            "properties": {
              "prints": {
                "type": "integer",
                "description": "출력 수"
              },
              "completed": {
                "type": "integer",
                "description": "끝까지 나온 수"
              },
              "cards": {
                "type": "integer",
                "description": "쓴 카드 수"
              }
            }
          },
          "lastRibbon": {
            "type": [
              "object",
              "null"
            ],
            "description": "출력 결과로 받은 마지막 리본 값(없으면 null)",
            "additionalProperties": false,
            "required": [
              "value",
              "uid",
              "at",
              "printId"
            ],
            "properties": {
              "value": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "남은 면"
              },
              "uid": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "리본 고유 번호"
              },
              "at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "받은 시각"
              },
              "printId": {
                "type": "string",
                "description": "그 출력 번호"
              }
            }
          }
        }
      },
      "GenerateModel": {
        "type": "object",
        "description": "고를 수 있는 AI 모델(추천 순서). 지금 쓸 수 없는 모델은 state 가 unavailable",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "family",
          "state",
          "reason",
          "order",
          "isDefault",
          "capabilities",
          "estimate",
          "releasedAt",
          "avgDurationMs"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "모델 id. 생성 요청의 model에 넣는 값",
            "examples": [
              "google-gemini-3.1-flash-image"
            ]
          },
          "name": {
            "type": "string",
            "description": "모델 이름",
            "examples": [
              "나노 바나나 2"
            ]
          },
          "family": {
            "type": "string",
            "description": "계열(만든 회사)",
            "examples": [
              "Google"
            ]
          },
          "state": {
            "type": "string",
            "description": "ready: 고를 수 있음, unavailable: 지금 쓸 수 없음",
            "enum": [
              "ready",
              "unavailable"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "쓸 수 없는 까닭(gone 등). ready 면 null"
          },
          "order": {
            "type": "integer",
            "description": "추천 순서(1 이 맨 위)",
            "examples": [
              1
            ]
          },
          "isDefault": {
            "type": "boolean",
            "description": "기본 모델(추천 1순위 가운데 사용 가능한 것)"
          },
          "capabilities": {
            "type": "object",
            "description": "모델이 받는 값(투명 배경·참고 이미지·비율·해상도·옵션)",
            "additionalProperties": false,
            "required": [
              "transparent",
              "maxRefs",
              "refMaxBytes",
              "refTotalMaxBytes",
              "cardAspect",
              "aspects",
              "resolutions",
              "defaultResolution",
              "options"
            ],
            "properties": {
              "transparent": {
                "type": "boolean",
                "description": "투명 배경을 만들 수 있는지"
              },
              "maxRefs": {
                "type": "integer",
                "description": "참고 이미지 최대 장수(0 이면 받지 않음)",
                "examples": [
                  4
                ]
              },
              "refMaxBytes": {
                "type": "integer",
                "description": "참고 사진 한 장 최대 바이트(PNG·JPEG·WebP)",
                "examples": [
                  10485760
                ]
              },
              "refTotalMaxBytes": {
                "type": "integer",
                "description": "한 요청의 참고 사진 합계 최대 바이트",
                "examples": [
                  20971520
                ]
              },
              "cardAspect": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "카드 비율(85.6×54)에 가장 가까운 비율. null 이면 카드 비율 불가",
                "additionalProperties": false,
                "required": [
                  "landscape",
                  "portrait"
                ],
                "properties": {
                  "landscape": {
                    "type": "string",
                    "examples": [
                      "3:2"
                    ],
                    "description": "가로 카드 비율"
                  },
                  "portrait": {
                    "type": "string",
                    "examples": [
                      "2:3"
                    ],
                    "description": "세로 카드 비율"
                  }
                }
              },
              "aspects": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "한 값"
                },
                "description": "모델이 받는 비율",
                "examples": [
                  [
                    "1:1",
                    "3:2",
                    "2:3",
                    "16:9"
                  ]
                ]
              },
              "resolutions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "한 값"
                },
                "description": "모델이 받는 해상도(없으면 빈 배열)",
                "examples": [
                  [
                    "1K",
                    "2K"
                  ]
                ]
              },
              "defaultResolution": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "카드를 덮는 가장 작은 해상도(가로 카드 기준)",
                "examples": [
                  "1K"
                ]
              },
              "options": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "한 값"
                },
                "description": "모델 전용 옵션 이름(생성 요청 options{} 로만)",
                "examples": [
                  [
                    "seed"
                  ]
                ]
              }
            }
          },
          "estimate": {
            "type": [
              "object",
              "null"
            ],
            "description": "기본 요청(카드 가로·기본 해상도·참고 이미지 없음) 한 장 예상 금액(내 수수료·부가세 포함). 실제 청구는 실제 사용 금액으로",
            "additionalProperties": false,
            "required": [
              "minUsd",
              "maxUsd",
              "exact",
              "basis"
            ],
            "properties": {
              "minUsd": {
                "type": "string",
                "pattern": "^-?\\d+\\.\\d{3}$",
                "description": "예상 최소",
                "x-unit": "USD",
                "examples": [
                  "0.156"
                ]
              },
              "maxUsd": {
                "type": "string",
                "pattern": "^-?\\d+\\.\\d{3}$",
                "description": "예상 최대",
                "x-unit": "USD",
                "examples": [
                  "0.156"
                ]
              },
              "exact": {
                "type": "boolean",
                "description": "정가(장당) 모델이라 예상이 정확한지"
              },
              "basis": {
                "type": "string",
                "description": "예상 근거",
                "x-values": {
                  "per_image": "장당 정가",
                  "per_request": "요청당 정가",
                  "megapixel": "픽셀 수 × 단가",
                  "tokens_measured": "토큰 단가 × 실제 기록 범위",
                  "tokens_assumed": "토큰 단가 × 일반 범위",
                  "unknown": "모름"
                }
              }
            }
          },
          "avgDurationMs": {
            "type": [
              "integer",
              "null"
            ],
            "description": "평균 걸린 시간(밀리초)"
          },
          "releasedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "모델이 처음 나온 때(새로 나온 순으로 정렬할 때)",
            "examples": [
              "2026-11-06T03:00:00.000Z"
            ]
          }
        }
      },
      "Charge": {
        "type": [
          "object",
          "null"
        ],
        "description": "청구(달러, 부가세 포함). 실제 사용한 만큼 크레딧 잔액에서 빠지고 이번 달 사용에 쌓입니다(선불 크레딧). 요금 계산은 사용 방법의 \"크레딧과 요금\"에 있습니다",
        "additionalProperties": false,
        "required": [
          "amountUsd",
          "pending",
          "reservedUsd",
          "demo"
        ],
        "properties": {
          "amountUsd": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^-?\\d+\\.\\d{3}$",
            "description": "청구 금액(부가세 포함). 끝나기 전·확인 중이면 null",
            "x-unit": "USD",
            "examples": [
              "0.052"
            ]
          },
          "pending": {
            "type": "boolean",
            "description": "실제 사용 금액을 확인 중(예약은 잡아 둠, 확인되면 청구)"
          },
          "reservedUsd": {
            "type": "string",
            "pattern": "^-?\\d+\\.\\d{3}$",
            "description": "진행 중·확인 중 예약 금액(끝나면 0.000)",
            "x-unit": "USD",
            "examples": [
              "1.000"
            ]
          },
          "demo": {
            "type": "boolean",
            "description": "데모 생성(청구하지 않음, 크레딧에서 빠지지 않음)"
          }
        }
      },
      "PrintItem": {
        "type": "object",
        "description": "출력 기록 목록의 한 줄: state·result 규칙은 출력 기록 상세와 같음",
        "additionalProperties": false,
        "required": [
          "printId",
          "printerSerial",
          "source",
          "state",
          "stage",
          "result",
          "createdAt",
          "startedAt",
          "finishedAt",
          "duplex",
          "frameName",
          "stopReasons",
          "blockedCount",
          "designName"
        ],
        "properties": {
          "printId": {
            "type": "string",
            "description": "출력 번호",
            "examples": [
              "J20261105-000008"
            ]
          },
          "printerSerial": {
            "type": "string",
            "description": "프린터 시리얼",
            "examples": [
              "10001400142"
            ]
          },
          "source": {
            "type": "string",
            "description": "어디서 출력했는지",
            "x-values": {
              "cli": "명령어",
              "web": "웹 출력 화면"
            },
            "examples": [
              "cli"
            ]
          },
          "state": {
            "type": "string",
            "description": "지금 어디인지: waiting(시작 전) · printing(보내는·찍는 중) · recovering(막혔다가 이어서 진행 중) · needs_action(막힘, 사람이 봐야 함) · finished(끝남, 결과는 result)",
            "enum": [
              "waiting",
              "printing",
              "recovering",
              "needs_action",
              "finished"
            ]
          },
          "stage": {
            "type": [
              "string",
              "null"
            ],
            "description": "마지막 진행 단계"
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "description": "결과(끝났을 때만, 아니면 null)",
            "additionalProperties": false,
            "required": [
              "result",
              "reason",
              "reasonText",
              "cardsUsed",
              "discardedCards",
              "durationMs"
            ],
            "properties": {
              "result": {
                "type": "string",
                "description": "최종 결과",
                "enum": [
                  "completed",
                  "failed",
                  "unknown"
                ]
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "실패·모름의 이유 code"
              },
              "reasonText": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "이유 문장(화면에 그대로). 끝까지 나왔으면 null"
              },
              "cardsUsed": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "쓴 카드 수"
              },
              "discardedCards": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "버린 카드 수(끝까지 나왔으면 쓴 카드 − 카드 수, 실패면 쓴 카드 전부, 모르면 null)"
              },
              "durationMs": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "걸린 시간(ms)"
              }
            }
          },
          "createdAt": {
            "type": "string",
            "description": "만든 시각",
            "examples": [
              "2026-11-06T03:00:00.000Z"
            ],
            "format": "date-time"
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "인쇄를 시작한 시각",
            "examples": [
              "2026-11-06T03:00:00.000Z"
            ],
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "끝난 시각",
            "examples": [
              "2026-11-06T03:00:00.000Z"
            ],
            "format": "date-time"
          },
          "duplex": {
            "type": "boolean",
            "description": "양면인지"
          },
          "frameName": {
            "type": [
              "string",
              "null"
            ],
            "description": "옛 칸: 프레임 칸을 없앤 서버 0.8.1 전의 출력 기록에만 프레임 이름이 있습니다. 새 출력은 늘 null",
            "deprecated": true
          },
          "stopReasons": {
            "type": "array",
            "description": "인쇄 중 멈춘 이유(처음 나온 순서)",
            "items": {
              "type": "string",
              "description": "이유 code"
            }
          },
          "blockedCount": {
            "type": "integer",
            "description": "막힌 횟수",
            "x-unit": "번",
            "examples": [
              0
            ]
          },
          "designName": {
            "type": [
              "string",
              "null"
            ],
            "description": "디자인으로 출력했으면 그 이름(없으면 null)"
          }
        }
      },
      "Print": {
        "type": "object",
        "description": "출력 기록 상세(웹 출력 상세와 같은 칸): state 값, 끝났을 때만 result, 멈춘 이유·이벤트",
        "additionalProperties": false,
        "required": [
          "ok",
          "printId",
          "printerSerial",
          "source",
          "state",
          "stage",
          "progress",
          "orientation",
          "duplex",
          "frame",
          "createdAt",
          "expiresAt",
          "startedAt",
          "finishedAt",
          "incident",
          "result",
          "ribbon",
          "stopReasons",
          "blockedCount",
          "events",
          "design"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "description": "성공하면 늘 true",
            "const": true
          },
          "printId": {
            "type": "string",
            "description": "출력 번호",
            "examples": [
              "J20261105-000008"
            ]
          },
          "printerSerial": {
            "type": "string",
            "description": "프린터 시리얼"
          },
          "source": {
            "type": "string",
            "description": "보낸 곳(cli·web)"
          },
          "state": {
            "type": "string",
            "description": "지금 어디인지: waiting(시작 전) · printing(보내는·찍는 중) · recovering(막혔다가 이어서 진행 중) · needs_action(막힘, 사람이 봐야 함) · finished(끝남, 결과는 result)",
            "enum": [
              "waiting",
              "printing",
              "recovering",
              "needs_action",
              "finished"
            ]
          },
          "stage": {
            "type": [
              "string",
              "null"
            ],
            "description": "마지막 진행 단계"
          },
          "progress": {
            "type": [
              "object",
              "null"
            ],
            "description": "보낸 양(보내기 시작 전이면 null)",
            "additionalProperties": false,
            "required": [
              "bytesSent",
              "totalBytes",
              "percent"
            ],
            "properties": {
              "bytesSent": {
                "type": "integer",
                "description": "보낸 바이트"
              },
              "totalBytes": {
                "type": "integer",
                "description": "전체 바이트"
              },
              "percent": {
                "type": "integer",
                "description": "보낸 비율(%)"
              }
            }
          },
          "orientation": {
            "type": [
              "string",
              "null"
            ],
            "description": "카드 방향(landscape·portrait)"
          },
          "duplex": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "양면"
          },
          "frame": {
            "type": [
              "object",
              "null"
            ],
            "description": "옛 칸: 프레임 칸을 없앤 서버 0.8.1 전의 출력 기록에만 프레임이 있습니다. 새 출력은 늘 null",
            "deprecated": true,
            "additionalProperties": false,
            "required": [
              "name",
              "sha256"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "프레임 이름"
              },
              "sha256": {
                "type": "string",
                "description": "프레임 파일 sha256"
              }
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "만든 시각"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "인쇄 데이터를 받을 수 있는 기한"
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "시작 시각"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "끝난 시각"
          },
          "incident": {
            "type": "boolean",
            "description": "살펴볼 일이 있었던 출력(막힘·실패 등)"
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "description": "결과(끝났을 때만, 아니면 null)",
            "additionalProperties": false,
            "required": [
              "result",
              "reason",
              "reasonText",
              "cardsUsed",
              "discardedCards",
              "durationMs"
            ],
            "properties": {
              "result": {
                "type": "string",
                "description": "최종 결과",
                "enum": [
                  "completed",
                  "failed",
                  "unknown"
                ]
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "실패·모름의 이유 code"
              },
              "reasonText": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "이유 문장(화면에 그대로). 끝까지 나왔으면 null"
              },
              "cardsUsed": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "쓴 카드 수"
              },
              "discardedCards": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "버린 카드 수(끝까지 나왔으면 쓴 카드 − 카드 수, 실패면 쓴 카드 전부, 모르면 null)"
              },
              "durationMs": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "걸린 시간(ms)"
              }
            }
          },
          "ribbon": {
            "type": "object",
            "description": "리본 사용",
            "additionalProperties": false,
            "required": [
              "before",
              "after",
              "uid",
              "used"
            ],
            "properties": {
              "before": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "출력 전 남은 면"
              },
              "after": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "출력 뒤 남은 면"
              },
              "uid": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "리본 고유 번호"
              },
              "used": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "쓴 면(계산 못 하면 null)"
              },
              "note": {
                "type": "string",
                "description": "used 가 null 인 까닭(ribbon_changed: 중간에 리본을 바꿈). 없으면 빠짐",
                "enum": [
                  "ribbon_changed"
                ]
              }
            }
          },
          "stopReasons": {
            "type": "array",
            "description": "멈췄던 이유 code(겹치지 않게)",
            "items": {
              "type": "string",
              "description": "이유 code"
            }
          },
          "blockedCount": {
            "type": "integer",
            "description": "막힌 횟수"
          },
          "events": {
            "type": "array",
            "description": "진행 이벤트(최근 200개)",
            "items": {
              "type": "object",
              "description": "단계별 기록 한 줄",
              "additionalProperties": false,
              "required": [
                "at",
                "type",
                "stage",
                "reasons"
              ],
              "properties": {
                "at": {
                  "type": "string",
                  "description": "일어난 시각",
                  "examples": [
                    "2026-11-06T03:00:00.000Z"
                  ],
                  "format": "date-time"
                },
                "type": {
                  "type": "string",
                  "description": "일어난 일",
                  "x-values": {
                    "prn_received": "데이터를 다 받음",
                    "sending": "데이터 보내기 시작",
                    "printing": "인쇄 진행",
                    "blocked": "막힘",
                    "recovering": "복구 중",
                    "resumed": "다시 진행",
                    "usb_disconnected": "USB 끊김",
                    "reset": "프린터 다시 시작"
                  },
                  "examples": [
                    "sending"
                  ]
                },
                "stage": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "단계"
                },
                "reasons": {
                  "type": "array",
                  "description": "이유 code",
                  "items": {
                    "type": "string",
                    "description": "이유 code"
                  }
                }
              }
            }
          },
          "design": {
            "type": [
              "object",
              "null"
            ],
            "description": "디자인으로 출력했으면 이름·번호(컴퓨터의 파일이면 번호 null). 아니면 null",
            "additionalProperties": false,
            "required": [
              "designId",
              "name"
            ],
            "properties": {
              "designId": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "디자인 번호"
              },
              "name": {
                "type": "string",
                "description": "디자인 이름"
              }
            }
          }
        }
      },
      "Billing": {
        "type": "object",
        "description": "남은 크레딧(달러, 선불 크레딧): 크레딧 잔액과 그 값을 읽은 시각. 금액은 부가세 포함",
        "additionalProperties": false,
        "required": [
          "ok",
          "balanceUsd",
          "at"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "description": "성공하면 늘 true",
            "const": true
          },
          "balanceUsd": {
            "type": "string",
            "pattern": "^-?[0-9]+\\.[0-9]{3}$",
            "description": "남은 크레딧(달러, 부가세 포함, 소수 셋째 자리 문자열). 충전하면 늘고, AI 이미지를 만들면 청구 금액이 빠짐",
            "x-unit": "USD",
            "examples": [
              "42.500"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "잔액을 읽은 시각(ISO 8601, UTC)",
            "examples": [
              "2026-11-18T09:30:00.000Z"
            ]
          }
        }
      },
      "Prompt": {
        "type": "object",
        "description": "저장한 프롬프트",
        "additionalProperties": false,
        "required": [
          "promptId",
          "name",
          "prompt",
          "model",
          "orientation",
          "transparent",
          "createdAt",
          "updatedAt",
          "lastUsedAt"
        ],
        "properties": {
          "promptId": {
            "type": "integer",
            "description": "프롬프트 번호"
          },
          "name": {
            "type": "string",
            "description": "이름"
          },
          "prompt": {
            "type": "string",
            "description": "프롬프트 글"
          },
          "model": {
            "type": [
              "string",
              "null"
            ],
            "description": "같이 저장한 모델(없으면 null)"
          },
          "orientation": {
            "type": "string",
            "description": "카드 방향(landscape·portrait)"
          },
          "transparent": {
            "type": "boolean",
            "description": "투명 배경"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "만든 시각"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "바꾼 시각"
          },
          "lastUsedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "마지막으로 쓴 시각"
          }
        }
      },
      "Generate": {
        "type": "object",
        "description": "AI 생성 요청의 진행 상태와 결과",
        "additionalProperties": false,
        "required": [
          "ok",
          "generateId",
          "state",
          "model",
          "modelName",
          "orientation",
          "transparent",
          "createdAt",
          "finishedAt",
          "reason",
          "reasonText",
          "result",
          "aspect",
          "resolution",
          "usedOptions",
          "charge",
          "image"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true,
            "description": "성공하면 늘 true"
          },
          "generateId": {
            "type": "string",
            "description": "생성 번호",
            "examples": [
              "G20261106-000001"
            ]
          },
          "state": {
            "type": "string",
            "description": "상태(running·succeeded·failed)",
            "x-values": {
              "running": "만드는 중",
              "succeeded": "완료",
              "failed": "실패"
            },
            "examples": [
              "running"
            ]
          },
          "model": {
            "type": "string",
            "description": "모델 id"
          },
          "modelName": {
            "type": [
              "string",
              "null"
            ],
            "description": "모델 이름"
          },
          "orientation": {
            "type": "string",
            "description": "방향(비율에서)",
            "x-values": {
              "landscape": "가로",
              "portrait": "세로"
            }
          },
          "transparent": {
            "type": "boolean",
            "description": "투명 배경"
          },
          "createdAt": {
            "type": "string",
            "description": "요청 시각",
            "examples": [
              "2026-11-06T03:00:00.000Z"
            ],
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "끝난 시각",
            "examples": [
              "2026-11-06T03:00:00.000Z"
            ],
            "format": "date-time"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "실패 이유 code",
            "x-values": {
              "content_refused": "내용 때문에 만들 수 없음",
              "generate_failed": "만들지 못함",
              "generate_timeout": "시간 안에 만들지 못함",
              "generate_unavailable": "지금 AI 이미지 생성을 쓸 수 없음(회사 쪽 사정, 고객 크레딧과 무관)",
              "generate_busy_provider": "지금 AI 이미지 생성 요청이 많음(잠시 뒤 다시)",
              "generate_provider_error": "AI 이미지 생성에 잠시 문제가 있음",
              "generate_input_rejected": "요청 내용(참고 이미지 등)을 처리할 수 없음",
              "generate_no_image": "AI가 이미지를 돌려주지 않음",
              "generate_store_failed": "만든 이미지를 저장하지 못함",
              "generate_interrupted": "생성이 중간에 멈춤"
            }
          },
          "reasonText": {
            "type": [
              "string",
              "null"
            ],
            "description": "실패 이유 문장(화면에 그대로). 이유 문장 뒤에 청구 문장이 붙는다: 청구가 없으면 \"이용료는 청구하지 않았습니다.\", 실패했지만 AI 제공사가 이용료를 매겼으면 \"AI 제공사가 이 요청에 이용료를 매겨 $0.014(부가세 포함)이 청구됩니다.\"(금액 = charge.amountUsd). 성공이면 null"
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "description": "결과. 완료 전이면 null",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "bytes",
              "sha256",
              "format",
              "expiresAt",
              "imageUrl"
            ],
            "properties": {
              "width": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "가로 픽셀"
              },
              "height": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "세로 픽셀"
              },
              "bytes": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "파일 바이트 수"
              },
              "sha256": {
                "type": "string",
                "description": "이미지의 SHA-256"
              },
              "expiresAt": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "이미지를 지우는 시각(만든 뒤 24시간)",
                "examples": [
                  "2026-11-06T03:00:00.000Z"
                ],
                "format": "date-time"
              },
              "imageUrl": {
                "type": "string",
                "description": "결과 이미지 주소",
                "examples": [
                  "/v1/api/generate/G20261106-000001/image"
                ]
              },
              "format": {
                "type": "string",
                "description": "이미지 형식",
                "examples": [
                  "png"
                ]
              }
            }
          },
          "aspect": {
            "type": "string",
            "description": "비율(card-landscape·card-portrait·\"3:2\" 같은 값)",
            "examples": [
              "card-landscape"
            ],
            "x-values": {
              "card-landscape": "카드 가로",
              "card-portrait": "카드 세로",
              "16:9": "모델이 주는 비율(예)"
            }
          },
          "resolution": {
            "type": [
              "string",
              "null"
            ],
            "description": "보낸 해상도(없으면 모델 기본)",
            "examples": [
              "1K"
            ]
          },
          "usedOptions": {
            "type": "object",
            "description": "보낸 모델 전용 옵션",
            "additionalProperties": true
          },
          "charge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Charge"
              },
              {
                "type": "null",
                "description": "예전 기록"
              }
            ],
            "description": "청구(달러, 부가세 포함). 실패한 생성은 보통 $0이고, 회사·외부 서비스 장애나 제공사가 매기지 않은 거절은 늘 $0. 그 밖에 AI 제공사가 이용료를 매긴 실패는 그 금액(reasonText 에 같은 금액). 달러로 바뀌기 전 예전 기록이면 null"
          },
          "image": {
            "type": [
              "object",
              "null"
            ],
            "description": "받은 그림(자르지 않음)",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "format"
            ],
            "properties": {
              "width": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "받은 그림 가로 픽셀"
              },
              "height": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "받은 그림 세로 픽셀"
              },
              "format": {
                "type": "string",
                "examples": [
                  "png"
                ],
                "description": "받은 그림 형식(png 등)"
              }
            }
          }
        }
      },
      "Design": {
        "type": "object",
        "description": "보관함 디자인(.opl)",
        "additionalProperties": false,
        "required": [
          "designId",
          "name",
          "orientation",
          "duplex",
          "layers",
          "imageLayers",
          "textLayers",
          "qrLayers",
          "hasOriginals",
          "bytes",
          "appVersion",
          "source",
          "fileUrl",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "designId": {
            "type": "string",
            "description": "디자인 번호",
            "examples": [
              "12"
            ]
          },
          "name": {
            "type": "string",
            "description": "디자인 이름. 출력할 때 이 이름으로 디자인을 고릅니다",
            "examples": [
              "명함A"
            ]
          },
          "orientation": {
            "type": "string",
            "description": "카드 방향",
            "x-values": {
              "landscape": "가로",
              "portrait": "세로"
            }
          },
          "duplex": {
            "type": "boolean",
            "description": "뒷면이 있으면 true"
          },
          "layers": {
            "type": "object",
            "description": "면마다 출력할 레이어 장수(보이는 레이어만, 텍스트·QR 레이어 포함)",
            "additionalProperties": false,
            "required": [
              "front",
              "back"
            ],
            "properties": {
              "front": {
                "type": "integer",
                "description": "앞면"
              },
              "back": {
                "type": "integer",
                "description": "뒷면"
              }
            }
          },
          "imageLayers": {
            "type": "array",
            "description": "그림을 바꿔 넣을 수 있는 레이어. 보이는 그림 레이어 모두(텍스트·QR 레이어와 숨긴 레이어는 뺌). 면(앞면 → 뒷면)·레이어 순서, 같은 이름이 여럿이면 모두. 그림 레이어가 없으면 빈 배열. 레이어 그림을 바꿔 찍는 것은 CLI만 하고, 넣는 그림은 정확히 width×height 픽셀이어야 합니다",
            "items": {
              "type": "object",
              "description": "바꿔 넣을 수 있는 그림 레이어",
              "additionalProperties": false,
              "required": [
                "face",
                "name",
                "width",
                "height"
              ],
              "properties": {
                "face": {
                  "type": "string",
                  "description": "면",
                  "x-values": {
                    "front": "앞면",
                    "back": "뒷면"
                  }
                },
                "name": {
                  "type": "string",
                  "description": "레이어 이름",
                  "examples": [
                    "사진"
                  ]
                },
                "width": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "레이어 픽셀 가로(바꿔 넣을 그림의 가로). design.json 레이어 칸 w(카드 픽셀 300dpi, 돌리기·뒤집기 전)를 반올림(0.5는 올림), 1보다 작으면 1",
                  "examples": [
                    300
                  ]
                },
                "height": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "레이어 픽셀 세로(바꿔 넣을 그림의 세로). design.json 레이어 칸 h를 같은 방법으로 반올림",
                  "examples": [
                    400
                  ]
                },
                "ratio": {
                  "type": "string",
                  "description": "비율 고정된 레이어에만 있는 칸(다른 레이어에는 칸이 없음). 웹 편집기에서 고정한 가로:세로 비율(양의 정수). 그림 크기 검사에는 쓰지 않음(크기는 width×height)",
                  "pattern": "^[1-9][0-9]{0,3}:[1-9][0-9]{0,3}$",
                  "examples": [
                    "3:4"
                  ]
                }
              }
            }
          },
          "textLayers": {
            "type": "array",
            "description": "텍스트 레이어. 보이는 텍스트 레이어 모두(숨긴 레이어는 뺌). 면(앞면 → 뒷면)·레이어 순서. 없으면 빈 배열. 글자를 바꿔 찍는 것은 CLI만 합니다",
            "items": {
              "type": "object",
              "description": "텍스트 레이어",
              "additionalProperties": false,
              "required": [
                "face",
                "name"
              ],
              "properties": {
                "face": {
                  "type": "string",
                  "description": "면",
                  "x-values": {
                    "front": "앞면",
                    "back": "뒷면"
                  }
                },
                "name": {
                  "type": "string",
                  "description": "레이어 이름",
                  "examples": [
                    "이름"
                  ]
                }
              }
            }
          },
          "qrLayers": {
            "type": "array",
            "description": "QR 레이어. 보이는 QR 레이어 모두(숨긴 레이어는 뺌). 면(앞면 → 뒷면)·레이어 순서. 없으면 빈 배열. QR 내용을 바꿔 찍는 것은 CLI만 합니다",
            "items": {
              "type": "object",
              "description": "QR 레이어",
              "additionalProperties": false,
              "required": [
                "face",
                "name"
              ],
              "properties": {
                "face": {
                  "type": "string",
                  "description": "면",
                  "x-values": {
                    "front": "앞면",
                    "back": "뒷면"
                  }
                },
                "name": {
                  "type": "string",
                  "description": "레이어 이름",
                  "examples": [
                    "QR"
                  ]
                }
              }
            }
          },
          "hasOriginals": {
            "type": "boolean",
            "description": "원본(originals/)이 들어 있으면 true"
          },
          "bytes": {
            "type": "integer",
            "description": ".opl 바이트 수"
          },
          "appVersion": {
            "type": [
              "string",
              "null"
            ],
            "description": "만든 프로그램 판"
          },
          "source": {
            "type": "string",
            "description": "어디서 저장했는지",
            "x-values": {
              "web": "웹",
              "cli": "CLI",
              "build": "이미지만으로 서버가 묶음"
            }
          },
          "fileUrl": {
            "type": "string",
            "description": ".opl 받는 주소(302 → 서명 주소. 따라갈 때 Authorization 을 보내지 말 것)"
          },
          "createdAt": {
            "type": "string",
            "description": "만든 시각(ISO 8601)"
          },
          "updatedAt": {
            "type": "string",
            "description": "바꾼 시각(ISO 8601)"
          }
        }
      },
      "Image": {
        "type": "object",
        "description": "보관함 이미지",
        "additionalProperties": false,
        "required": [
          "imageId",
          "name",
          "type",
          "width",
          "height",
          "bytes",
          "sha256",
          "hasAlpha",
          "source",
          "fileUrl",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "imageId": {
            "type": "string",
            "description": "이미지 번호",
            "examples": [
              "7"
            ]
          },
          "name": {
            "type": "string",
            "description": "이미지 이름. 출력할 때 이 이름으로 이미지를 고릅니다",
            "examples": [
              "하트"
            ]
          },
          "type": {
            "type": "string",
            "description": "형식",
            "x-values": {
              "image/png": "PNG",
              "image/jpeg": "JPG"
            }
          },
          "width": {
            "type": "integer",
            "description": "가로 픽셀"
          },
          "height": {
            "type": "integer",
            "description": "세로 픽셀"
          },
          "bytes": {
            "type": "integer",
            "description": "파일 바이트 수"
          },
          "sha256": {
            "type": "string",
            "description": "파일의 SHA-256"
          },
          "hasAlpha": {
            "type": "boolean",
            "description": "투명한 곳이 있으면 true"
          },
          "source": {
            "type": "string",
            "description": "어디서 왔는지",
            "x-values": {
              "upload": "직접 올림",
              "generate": "AI 결과",
              "frame": "옛 프레임에서 옮김"
            }
          },
          "fileUrl": {
            "type": "string",
            "description": "그림 받는 주소(302 → 서명 주소. 따라갈 때 Authorization 을 보내지 말 것)"
          },
          "createdAt": {
            "type": "string",
            "description": "만든 시각(ISO 8601)"
          },
          "updatedAt": {
            "type": "string",
            "description": "바꾼 시각(ISO 8601)"
          }
        }
      }
    },
    "headers": {
      "X-RateLimit-Limit-Day": {
        "description": "이 고객의 하루 호출 한도",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Remaining-Day": {
        "description": "오늘 남은 호출",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Reset-Day": {
        "description": "다음 초기화 시각(ISO 8601). 매일 오전 9시(한국 시간)",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "Retry-After": {
        "description": "다시 보낼 때까지 기다릴 초(정수). 429 면 늘 있다: 1분 호출 한도·하루 한도는 풀릴 때까지, AI 이미지 1분 한도(rate_limited)는 1분 안 가장 오래된 요청이 빠질 때까지, 동시 생성(generate_busy)은 10초",
        "schema": {
          "type": "integer"
        }
      }
    }
  },
  "x-rate-limit": {
    "perKeyPerMinute": 60,
    "perCustomerPerDay": 2000,
    "totalPerDay": 20000,
    "dayResetsAt": "00:00 UTC (한국 시간 오전 9시)"
  },
  "x-error-codes": {
    "license_key_invalid": {
      "status": 401,
      "meaning": "라이선스 키가 없거나 올바르지 않습니다(재발급 전 키 포함)"
    },
    "invalid_request": {
      "status": 400,
      "meaning": "요청 형식이 틀렸습니다"
    },
    "idempotency_key_reused": {
      "status": 409,
      "meaning": "같은 키로 내용이 다른 요청을 보냈습니다"
    },
    "rate_limited": {
      "status": 429,
      "meaning": "1분 한도를 넘었습니다(API 호출은 고객마다 1분 60번, AI 이미지 만들기는 웹·프로그램 합쳐 고객마다 1분 10건). Retry-After 머리의 초만큼 기다린 뒤 다시 보냅니다"
    },
    "not_found": {
      "status": 404,
      "meaning": "없는 주소입니다"
    },
    "printer_not_found": {
      "status": 404,
      "meaning": "이 계정의 프린터가 아닙니다"
    },
    "print_not_found": {
      "status": 404,
      "meaning": "출력 기록을 찾을 수 없습니다"
    },
    "storage_not_found": {
      "status": 404,
      "meaning": "디자인·이미지를 찾을 수 없습니다"
    },
    "generate_not_found": {
      "status": 404,
      "meaning": "생성 기록을 찾을 수 없습니다"
    },
    "generate_expired": {
      "status": 410,
      "meaning": "24시간이 지나 결과 이미지를 지웠습니다"
    },
    "generate_model_unavailable": {
      "status": 400,
      "meaning": "고를 수 없는 모델입니다(사라짐·제공 안 함). 모델 목록에서 state 가 ready 인 모델을 골라 주세요"
    },
    "generate_image_invalid": {
      "status": 400,
      "meaning": "참고 이미지를 읽을 수 없습니다"
    },
    "generate_prompt_invalid": {
      "status": 400,
      "meaning": "프롬프트가 비었거나 너무 깁니다"
    },
    "license_inactive": {
      "status": 403,
      "meaning": "라이선스가 정지되었습니다(조회는 되고 AI 이미지 만들기만 막힘)"
    },
    "generate_busy": {
      "status": 429,
      "meaning": "동시에 만드는 수가 많습니다(웹·프로그램 합쳐 고객마다 2건까지). Retry-After 머리(10초) 뒤나 진행 중인 생성이 끝난 뒤 다시 보냅니다"
    },
    "storage_not_configured": {
      "status": 503,
      "meaning": "저장소가 준비되지 않았습니다"
    },
    "file_too_large": {
      "status": 413,
      "meaning": "파일이 너무 큽니다"
    },
    "payload_too_large": {
      "status": 413,
      "meaning": "요청 본문이 너무 큽니다"
    },
    "unsupported_media_type": {
      "status": 415,
      "meaning": "지원하지 않는 Content-Type입니다"
    },
    "internal_error": {
      "status": 500,
      "meaning": "서버 오류입니다"
    },
    "api_rate_daily_exceeded": {
      "status": 429,
      "meaning": "오늘 쓸 수 있는 API 호출 수(고객마다, 매일 오전 9시 한국 시간에 초기화)에 닿았습니다"
    },
    "api_capacity_exceeded": {
      "status": 429,
      "meaning": "API 전체 호출이 오늘 한도에 닿았습니다"
    },
    "billing_not_ready": {
      "status": 403,
      "meaning": "AI 이미지를 만들 수 없습니다. 이 계정의 수수료가 아직 정해지지 않았거나, 쓸 수 있는 크레딧이 이번 생성의 최소 금액보다 적습니다(웹은 크레딧 부족을 \"크레딧이 부족합니다. 입금 후 문의해 주세요.\"로 따로 보임)"
    },
    "generate_option_not_supported": {
      "status": 400,
      "meaning": "이 모델이 받지 않는 비율·해상도·투명·참고 이미지 장수·옵션입니다(받는 값은 모델 목록의 capabilities). quality 는 보낼 수 없습니다"
    },
    "service_paused": {
      "status": 503,
      "meaning": "잠시 AI 생성을 쉬고 있습니다"
    },
    "generate_unavailable": {
      "status": 503,
      "meaning": "지금 AI 이미지 생성을 쓸 수 없습니다(회사 쪽 사정이며 고객 크레딧과 무관). 생성은 만들어지지 않고 청구도 없습니다. 잠시 뒤 다시 보냅니다. 지금은 서버가 이 응답을 돌려주지 않고, 같은 사정은 실패한 생성의 reason 으로 옵니다"
    }
  },
  "paths": {
    "/v1/api/license": {
      "get": {
        "operationId": "getLicense",
        "summary": "라이선스 조회",
        "description": "고객 이름, 라이선스 상태(state), 이번 달 AI 사용·AI 막힘을 봅니다. 라이선스에 이용 기간은 없습니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "내 라이선스",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "내 라이선스",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "customer",
                    "license",
                    "billing"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "customer": {
                      "type": "object",
                      "description": "고객",
                      "additionalProperties": false,
                      "required": [
                        "name"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "고객 이름",
                          "examples": [
                            "시험고객"
                          ]
                        }
                      }
                    },
                    "license": {
                      "type": "object",
                      "description": "라이선스",
                      "additionalProperties": false,
                      "required": [
                        "state"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "description": "상태(active·suspended)",
                          "enum": [
                            "active",
                            "suspended"
                          ]
                        }
                      }
                    },
                    "billing": {
                      "type": "object",
                      "description": "이번 달 AI 사용·AI 막힘(달러, 선불 크레딧, 부가세 포함). 남은 크레딧은 GET /v1/api/billing",
                      "additionalProperties": false,
                      "required": [
                        "unpaidUsd",
                        "monthUsedUsd",
                        "ready",
                        "aiBlock"
                      ],
                      "properties": {
                        "unpaidUsd": {
                          "type": "string",
                          "pattern": "^-?\\d+\\.\\d{3}$",
                          "description": "미수(실제 청구가 크레딧 잔액보다 컸던 몫, 부가세 포함). 보통 0이고, 다음 충전에서 먼저 뺌",
                          "x-unit": "USD",
                          "examples": [
                            "0.000"
                          ]
                        },
                        "monthUsedUsd": {
                          "type": "string",
                          "pattern": "^-?\\d+\\.\\d{3}$",
                          "description": "이번 달 사용(부가세 포함). 합계라 늘 센트 단위(끝자리 0, 예 \"0.680\"). 월 이용 내역서 합계와 같은 반올림",
                          "x-unit": "USD",
                          "examples": [
                            "12.300"
                          ]
                        },
                        "ready": {
                          "type": "boolean",
                          "description": "false 면 AI 사용 준비 중(billing_not_ready)"
                        },
                        "aiBlock": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "billing_not_ready",
                            null
                          ],
                          "description": "AI 이미지 생성이 막힌 이유. null 이면 막히지 않음. 지금 생성하면 받을 code 와 같다. 선불 크레딧: 막히면 늘 billing_not_ready(AI 사용 준비 중: 수수료 설정 전이거나 크레딧이 이번 생성의 최소 금액보다 적음)"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "customer": {
                    "name": "시험고객"
                  },
                  "license": {
                    "state": "active"
                  },
                  "billing": {
                    "unpaidUsd": "0.000",
                    "monthUsedUsd": "12.300",
                    "ready": true,
                    "aiBlock": null
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 1,
        "tags": [
          "license"
        ]
      }
    },
    "/v1/api/printer": {
      "get": {
        "operationId": "listPrinters",
        "summary": "프린터 목록 조회",
        "description": "이 라이선스에 등록한 프린터 목록과 프린터마다의 상태를 돌려줍니다. 상태는 state 값과 reasons, 센서 값은 detail 에 있습니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "프린터 목록",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "프린터 목록",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "description": "프린터",
                      "items": {
                        "$ref": "#/components/schemas/Printer"
                      }
                    },
                    "nextCursor": {
                      "type": "null",
                      "description": "늘 null(한 쪽에 다 나옴)"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "items": [
                    {
                      "serial": "10001400142",
                      "model": "KC Prime",
                      "registered": true,
                      "activated": true,
                      "activatedAt": "2026-11-01T02:00:00.000Z",
                      "state": "ready",
                      "reasons": [],
                      "online": true,
                      "lastSeenAt": "2026-11-06T03:00:00.000Z",
                      "detail": {
                        "cover": "closed",
                        "cardInFeeder": true,
                        "ribbon": {
                          "label": "Color YMCKO",
                          "remaining": 85,
                          "capacity": 300,
                          "percent": 28,
                          "state": "in_use",
                          "uid": "RBN-0001",
                          "updatedAt": "2026-11-06T03:00:00.000Z"
                        },
                        "totalCards": 629,
                        "cardsUntilCleaning": 371,
                        "cleaningCount": 2,
                        "source": "cli"
                      },
                      "lastPrint": {
                        "printId": "J20261105-000008",
                        "state": "completed",
                        "result": "completed",
                        "createdAt": "2026-11-05T14:53:35.000Z",
                        "finishedAt": "2026-11-05T14:54:55.000Z"
                      },
                      "currentPrint": null,
                      "recent30Days": {
                        "prints": 12,
                        "completed": 11,
                        "cards": 13
                      },
                      "lastRibbon": {
                        "value": 85,
                        "uid": "RBN-0001",
                        "at": "2026-11-05T14:54:55.000Z",
                        "printId": "J20261105-000008"
                      }
                    }
                  ],
                  "nextCursor": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 2,
        "tags": [
          "printer"
        ]
      }
    },
    "/v1/api/printer/{serial}": {
      "get": {
        "operationId": "getPrinter",
        "summary": "프린터 상세 조회",
        "description": "시리얼로 프린터 한 대의 상태를 돌려줍니다. 칸은 프린터 목록 조회의 한 줄과 같습니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "serial",
            "in": "path",
            "required": true,
            "description": "프린터 시리얼",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "10001400142"
          }
        ],
        "responses": {
          "200": {
            "description": "프린터 상세",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "프린터 상세",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "printer"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "printer": {
                      "$ref": "#/components/schemas/Printer"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "printer": {
                    "serial": "10001400142",
                    "model": "KC Prime",
                    "registered": true,
                    "activated": true,
                    "activatedAt": "2026-11-01T02:00:00.000Z",
                    "state": "ready",
                    "reasons": [],
                    "online": true,
                    "lastSeenAt": "2026-11-06T03:00:00.000Z",
                    "detail": {
                      "cover": "closed",
                      "cardInFeeder": true,
                      "ribbon": {
                        "label": "Color YMCKO",
                        "remaining": 85,
                        "capacity": 300,
                        "percent": 28,
                        "state": "in_use",
                        "uid": "RBN-0001",
                        "updatedAt": "2026-11-06T03:00:00.000Z"
                      },
                      "totalCards": 629,
                      "cardsUntilCleaning": 371,
                      "cleaningCount": 2,
                      "source": "cli"
                    },
                    "lastPrint": {
                      "printId": "J20261105-000008",
                      "state": "completed",
                      "result": "completed",
                      "createdAt": "2026-11-05T14:53:35.000Z",
                      "finishedAt": "2026-11-05T14:54:55.000Z"
                    },
                    "currentPrint": null,
                    "recent30Days": {
                      "prints": 12,
                      "completed": 11,
                      "cards": 13
                    },
                    "lastRibbon": {
                      "value": 85,
                      "uid": "RBN-0001",
                      "at": "2026-11-05T14:54:55.000Z",
                      "printId": "J20261105-000008"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "printer_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 3,
        "tags": [
          "printer"
        ]
      }
    },
    "/v1/api/print": {
      "get": {
        "operationId": "listPrints",
        "summary": "출력 기록 목록 조회",
        "description": "출력 기록을 최신순으로 봅니다. 기간·프린터·결과로 거르고 cursor 로 다음 쪽을 봅니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "기간 시작(한국 날짜, 그날 포함)",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "example": "2026-11-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "기간 끝(한국 날짜, 그날 포함)",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "example": "2026-11-30"
          },
          {
            "name": "printer",
            "in": "query",
            "required": false,
            "description": "이 프린터만",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "example": "10001400142"
          },
          {
            "name": "result",
            "in": "query",
            "required": false,
            "description": "이 결과만",
            "schema": {
              "type": "string",
              "enum": [
                "completed",
                "failed",
                "unknown"
              ]
            },
            "example": "completed"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "한 쪽 줄 수(기본 50)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "example": 20
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "앞 응답의 nextCursor. 없으면 첫 쪽",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "출력 기록",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "출력 기록",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "description": "출력",
                      "items": {
                        "$ref": "#/components/schemas/PrintItem"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "다음 쪽 cursor. 마지막 쪽이면 null"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "items": [
                    {
                      "printId": "J20261105-000008",
                      "printerSerial": "10001400142",
                      "source": "cli",
                      "state": "finished",
                      "stage": "printing",
                      "result": {
                        "result": "completed",
                        "reason": null,
                        "reasonText": null,
                        "cardsUsed": 1,
                        "discardedCards": 0,
                        "durationMs": 75000
                      },
                      "createdAt": "2026-11-05T14:53:35.000Z",
                      "startedAt": "2026-11-05T14:53:40.000Z",
                      "finishedAt": "2026-11-05T14:54:55.000Z",
                      "duplex": false,
                      "frameName": null,
                      "designName": null,
                      "stopReasons": [],
                      "blockedCount": 0
                    }
                  ],
                  "nextCursor": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "printer_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 4,
        "tags": [
          "print"
        ]
      }
    },
    "/v1/api/print/{printId}": {
      "get": {
        "operationId": "getPrint",
        "summary": "출력 기록 상세 조회",
        "description": "출력 번호(printId)로 출력 기록 한 건의 상태와 결과를 돌려줍니다. 칸은 웹 출력 상세와 같고, 목록 한 줄보다 멈춘 이유·이벤트가 더 있습니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "printId",
            "in": "path",
            "required": true,
            "description": "출력 번호",
            "schema": {
              "type": "string",
              "pattern": "^J\\d{8}-\\d{6,}$"
            },
            "example": "J20261105-000008"
          }
        ],
        "responses": {
          "200": {
            "description": "출력 기록 상세",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Print"
                },
                "example": {
                  "ok": true,
                  "printId": "J20261105-000008",
                  "printerSerial": "10001400142",
                  "source": "cli",
                  "state": "finished",
                  "stage": "printing",
                  "progress": {
                    "bytesSent": 2140509,
                    "totalBytes": 2140509,
                    "percent": 100
                  },
                  "orientation": "landscape",
                  "duplex": false,
                  "frame": null,
                  "design": null,
                  "createdAt": "2026-11-05T14:53:35.000Z",
                  "expiresAt": "2026-11-06T14:53:35.000Z",
                  "startedAt": "2026-11-05T14:53:40.000Z",
                  "finishedAt": "2026-11-05T14:54:55.000Z",
                  "incident": false,
                  "result": {
                    "result": "completed",
                    "reason": null,
                    "reasonText": null,
                    "cardsUsed": 1,
                    "discardedCards": 0,
                    "durationMs": 75000
                  },
                  "ribbon": {
                    "before": 86,
                    "after": 85,
                    "uid": "RBN-0001",
                    "used": 1
                  },
                  "stopReasons": [],
                  "blockedCount": 0,
                  "events": [
                    {
                      "at": "2026-11-05T14:53:40.000Z",
                      "type": "sending",
                      "stage": null,
                      "reasons": []
                    }
                  ]
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "print_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 5,
        "tags": [
          "print"
        ]
      }
    },
    "/v1/api/billing": {
      "get": {
        "operationId": "getBilling",
        "summary": "크레딧 잔액 조회",
        "description": "남은 크레딧(달러)을 봅니다: 크레딧 잔액과 그 값을 읽은 시각. 선불 크레딧입니다: 계좌이체로 입금하면 회사가 확인한 뒤 크레딧을 넣고, AI 이미지를 만들면 그 금액(부가세 포함)이 잔액에서 빠집니다. 크레딧이 모자라거나 수수료 설정 전이면 AI 이미지를 만들 수 없습니다(생성 요청이 403 billing_not_ready). 달마다 쓴 금액은 웹 내 계정의 월 이용 내역서에서 봅니다. 요금 계산은 사용 방법의 \"크레딧과 요금\"에 있습니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "남은 크레딧",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Billing"
                },
                "example": {
                  "ok": true,
                  "balanceUsd": "42.500",
                  "at": "2026-11-18T09:30:00.000Z"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 6,
        "tags": [
          "billing"
        ]
      }
    },
    "/v1/api/generate/model": {
      "get": {
        "operationId": "listGenerateModels",
        "summary": "모델 목록 조회",
        "description": "고를 수 있는 모델을 추천 순서로 봅니다. 맨 위가 기본입니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "AI 모델 목록",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "AI 모델 목록",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "description": "모델",
                      "items": {
                        "$ref": "#/components/schemas/GenerateModel"
                      }
                    },
                    "nextCursor": {
                      "type": "null",
                      "description": "늘 null"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "items": [
                    {
                      "id": "google-gemini-3.1-flash-image",
                      "name": "나노 바나나 2",
                      "family": "Google",
                      "state": "ready",
                      "reason": null,
                      "order": 1,
                      "isDefault": true,
                      "capabilities": {
                        "transparent": false,
                        "maxRefs": 14,
                        "refMaxBytes": 10485760,
                        "refTotalMaxBytes": 20971520,
                        "cardAspect": {
                          "landscape": "3:2",
                          "portrait": "2:3"
                        },
                        "aspects": [
                          "1:1",
                          "2:3",
                          "3:2",
                          "16:9",
                          "9:16"
                        ],
                        "resolutions": [
                          "1K",
                          "2K",
                          "4K"
                        ],
                        "defaultResolution": "1K",
                        "options": []
                      },
                      "estimate": {
                        "minUsd": "0.061",
                        "maxUsd": "0.130",
                        "exact": false,
                        "basis": "tokens_measured"
                      },
                      "avgDurationMs": 14000,
                      "releasedAt": "2026-11-06T03:00:00.000Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 9,
        "tags": [
          "generate"
        ]
      }
    },
    "/v1/api/generate/estimate": {
      "post": {
        "operationId": "estimateGenerate",
        "summary": "비용 예상",
        "description": "고른 모델·비율·해상도로 한 장의 예상 금액(부가세 포함)과 지금 만들 수 있는지(`aiBlock`: 수수료 설정 전이거나 크레딧이 이 예상의 최소 금액보다 적으면 billing_not_ready)를 봅니다. 돈은 나가지 않습니다. 실제 청구는 실제 사용 금액이라 예상과 다를 수 있습니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "예상",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "model",
                    "aspect",
                    "resolution",
                    "minUsd",
                    "maxUsd",
                    "exact",
                    "basis",
                    "billingReady",
                    "aiBlock"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true,
                      "description": "성공하면 늘 true"
                    },
                    "model": {
                      "type": "string",
                      "description": "모델 id"
                    },
                    "aspect": {
                      "type": "string",
                      "description": "비율(card-landscape·card-portrait·\"3:2\" 같은 값)"
                    },
                    "resolution": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "해상도(해상도를 받지 않는 모델은 null)"
                    },
                    "minUsd": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^-?\\d+\\.\\d{3}$",
                      "description": "예상 최소(부가세 포함). 모르면 null",
                      "x-unit": "USD",
                      "examples": [
                        "0.156"
                      ]
                    },
                    "maxUsd": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^-?\\d+\\.\\d{3}$",
                      "description": "예상 최대(부가세 포함). 모르면 null",
                      "x-unit": "USD",
                      "examples": [
                        "0.156"
                      ]
                    },
                    "exact": {
                      "type": "boolean",
                      "description": "정가(장당) 모델이라 예상이 정확한지"
                    },
                    "basis": {
                      "type": "string",
                      "description": "예상 근거: per_image 장당 정가 · per_request 요청당 정가 · megapixel 픽셀 수 × 단가 · tokens_measured 토큰 단가 × 실제 기록 범위 · tokens_assumed 토큰 단가 × 일반 범위 · unknown 모름"
                    },
                    "billingReady": {
                      "type": "boolean",
                      "description": "false 면 생성 요청이 billing_not_ready"
                    },
                    "aiBlock": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "billing_not_ready",
                        null
                      ],
                      "description": "AI 이미지 생성이 막힌 이유. null 이면 막히지 않음. 지금 생성하면 받을 code 와 같다. 선불 크레딧: 막히면 늘 billing_not_ready(AI 사용 준비 중: 수수료 설정 전이거나 크레딧이 이번 생성의 최소 금액보다 적음)"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "model": "google-gemini-3.1-flash-image",
                  "aspect": "card-landscape",
                  "resolution": "1K",
                  "minUsd": "0.061",
                  "maxUsd": "0.130",
                  "exact": false,
                  "basis": "tokens_measured",
                  "billingReady": true,
                  "aiBlock": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request",
              "generate_model_unavailable",
              "generate_option_not_supported"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "415": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "unsupported_media_type"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 10,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "model": {
                    "type": "string",
                    "description": "모델 id(없으면 기본 모델)"
                  },
                  "aspect": {
                    "type": "string",
                    "description": "비율. 값과 기본은 이미지 생성의 aspect 와 같음(기본 card-landscape)"
                  },
                  "orientation": {
                    "type": "string",
                    "enum": [
                      "landscape",
                      "portrait"
                    ],
                    "description": "aspect 가 없을 때 카드 방향(기본 landscape)"
                  },
                  "resolution": {
                    "type": "string",
                    "description": "해상도(이미지 생성의 resolution 과 같음). 없으면 카드를 덮는 가장 작은 것"
                  },
                  "transparent": {
                    "type": "boolean",
                    "description": "투명 배경(기본 false)"
                  },
                  "refs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 16,
                    "description": "넣을 참고 이미지 장수(0~16, 기본 0)"
                  },
                  "options": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "모델 전용 옵션(이미지 생성의 options 와 같음)"
                  }
                }
              },
              "example": {
                "model": "google-gemini-3.1-flash-image",
                "aspect": "card-landscape",
                "refs": 0
              }
            }
          }
        },
        "tags": [
          "generate"
        ]
      }
    },
    "/v1/api/generate": {
      "post": {
        "operationId": "createGenerate",
        "summary": "이미지 생성",
        "description": "이미지를 만들어 달라고 요청합니다. 만들기는 시간이 걸려 바로 202로 답하고, 결과는 생성 상세 조회(GET /v1/api/generate/{generateId})로 봅니다. `Idempotency-Key` 머리(UUID)는 넣기를 권합니다. 안 넣고 다시 보내면 두 번 만들어지고 두 번 청구될 수 있습니다. 같은 키로 다시 보내면 다시 청구하지 않고 처음 요청의 결과를 돌려주며(응답 머리 `Idempotent-Replay: true`), 같은 키에 내용이 다르면 409 `idempotency_key_reused`입니다. 금액은 실제 사용한 만큼(달러, 부가세 포함) 크레딧 잔액에서 빠집니다. 접수할 때 최대 금액을 크레딧에서 묶어 두고, 끝나면 실제 금액만 빼고 나머지를 돌려 놓습니다. 수수료 설정 전이거나 쓸 수 있는 크레딧이 모자라면 403 `billing_not_ready`입니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "넣기를 권함(UUID). 안 넣고 다시 보내면 두 번 만들어지고 두 번 청구될 수 있음. 같은 키로 다시 보내면 같은 결과·청구 한 번, 같은 키에 내용이 다르면 409. 24시간 보관. UUID가 아니면 400 invalid_request",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "7f8e6f0e-0c1e-4a4b-9a55-1f6f6d9e2b11"
          }
        ],
        "responses": {
          "202": {
            "description": "접수됨",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Generate"
                },
                "example": {
                  "ok": true,
                  "generateId": "G20261106-000001",
                  "state": "running",
                  "model": "google-gemini-3.1-flash-image",
                  "modelName": "나노 바나나 2",
                  "orientation": "landscape",
                  "transparent": false,
                  "createdAt": "2026-11-06T03:00:00.000Z",
                  "finishedAt": null,
                  "reason": null,
                  "reasonText": null,
                  "result": null,
                  "aspect": "card-landscape",
                  "resolution": "1K",
                  "usedOptions": {},
                  "charge": {
                    "amountUsd": null,
                    "pending": false,
                    "reservedUsd": "1.000",
                    "demo": false
                  },
                  "image": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "generate_busy",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request",
              "generate_prompt_invalid",
              "generate_model_unavailable",
              "generate_option_not_supported",
              "generate_image_invalid"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "409": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "idempotency_key_reused"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "403": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_inactive",
              "billing_not_ready"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "503": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "storage_not_configured",
              "service_paused",
              "generate_unavailable"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "413": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "file_too_large",
              "payload_too_large"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "415": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "unsupported_media_type"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 11,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "본문은 JSON(application/json)입니다. 참고 이미지를 넣으려면 multipart/form-data로 같은 칸(options 는 JSON 글자)과 파일 칸 refs 를 보냅니다",
                "additionalProperties": false,
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "description": "만들 이미지 설명(1자 이상, 글자 수 한도 없음). 32KB(UTF-8 바이트)를 넘으면 400 generate_prompt_invalid",
                    "examples": [
                      "푸른 밤하늘 아래 행성 카드 배경"
                    ],
                    "minLength": 1
                  },
                  "model": {
                    "type": "string",
                    "description": "모델 id. 없으면 기본 모델",
                    "examples": [
                      "google-gemini-3.1-flash-image"
                    ]
                  },
                  "orientation": {
                    "type": "string",
                    "description": "aspect 가 없을 때 카드 방향(기본 landscape)",
                    "enum": [
                      "landscape",
                      "portrait"
                    ]
                  },
                  "transparent": {
                    "type": "boolean",
                    "description": "투명 배경(기본 false)"
                  },
                  "aspect": {
                    "type": "string",
                    "description": "비율(기본 card-landscape). card-landscape·card-portrait 또는 capabilities.cardAspect 값(예 \"3:2\", 자유 크기 모델은 \"1024x656\")은 카드 비율, 그 밖에는 capabilities.aspects 값",
                    "examples": [
                      "card-landscape"
                    ]
                  },
                  "resolution": {
                    "type": "string",
                    "description": "해상도(모델 capabilities.resolutions 값). 없으면 카드를 덮는 가장 작은 것",
                    "examples": [
                      "1K"
                    ]
                  },
                  "options": {
                    "type": "object",
                    "description": "모델 전용 옵션(capabilities.options 이름만). quality 는 보낼 수 없음(모델 기본값)",
                    "additionalProperties": true,
                    "examples": [
                      {
                        "seed": true
                      }
                    ]
                  }
                }
              },
              "example": {
                "prompt": "푸른 밤하늘 아래 행성 카드 배경",
                "aspect": "card-landscape"
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "description": "JSON 본문의 prompt 와 같음"
                  },
                  "model": {
                    "type": "string",
                    "description": "JSON 본문의 model 과 같음"
                  },
                  "orientation": {
                    "type": "string",
                    "enum": [
                      "landscape",
                      "portrait"
                    ],
                    "description": "JSON 본문의 orientation 과 같음"
                  },
                  "transparent": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "description": "JSON 본문의 transparent 와 같음(글자 true·false)"
                  },
                  "image": {
                    "type": "string",
                    "format": "binary",
                    "description": "참고 이미지(PNG·JPEG·WebP, 10MB까지). 여러 장이면 image 칸을 여러 번(모델 최대 장수까지)"
                  },
                  "aspect": {
                    "type": "string",
                    "description": "JSON 본문의 aspect 와 같음"
                  },
                  "resolution": {
                    "type": "string",
                    "description": "JSON 본문의 resolution 과 같음"
                  },
                  "options": {
                    "type": "string",
                    "description": "JSON 본문의 options 를 JSON 글자로"
                  },
                  "refs": {
                    "type": "string",
                    "format": "binary",
                    "description": "참고 사진(PNG·JPEG·WebP). 여러 장이면 refs 칸을 여러 번. 한 장 10MB, 합계 20MB, 장수는 capabilities.maxRefs 까지(image 칸 이름도 받음)"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "generate"
        ]
      }
    },
    "/v1/api/generate/{generateId}": {
      "get": {
        "operationId": "getGenerate",
        "summary": "생성 상세 조회",
        "description": "진행 상태와 결과를 봅니다. `waitMs`를 주면 끝날 때까지 그 시간만큼 기다렸다가 답합니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "generateId",
            "in": "path",
            "required": true,
            "description": "생성 번호",
            "schema": {
              "type": "string",
              "pattern": "^G\\d{8}-\\d{6,}$"
            },
            "example": "G20261105-000001"
          },
          {
            "name": "waitMs",
            "in": "query",
            "required": false,
            "description": "끝날 때까지 기다릴 시간(밀리초). 호출 횟수를 줄이는 데 씁니다",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 25000
            },
            "example": 20000
          }
        ],
        "responses": {
          "200": {
            "description": "생성 상세",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Generate"
                },
                "example": {
                  "ok": true,
                  "generateId": "G20261106-000001",
                  "state": "succeeded",
                  "model": "google-gemini-3.1-flash-image",
                  "modelName": "나노 바나나 2",
                  "orientation": "landscape",
                  "transparent": false,
                  "createdAt": "2026-11-06T03:00:00.000Z",
                  "finishedAt": "2026-11-06T03:00:12.000Z",
                  "reason": null,
                  "reasonText": null,
                  "result": {
                    "width": 1264,
                    "height": 848,
                    "bytes": 1048576,
                    "sha256": "3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f3f",
                    "expiresAt": "2026-11-07T03:00:12.000Z",
                    "imageUrl": "/v1/api/generate/G20261106-000001/image",
                    "format": "png"
                  },
                  "aspect": "card-landscape",
                  "resolution": "1K",
                  "usedOptions": {},
                  "charge": {
                    "amountUsd": "0.052",
                    "pending": false,
                    "reservedUsd": "0.000",
                    "demo": false
                  },
                  "image": {
                    "width": 1264,
                    "height": 848,
                    "format": "png"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "generate_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 12,
        "tags": [
          "generate"
        ]
      }
    },
    "/v1/api/generate/{generateId}/image": {
      "get": {
        "operationId": "getGenerateImage",
        "summary": "결과 이미지 다운로드",
        "description": "완료된 이미지를 PNG로 받습니다. 만든 뒤 24시간이 지나면 410 `generate_expired`입니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "generateId",
            "in": "path",
            "required": true,
            "description": "생성 번호",
            "schema": {
              "type": "string",
              "pattern": "^G\\d{8}-\\d{6,}$"
            },
            "example": "G20261105-000001"
          }
        ],
        "responses": {
          "200": {
            "description": "PNG 파일. 응답 머리 `X-Content-SHA256`에 SHA-256이 있습니다",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "generate_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "410": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "generate_expired"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 13,
        "tags": [
          "generate"
        ]
      }
    },
    "/v1/api/storage/prompt": {
      "get": {
        "operationId": "listPrompts",
        "summary": "프롬프트 목록 조회",
        "description": "보관함의 저장한 프롬프트를 봅니다(읽기만). 마지막으로 쓴 것부터.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "저장한 프롬프트",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "저장한 프롬프트 목록",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "description": "프롬프트",
                      "items": {
                        "$ref": "#/components/schemas/Prompt"
                      }
                    },
                    "nextCursor": {
                      "type": "null",
                      "description": "늘 null"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "items": [
                    {
                      "promptId": 1,
                      "name": "밤하늘",
                      "prompt": "밤하늘 은하수 카드 배경",
                      "model": null,
                      "orientation": "landscape",
                      "transparent": false,
                      "createdAt": "2026-11-05T01:00:00.000Z",
                      "updatedAt": "2026-11-05T01:00:00.000Z",
                      "lastUsedAt": null
                    }
                  ],
                  "nextCursor": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 16,
        "tags": [
          "storage"
        ]
      }
    },
    "/v1/api/storage/design": {
      "get": {
        "operationId": "listDesigns",
        "summary": "디자인 목록 조회",
        "description": "보관함의 디자인 목록을 돌려줍니다(읽기만). `name`을 주면 이름이 같은 디자인만 돌려줍니다(앞뒤 공백·대소문자 무시, NFC). 없으면 빈 items.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "이 이름만(0~1개)",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "example": "명함A"
          }
        ],
        "responses": {
          "200": {
            "description": "디자인 목록",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "디자인 목록",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "description": "디자인",
                      "items": {
                        "$ref": "#/components/schemas/Design"
                      }
                    },
                    "nextCursor": {
                      "type": "null",
                      "description": "늘 null"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "items": [
                    {
                      "designId": "12",
                      "name": "명함A",
                      "orientation": "landscape",
                      "duplex": true,
                      "layers": {
                        "front": 4,
                        "back": 1
                      },
                      "imageLayers": [
                        {
                          "face": "front",
                          "name": "배경",
                          "width": 1016,
                          "height": 648
                        },
                        {
                          "face": "front",
                          "name": "사진",
                          "width": 300,
                          "height": 400,
                          "ratio": "3:4"
                        },
                        {
                          "face": "back",
                          "name": "로고",
                          "width": 1016,
                          "height": 648
                        }
                      ],
                      "textLayers": [
                        {
                          "face": "front",
                          "name": "이름"
                        }
                      ],
                      "qrLayers": [
                        {
                          "face": "front",
                          "name": "QR"
                        }
                      ],
                      "hasOriginals": true,
                      "bytes": 3145728,
                      "appVersion": "0.8.1",
                      "source": "web",
                      "fileUrl": "/v1/api/storage/design/12/file",
                      "createdAt": "2026-11-13T01:00:00.000Z",
                      "updatedAt": "2026-11-13T01:00:00.000Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 14,
        "tags": [
          "storage"
        ]
      }
    },
    "/v1/api/storage/design/{designId}": {
      "get": {
        "operationId": "getDesign",
        "summary": "디자인 상세 조회",
        "description": "디자인 번호(designId)로 고른 디자인의 정보를 돌려줍니다(읽기만). 그림을 바꿔 넣을 수 있는 레이어와 그 픽셀 크기는 `design.imageLayers`, 텍스트·QR 레이어 이름은 `design.textLayers`·`design.qrLayers`, 레이어마다의 자리·종류는 `manifest`(design.json)에 있습니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "designId",
            "in": "path",
            "required": true,
            "description": "디자인 번호",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            "example": "1"
          }
        ],
        "responses": {
          "200": {
            "description": "디자인 상세",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "디자인 상세",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "design",
                    "manifest"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "design": {
                      "$ref": "#/components/schemas/Design"
                    },
                    "manifest": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "design.json(v2, 레이어 이름·종류·위치·숨김). 없으면 null"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "design": {
                    "designId": "12",
                    "name": "명함A",
                    "orientation": "landscape",
                    "duplex": true,
                    "layers": {
                      "front": 4,
                      "back": 1
                    },
                    "imageLayers": [
                      {
                        "face": "front",
                        "name": "배경",
                        "width": 1016,
                        "height": 648
                      },
                      {
                        "face": "front",
                        "name": "사진",
                        "width": 300,
                        "height": 400,
                        "ratio": "3:4"
                      },
                      {
                        "face": "back",
                        "name": "로고",
                        "width": 1016,
                        "height": 648
                      }
                    ],
                    "textLayers": [
                      {
                        "face": "front",
                        "name": "이름"
                      }
                    ],
                    "qrLayers": [
                      {
                        "face": "front",
                        "name": "QR"
                      }
                    ],
                    "hasOriginals": true,
                    "bytes": 3145728,
                    "appVersion": "0.8.1",
                    "source": "web",
                    "fileUrl": "/v1/api/storage/design/12/file",
                    "createdAt": "2026-11-13T01:00:00.000Z",
                    "updatedAt": "2026-11-13T01:00:00.000Z"
                  },
                  "manifest": {
                    "v": 2,
                    "name": "명함A",
                    "orientation": "landscape",
                    "backMode": "threshold",
                    "appVersion": "0.8.1",
                    "faces": {
                      "front": [
                        {
                          "name": "배경",
                          "kind": "photo",
                          "visible": true,
                          "opacity": 1,
                          "cx": 508,
                          "cy": 324,
                          "w": 1016,
                          "h": 648,
                          "rotation": 0,
                          "flipX": false,
                          "flipY": false,
                          "png": "front/01_배경.png"
                        },
                        {
                          "name": "사진",
                          "kind": "photo",
                          "visible": true,
                          "opacity": 1,
                          "cx": 200,
                          "cy": 324,
                          "w": 300,
                          "h": 400,
                          "rotation": 0,
                          "flipX": false,
                          "flipY": false,
                          "slot": {
                            "ratio": "3:4"
                          },
                          "png": "front/02_사진.png"
                        },
                        {
                          "name": "이름",
                          "kind": "text",
                          "visible": true,
                          "opacity": 1,
                          "cx": 700,
                          "cy": 260,
                          "w": 520,
                          "h": 90,
                          "rotation": 0,
                          "flipX": false,
                          "flipY": false,
                          "text": {
                            "value": "홍길동",
                            "font": "pretendard",
                            "size": 64,
                            "color": "#000000"
                          },
                          "png": "front/03_이름.png"
                        },
                        {
                          "name": "QR",
                          "kind": "image",
                          "visible": true,
                          "opacity": 1,
                          "cx": 900,
                          "cy": 520,
                          "w": 160,
                          "h": 160,
                          "rotation": 0,
                          "flipX": false,
                          "flipY": false,
                          "qr": {
                            "value": "E1234",
                            "ecc": "M",
                            "quiet": 2,
                            "color": "#000000",
                            "background": "#ffffff"
                          },
                          "png": "front/04_QR.png"
                        }
                      ],
                      "back": [
                        {
                          "name": "로고",
                          "kind": "photo",
                          "visible": true,
                          "opacity": 1,
                          "cx": 508,
                          "cy": 324,
                          "w": 1016,
                          "h": 648,
                          "rotation": 0,
                          "flipX": false,
                          "flipY": false,
                          "png": "back/01_로고.png"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "storage_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 14.1,
        "tags": [
          "storage"
        ]
      }
    },
    "/v1/api/storage/design/{designId}/file": {
      "get": {
        "operationId": "getDesignFile",
        "summary": "디자인 파일 다운로드",
        "description": "302 로 서명 주소(10분)를 줍니다. 그 주소로 갈 때 `Authorization` 머리를 보내지 마세요. 서명 주소를 만들 수 없으면 200 으로 파일을 바로 줍니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "designId",
            "in": "path",
            "required": true,
            "description": "디자인 번호",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            "example": "1"
          }
        ],
        "responses": {
          "200": {
            "description": "파일(서명 주소를 못 만들 때)",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "302": {
            "description": "서명 주소로 옮김(Location)",
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "storage_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 14.2,
        "tags": [
          "storage"
        ]
      }
    },
    "/v1/api/storage/image": {
      "get": {
        "operationId": "listImages",
        "summary": "이미지 목록 조회",
        "description": "보관함의 이미지 목록을 돌려줍니다(읽기만). `name`을 주면 이름이 같은 이미지만 돌려줍니다(앞뒤 공백·대소문자 무시, NFC). 없으면 빈 items.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "이 이름만(0~1개)",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "example": "하트"
          }
        ],
        "responses": {
          "200": {
            "description": "이미지 목록",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "이미지 목록",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "items": {
                      "type": "array",
                      "description": "이미지",
                      "items": {
                        "$ref": "#/components/schemas/Image"
                      }
                    },
                    "nextCursor": {
                      "type": "null",
                      "description": "늘 null"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "items": [
                    {
                      "imageId": "7",
                      "name": "하트",
                      "type": "image/png",
                      "width": 1016,
                      "height": 648,
                      "bytes": 204800,
                      "sha256": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
                      "hasAlpha": true,
                      "source": "upload",
                      "fileUrl": "/v1/api/storage/image/7/file",
                      "createdAt": "2026-11-13T01:00:00.000Z",
                      "updatedAt": "2026-11-13T01:00:00.000Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 14.3,
        "tags": [
          "storage"
        ]
      }
    },
    "/v1/api/storage/image/{imageId}": {
      "get": {
        "operationId": "getImage",
        "summary": "이미지 상세 조회",
        "description": "이미지 번호(imageId)로 고른 이미지의 정보와 파일 주소를 돌려줍니다(읽기만).",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "description": "이미지 번호",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            "example": "1"
          }
        ],
        "responses": {
          "200": {
            "description": "이미지 상세",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "이미지 상세",
                  "additionalProperties": false,
                  "required": [
                    "ok",
                    "image"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "성공하면 늘 true",
                      "const": true
                    },
                    "image": {
                      "$ref": "#/components/schemas/Image"
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "image": {
                    "imageId": "7",
                    "name": "하트",
                    "type": "image/png",
                    "width": 1016,
                    "height": 648,
                    "bytes": 204800,
                    "sha256": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
                    "hasAlpha": true,
                    "source": "upload",
                    "fileUrl": "/v1/api/storage/image/7/file",
                    "createdAt": "2026-11-13T01:00:00.000Z",
                    "updatedAt": "2026-11-13T01:00:00.000Z"
                  }
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "storage_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 14.4,
        "tags": [
          "storage"
        ]
      }
    },
    "/v1/api/storage/image/{imageId}/file": {
      "get": {
        "operationId": "getImageFile",
        "summary": "이미지 파일 다운로드",
        "description": "302 로 서명 주소(10분)를 줍니다. 그 주소로 갈 때 `Authorization` 머리를 보내지 마세요. 서명 주소를 만들 수 없으면 200 으로 파일을 바로 줍니다.",
        "security": [
          {
            "licenseKey": []
          }
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "description": "이미지 번호",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            "example": "1"
          }
        ],
        "responses": {
          "200": {
            "description": "파일(서명 주소를 못 만들 때)",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "302": {
            "description": "서명 주소로 옮김(Location)",
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "401": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "license_key_invalid"
            ]
          },
          "429": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "rate_limited",
              "api_rate_daily_exceeded",
              "api_capacity_exceeded"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "500": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "internal_error"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "404": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "storage_not_found"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          },
          "400": {
            "description": "오류",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-codes": [
              "invalid_request"
            ],
            "headers": {
              "X-RateLimit-Limit-Day": {
                "$ref": "#/components/headers/X-RateLimit-Limit-Day"
              },
              "X-RateLimit-Remaining-Day": {
                "$ref": "#/components/headers/X-RateLimit-Remaining-Day"
              },
              "X-RateLimit-Reset-Day": {
                "$ref": "#/components/headers/X-RateLimit-Reset-Day"
              }
            }
          }
        },
        "x-order": 14.5,
        "tags": [
          "storage"
        ]
      }
    }
  }
}
