> ## 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.

# Image edits

> Call /images/edits with the Java SDK.

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

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

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

String body = """
{
  "model": "openai/gpt-image-1",
  "prompt": "Make this image warmer",
  "image": "data:image/png;base64,..."
}
""";

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

<Note>
  The preview Java client sends JSON request bodies directly. For advanced multipart workflows,
  use direct REST calls until higher-level helpers are added.
</Note>
