{
 "spec_version": 1,
 "model": "google/gemini-3.8-flash-lite-tts",
 "type": "speech",
 "input_modalities": [
  "text"
 ],
 "output_modalities": [
  "audio"
 ],
 "context_window": null,
 "max_output_tokens": null,
 "endpoint": {
  "method": "POST",
  "path": "/v1/audio/speech"
 },
 "parameters": [
  {
   "name": "model",
   "type": "string",
   "required": true,
   "description": "This model's ID."
  },
  {
   "name": "input",
   "type": "string",
   "required": true,
   "description": "The text to read."
  },
  {
   "name": "voice",
   "type": "string",
   "required": true,
   "description": "One of this model's voices (see the Speech guide)."
  },
  {
   "name": "response_format",
   "type": "string",
   "enum": [
    "mp3",
    "wav",
    "opus",
    "aac",
    "flac",
    "pcm",
    "url"
   ],
   "description": "Audio format; `url` returns a link instead of the audio."
  },
  {
   "name": "speed",
   "type": "number",
   "minimum": 0.25,
   "maximum": 4,
   "default": 1,
   "description": "Pace, on models that support it."
  },
  {
   "name": "instructions",
   "type": "string",
   "description": "Tone notes such as \"calm, slow\", on models that support them."
  }
 ],
 "response": {
  "fields": [
   {
    "name": "(body)",
    "type": "binary",
    "description": "The audio file."
   }
  ],
  "example": null
 },
 "examples": [
  {
   "title": "Basic",
   "request": {
    "model": "google/gemini-3.8-flash-lite-tts",
    "input": "Welcome aboard.",
    "voice": "alloy",
    "response_format": "mp3"
   }
  }
 ],
 "input_schema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": [
   "model",
   "input",
   "voice"
  ],
  "properties": {
   "model": {
    "type": "string",
    "description": "This model's ID."
   },
   "input": {
    "type": "string",
    "description": "The text to read."
   },
   "voice": {
    "type": "string",
    "description": "One of this model's voices (see the Speech guide)."
   },
   "response_format": {
    "type": "string",
    "description": "Audio format; `url` returns a link instead of the audio.",
    "enum": [
     "mp3",
     "wav",
     "opus",
     "aac",
     "flac",
     "pcm",
     "url"
    ]
   },
   "speed": {
    "type": "number",
    "description": "Pace, on models that support it.",
    "default": 1,
    "minimum": 0.25,
    "maximum": 4
   },
   "instructions": {
    "type": "string",
    "description": "Tone notes such as \"calm, slow\", on models that support them."
   }
  }
 }
}
