{"openapi":"3.0.3","info":{"title":"APICK 선정적인 컨텐츠(NSFW) 탐지","version":"1.0.0","description":"이미지 한 장이 선정적·폭력적인(NSFW) 이미지일 가능성을 0~1 점수로 돌려줍니다."},"servers":[{"url":"https://apick.app"}],"paths":{"/rest/nsfw_detection":{"post":{"summary":"선정적인 컨텐츠(NSFW) 탐지","description":"이미지 한 장이 선정적·폭력적인(NSFW) 이미지일 가능성을 0~1 점수로 돌려줍니다.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"서비스별 성공·처리 상태 응답","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"nsfw_score":{"type":"number","description":"NSFW 이미지일 가능성 0~1. 1에 가까울수록 선정적·폭력적일 가능성이 높습니다."},"success":{"type":"integer","description":"처리 결과입니다. 1: 성공(과금), 0: 실패, 3: 시간 초과(과금 없음)."},"detail":{"type":"object","description":"detail=1로 요청했을 때만 포함되는 세부 판정 값입니다. nsfw_score도 함께 들어 있습니다. 판정에는 nsfw_score를 기준으로 쓰세요."}},"description":"판정 결과"},"api":{"type":"object","properties":{"success":{"type":"boolean","description":"요청을 정상 처리했는지 여부입니다."},"cost":{"type":"integer","description":"이번 요청에서 차감된 포인트입니다."},"ms":{"type":"integer","description":"처리 시간(밀리초)입니다."},"pl_id":{"type":"integer","description":"결제 기록 번호입니다. 문의할 때 함께 알려 주세요."}},"description":"호출 공통 정보"}}}}}},"default":{"description":"HTTP 상태 및 서비스 오류코드 확인","content":{"application/json":{"schema":{"type":"object"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","description":"분석할 이미지 파일입니다. JPG·PNG·WEBP를 지원하며, 파일 크기·해상도 제한은 요청 표를 확인하세요. (file)","format":"binary"},"detail":{"type":"string","description":"세부 판정 결과를 응답에 포함할지 정합니다. 1은 포함, 0은 미포함(기본값)입니다. 포함하면 응답이 커지고 처리 시간이 늘어날 수 있습니다. (string)"}},"required":["image"]}}}}}}},"x-code-tables":[{"title":"오류와 대처","columns":["HTTP","data.error","대처"],"rows":[["400","파일 유형이 맞지 않습니다. 이미지 형식의 파일만 허용됩니다.","이미지 파일인지, 손상되지 않았는지 확인하세요."],["424","첨부파일이 없습니다.","파일 필드 이름을 image로 보냈는지 확인하세요."],["424","알 수 없는 이유로 실패했습니다.","이미지를 JPEG 또는 PNG로 다시 저장해 한 번 더 요청하세요."],["408","처리 시간 초과로 실패했습니다.","data.success가 3입니다. 잠시 후 다시 요청하세요."]]}],"x-service-errors":[],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}}}