POST
/
v1
/
lomin
/
document
/
parse
/
async
Lomin 문서 파싱 (비동기)
curl --request POST \
  --url https://api.clovastudio.go.kr/v1/lomin/document/parse/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'pages=<string>' \
  --form parser_type=auto \
  --form response_format=json \
  --form file=@example-file
{
  "status": {
    "code": "20000",
    "message": "OK"
  },
  "result": {
    "model": "lomin-layout-v1",
    "document_id": "doc_lomin_abc123def456",
    "status": "RUNNING_INFERENCE"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

파싱할 문서 파일

pages
string | null

처리할 페이지 목록 (예: '1,2,3' 또는 '1,3,5'). parser_type='file'일 때는 무시됨

parser_type
enum<string>

파서 타입 (auto: 자동 선택, layout: 레이아웃 기반, file: 파일 전체 처리)

Available options:
auto,
layout,
file
response_format
enum<string>

응답 포맷 (json 또는 html)

Available options:
json,
html

Response

성공 - 문서 파싱 시작

status
object
required

응답 상태

result
any

응답 결과 데이터

usage
object | null

API 사용량 정보 (파서, 검색, 업로드 API에서만 제공) API 사용량 정보 - 공통 베이스

Examples:
{
"embedding_tokens": 15,
"rerank_tokens": 130,
"total_tokens": 145
}
{
"embedding_tokens": 15,
"total_tokens": 15
}
{ "pages": 3 }