Docs
Cloudflare
Railway
CodeRabbit
WorkOS
Clerk
AG Grid
SerpAPI
OpenRouter
Netlify
Electric
Sentry
Unkey
Prisma
Cloudflare
Railway
CodeRabbit
WorkOS
Clerk
AG Grid
SerpAPI
OpenRouter
Netlify
Electric
Sentry
Unkey
Prisma
Class References
Function References
Interface References
Type Alias References
Variable References
Type Alias References

Modality

Type Alias: Modality

ts
type Modality = "text" | "image" | "audio" | "video" | "document";
type Modality = "text" | "image" | "audio" | "video" | "document";

Defined in: packages/ai/src/types.ts:173

Supported input modality types for multimodal content.

  • 'text': Plain text content
  • 'image': Image content (base64 or URL)
  • 'audio': Audio content (base64 or URL)
  • 'video': Video content (base64 or URL)
  • 'document': Document content like PDFs (base64 or URL)