Skip to main content

Example Usage

from openrouter.components import InputModality

# Open enum: unrecognized values are captured as UnrecognizedStr
value: InputModality = "text"

Values

This is an open enum. Unrecognized values will not fail type checks.
  • "text"
  • "image"
  • "file"
  • "audio"
  • "video"