Skip to main content
Method: Operations.createImage(...)
import ai.stats.gen.Operations;

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

Object response = Operations.createImage(client, null, null, null, body);
System.out.println(String.valueOf(response));
Last modified on March 16, 2026