Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

models.InputText

const value: models.InputText = {
  text: "Hello, how can I help you?",
  type: "input_text",
};

models.InputMessageItemContentInputImage

const value: models.InputMessageItemContentInputImage = {
  detail: "auto",
  type: "input_image",
};

models.InputFile

const value: models.InputFile = {
  type: "input_file",
};

models.InputAudio

const value: models.InputAudio = {
  inputAudio: {
    data: "SGVsbG8gV29ybGQ=",
    format: "mp3",
  },
  type: "input_audio",
};

models.InputVideo

const value: models.InputVideo = {
  type: "input_video",
  videoUrl: "https://example.com/video.mp4",
};