Getting Youtube video summary via Gemini AI API

Hi,
You cannot provide YouTube URLs directly, and the specified mime_type value is not correct.

Given the size of a video file kindly have a look how to use the File API in order to upload the video to a temporary location which can be used with the Gemini AI.

See here: استكشاف الإمكانات البصرية باستخدام Gemini API  |  Google AI for Developers