File: ai-invalid-data-content-error.md | Updated: 11/15/2025
Menu
v5 (Latest)
AI SDK 5.x
Model Context Protocol (MCP) Tools
AI_TooManyEmbeddingValuesForCallError
AI_UnsupportedFunctionalityError
Copy markdown
========================================================================================================================================
This error occurs when the data content provided in a multi-modal message part is invalid. Check out the prompt examples for multi-modal messages .
content: The invalid content valuemessage: The error message describing the expected and received content typesYou can check if an error is an instance of AI_InvalidDataContentError using:
import { InvalidDataContentError } from 'ai';
if (InvalidDataContentError.isInstance(error)) { // Handle the error}
On this page
Deploy and Scale AI Apps with Vercel.
Vercel delivers the infrastructure and developer experience you need to ship reliable AI-powered applications at scale.
Trusted by industry leaders: