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

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

String body = """
{
  "model": "openai/whisper-1",
  "file": "data:audio/mpeg;base64,..."
}
""";

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