---
title: "litellm.aembedding()"
url: "/docs/embedding/async_embedding"
canonical_url: "https://docs.litellm.ai/docs/embedding/async_embedding"
type: "docs"
last_updated: "2026-10-10"
summary: "LiteLLM provides an asynchronous version of the embedding function called aembedding"
---
# litellm.aembedding()

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt


LiteLLM provides an asynchronous version of the `embedding` function called `aembedding`
### Usage
```python
from litellm import aembedding
import asyncio

async def test_get_response():
    response = await aembedding('text-embedding-ada-002', input=["good morning from litellm"])
    return response

response = asyncio.run(test_get_response())
print(response)
```
