Skip to main content
Method: client.createResponse(...)
import ai.stats.sdk.AIStats;

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

String body = """
{
  "model": "openai/gpt-5-nano",
  "input": [
    {
      "role": "user",
      "content": [
        { "type": "input_text", "text": "Reply with: java sdk works" }
      ]
    }
  ]
}
""";

Object response = client.createResponse(body);
System.out.println(String.valueOf(response));
Last modified on May 6, 2026