AUDIO
🔊 Gemini TTS Model
Making Request:
https://api.hyprlab.io/v1beta/models/[MODEL]:generateContent?key=[API-KEY]#!/bin/bash
set -e -E
HYPRLAB_API_KEY="$HYPRLAB_API_KEY"
MODEL_ID="gemini-2.5-flash-preview-tts"
curl -X POST \
-H "Content-Type: application/json" \
"https://api.hyprlab.io/v1beta/models/${MODEL_ID}:generateContent?key=${HYPRLAB_API_KEY}" \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Greet the user in a warm and welcoming voice: Good morning! Ready to start your day?"
}
]
}
],
"generationConfig": {
"responseModalities": ["audio"],
"temperature": 1,
"speech_config": {
"voice_config": {
"prebuilt_voice_config": {
"voice_name": "Zephyr"
}
}
}
}
}' > output.json
echo "Response saved as output.json"Pricing:
Model Name:
Discount:
Input:
Output:
Context Length:
Moderation:
Capabilities:
Model Name:
Discount:
Input:
Output:
Context Length:
Moderation:
Capabilities:
Last updated
