> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/reference/ko/inference/inference-sdk/core-models.md).

# 핵심 모델

`InferenceHTTPClient` Inference에서 호스팅되는 핵심 모델을 지원합니다. 이러한 모델 중 일부는 Roboflow 호스팅 추론 플랫폼에서 사용할 수 있습니다(사용 `https://serverless.roboflow.com` 을 URL로); 다른 모델들은 로컬로 배포할 수 있습니다(일반적으로 로컬 서버는 `http://localhost:9001`).

## CLIP

```python
from inference_sdk import InferenceHTTPClient

CLIENT = InferenceHTTPClient(
    api_url="http://localhost:9001",  # 또는 호스팅 서비스를 사용하려면 "https://serverless.roboflow.com"
    api_key="ROBOFLOW_API_KEY"
)

CLIENT.get_clip_image_embeddings(inference_input="./my_image.jpg")  # 단일 이미지 요청
CLIENT.get_clip_image_embeddings(inference_input=["./my_image.jpg", "./other_image.jpg"])  # 배치 이미지 요청
CLIENT.get_clip_text_embeddings(text="some")  # 단일 텍스트 요청
CLIENT.get_clip_text_embeddings(text=["some", "other"])  # 기타 텍스트 요청
CLIENT.clip_compare(
    subject="./my_image.jpg",
    prompt=["fox", "dog"],
)
```

해당 `CLIENT.clip_compare(...)` 메서드를 사용하면 다양한 조합을 비교할 수 있습니다 `subject_type` 및 `prompt_type`:

* `(이미지, 이미지)` (기본값)
* `(이미지, 텍스트)`
* `(텍스트, 이미지)`
* `(텍스트, 텍스트)`

비동기 메서드도 사용할 수 있습니다:

```python
from inference_sdk import InferenceHTTPClient

CLIENT = InferenceHTTPClient(
    api_url="http://localhost:9001",  # 또는 호스팅 서비스를 사용하려면 "https://serverless.roboflow.com"
    api_key="ROBOFLOW_API_KEY"
)

async def see_async_method():
  await CLIENT.get_clip_image_embeddings_async(inference_input="./my_image.jpg")  # 단일 이미지 요청
  await CLIENT.get_clip_image_embeddings_async(inference_input=["./my_image.jpg", "./other_image.jpg"])  # 배치 이미지 요청
  await CLIENT.get_clip_text_embeddings_async(text="some")  # 단일 텍스트 요청
  await CLIENT.get_clip_text_embeddings_async(text=["some", "other"])  # 기타 텍스트 요청
  await CLIENT.clip_compare_async(
      subject="./my_image.jpg",
      prompt=["fox", "dog"],
  )
```

다음 내용을 참조하세요. [CLIP 모델 참조](https://docs.roboflow.com/models/supported-models/clip) 모델 자체에 대한 자세한 내용은.

## DocTR

```python
from inference_sdk import InferenceHTTPClient

CLIENT = InferenceHTTPClient(
    api_url="http://localhost:9001",  # 또는 호스팅 서비스를 사용하려면 "https://serverless.roboflow.com"
    api_key="ROBOFLOW_API_KEY"
)

CLIENT.ocr_image(inference_input="./my_image.jpg")  # 단일 이미지 요청
CLIENT.ocr_image(inference_input=["./my_image.jpg", "./other_image.jpg"])  # 배치 이미지 요청
```

비동기 대응: `CLIENT.ocr_image_async(...)`. 다음을 참조하세요 [DocTR 모델 참조](https://docs.roboflow.com/models/supported-models/doctr) 를 참조하세요.

## Gaze(지원 중단)

{% hint style="warning" %}
`CLIENT.detect_gazes(...)` 및 `CLIENT.detect_gazes_async(...)` 는 MediaPipe 의존성과 함께 제거되었습니다. 이제 이들은 클라이언트 측에서 바로 종료되고 `inference_sdk.http.errors.FeatureDeprecatedError` 네트워크 호출 없이 예외를 발생시킵니다. 이 기능이 필요하면 Roboflow에 문의하세요.
{% endhint %}
