# OctoAIEmbeddings

> **Class** in `langchain_community`

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

OctoAI Compute Service embedding models.

See https://octo.ai/ for information about OctoAI.

To use, you should have the ``openai`` python package installed and the
environment variable ``OCTOAI_API_TOKEN`` set with your API token.
Alternatively, you can use the octoai_api_token keyword argument.

## Signature

```python
OctoAIEmbeddings()
```

## Extends

- `OpenAIEmbeddings`

## Properties

- `octoai_api_token`
- `endpoint_url`
- `model`
- `tiktoken_enabled`
- `lc_secrets`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/embeddings/octoai_embeddings/OctoAIEmbeddings/validate_environment)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/embeddings/octoai_embeddings.py#L13)