> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/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 app.phaseo.sdk.Phaseo;

Phaseo client = new Phaseo(System.getenv("PHASEO_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));
```
