Hello, I’m a newbie so pls be pacient ![]()
I’m trying to test the referred model but hitting this error I cannot overcome, any ideas welcome.
# Enable the Vertex AI API
gcloud services enable aiplatform.googleapis.com
(Wait some mins)
# Run the test curl
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "The 2.5 Pro model is now active and generating high quality audio."
}
]
}
],
"generationConfig": {
"responseModalities": ["AUDIO"],
"speechConfig": {
"voiceConfig": {
"prebuiltVoiceConfig": {
"voiceName": "Phoebe"
}
}
}
}
}' \
"https://us-central1-aiplatform.googleapis.com/v1/projects/$(gcloud config get-value project)/locations/us-central1/publishers/google/models/gemini-2.5-pro-preview-tts:streamGenerateContent"
# 5. Error response I cannot understand nor overcome
Your active configuration is: [cloudshell-5496]
[{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}
Thanks,
L