Start calling this model with endpoint-specific examples.
Headline benchmark standings and comparison context.
Key dates, capabilities, and model metadata.
Create a key, choose a supported route, and copy a ready request.
Choose a supported endpoint, pick a main language, then select the example style you want to copy.
import AIStats from '@ai-stats/sdk';
const client = new AIStats({
apiKey: process.env.AI_STATS_API_KEY,
});
const audio = await client.generateSpeech({
"model": "google/gemini-3.1-flash-tts-preview",
"voice": "Kore",
"input": "Welcome to the AI Stats Gateway where latency, uptime, and pricing are in your control.",
"response_format": "mp3"
});
const audioBytes = await audio.arrayBuffer();
console.log(`Generated speech bytes: ${audioBytes.byteLength}`);Select a route to update the request snippet and compatibility details.
/v1/audio/speech