# TextEmbedEmbeddings

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/embeddings/textembed/TextEmbedEmbeddings)

A class to handle embedding requests to the TextEmbed API.

## Signature

```python
TextEmbedEmbeddings()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.embeddings import TextEmbedEmbeddings

embeddings = TextEmbedEmbeddings(
    model="sentence-transformers/clip-ViT-B-32",
    api_url="http://localhost:8000/v1",
    api_key="<API_KEY>"
)

For more information: https://github.com/kevaldekivadiya2415/textembed/blob/main/docs/setup.md

## Extends

- `BaseModel`
- `Embeddings`

## Properties

- `model`
- `api_url`
- `api_key`
- `client`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/embeddings/textembed/TextEmbedEmbeddings/validate_environment)
- [`embed_documents()`](https://reference.langchain.com/python/langchain-community/embeddings/textembed/TextEmbedEmbeddings/embed_documents)
- [`aembed_documents()`](https://reference.langchain.com/python/langchain-community/embeddings/textembed/TextEmbedEmbeddings/aembed_documents)
- [`embed_query()`](https://reference.langchain.com/python/langchain-community/embeddings/textembed/TextEmbedEmbeddings/embed_query)
- [`aembed_query()`](https://reference.langchain.com/python/langchain-community/embeddings/textembed/TextEmbedEmbeddings/aembed_query)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/embeddings/textembed.py#L27)