> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Embeddings

> Call /embeddings with the Java SDK.

**Method**: `client.createEmbedding(...)`

```java theme={null}
import ai.stats.sdk.AIStats;

AIStats client = new AIStats(System.getenv("AI_STATS_API_KEY"));

String body = """
{
  "model": "google/gemini-embedding-001",
  "input": "Vector search uses embeddings to compare meaning"
}
""";

Object response = client.createEmbedding(body);
System.out.println(String.valueOf(response));
```
