--- title: "임베딩 v2" slug: "clovastudio-embeddingv2" tags: ["AI", "CLOVA Studio", "HyperCLOVA"] updated: 2026-10-22T10:46:35Z published: 2026-10-22T10:46:35Z canonical: "api-gov.ncloud-docs.com/clovastudio-embeddingv2" --- > ## Documentation Index > Fetch the complete documentation index at: https://api-gov.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # 임베딩 v2 Classic/VPC 환경에서 이용 가능합니다. 장문의 텍스트를 숫자로 표현하는 벡터화 작업을 수행합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | POST | /v1/api-tools/embedding/v2 | ### 요청 헤더 CLOVA Studio API에서 공통으로 사용하는 헤더에 대한 정보는 [CLOVA Studio 요청 헤더](/docs/clovastudio-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 바디 요청 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `text` | String | Required | 임베딩 수행 텍스트(토큰) - ~8,192 | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request POST 'https://clovastudio.stream.gov-ntruss.com/testapp/v1/api-tools/embedding/v2/' \ --header 'Authorization: Bearer {API Key}' \ --header 'X-NCP-CLOVASTUDIO-REQUEST-ID: {Request ID}' \ --header 'Content-Type: application/json' \ --data '{ "text": "오늘 날씨 알려줘" }' ``` ## 응답 응답 형식을 설명합니다. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `status` | Object | - | [응답 상태](/docs/clovastudio-overview#%EC%9D%91%EB%8B%B5) 참조 | | `result` | Object | - | 응답 결과 | | `result.embedding` | Array | - | 임베딩 수행 결과 | | `result.inputTokens` | Integer | - | 임베딩 수행 텍스트의 토큰 수 | ### 응답 예시 응답 예시는 다음과 같습니다. #### 성공 호출이 성공한 경우의 응답 예시는 다음과 같습니다. ``` { "status": { "code": "20000", "message": "OK" }, "result": { "embedding": [ -0.3861295, -0.7903874, ... , 0.2994273, -0.7736456, -0.24933687 ] "inputTokens": 4 } } ``` #### 실패 호출이 실패한 경우의 구문 예시는 다음과 같습니다. - [클라이언트 공통 오류 문제(4xx)](/docs/clovastudio-troubleshoot-c4xx) - [서버 공통 오류 문제(5xx)](/docs/clovastudio-troubleshoot-c5xx)