Bamboo Relay
AI model APIAudio

Native Gemini format

Gemini audio generation. Supports models such as gemini-2.5-flash-preview-tts.

POST
/v1beta/models/{model}:generateContent

Authorization

BearerAuth
AuthorizationBearer <token>

Authenticate with a Bearer token: Authorization: Bearer sk-xxxxxx.

In: header

Path Parameters

model*string

Model name

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1beta/models/string:generateContent" \  -H "Content-Type: application/json" \  -d '{    "contents": [      {}    ],    "generationConfig": {      "responseModalities": [        "string"      ],      "speechConfig": {        "voiceConfig": {          "prebuiltVoiceConfig": {            "voiceName": "string"          }        }      }    }  }'
{  "candidates": [    {      "content": {        "role": "string",        "parts": [          {}        ]      },      "finishReason": "string",      "safetyRatings": [        {}      ]    }  ],  "usageMetadata": {    "promptTokenCount": 0,    "candidatesTokenCount": 0,    "totalTokenCount": 0  }}