> ## Documentation Index
> Fetch the complete documentation index at: https://dokulabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed

> Monitor Cohere Embed API usage

**Python**

```python
import cohere
import dokumetry

co = cohere.Client("YOUR_COHERE_API_KEY")

# Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")

response = co.embed(
  texts=['LLM', 'Monitoring', 'Observability'],
  model='embed-english-v3.0',
  input_type='classification'
)
print(response)
```

**Javascript**

```javascript
import { CohereClient } from "cohere-ai";
import DokuMetry from 'dokumetry';

const cohere = new CohereClient({
    token: "YOUR_COHERE_API_KEY",
});

(async () => {
  // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
  DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})

  const embed = await cohere.embed({
      texts: ['LLM', 'Monitoring', 'Observability'],
      model: "embed-english-v3.0",
      inputType: "classification",
  });
  console.log(embed);
})();
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.