Skip to main content
Method: client.createImage(...)
import app.phaseo.sdk.Phaseo;

Phaseo client = new Phaseo(System.getenv("PHASEO_API_KEY"));

String body = """
{
  "model": "openai/gpt-image-1",
  "prompt": "A minimalist poster of a lighthouse at dawn"
}
""";

Object response = client.createImage(body);
System.out.println(String.valueOf(response));
Last modified on July 9, 2026