{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opper/json-schema/opper-speech-request-schema.json",
  "title": "SpeechRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opper-audio-api-openapi.yml#/components/schemas/SpeechRequest",
  "properties": {
    "format": {
      "type": "string"
    },
    "input": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "parameters": {
      "type": "object"
    },
    "response_format": {
      "description": "Alias of format (OpenAI's name for it). If both are sent they must match. On /v3/audio/speech a value that is not an audio format (e.g. b64_json) is ignored; the compat route rejects it.",
      "type": "string"
    },
    "speed": {
      "type": "number"
    },
    "store": {
      "description": "Persist the generated audio to /v3/files and return a reusable file_id. Defaults to false; set true to store.",
      "type": "boolean"
    },
    "voice": {
      "type": "string"
    }
  },
  "required": [
    "model",
    "input"
  ],
  "type": "object"
}