PDFをアップロードして質問するだけで、答えが返ってくる!Gemini File API マルチモーダル
代码预览
エディタを読み込み中…
P
提示词
Build a single HTML page that demonstrates the Gemini File API multimodal capability: a user can upload a PDF (or image) file, then type a question about the content, and the page sends the file + question to the Gemini API and displays the answer. Use a clean, modern UI with a drag-and-drop zone and a text input. Show a loading spinner during API call. Keep API key handling simple (user can paste their key or use a placeholder). Use vanilla JS, no frameworks. Include CDN for highlight.js or similar if needed. Output must be a single valid HTML file with embedded CSS and JS.
このページでは、Gemini File API を使ってマルチモーダルな質問応答を行う方法を紹介します。PDFや画像をアップロードし、その内容に関する質問をすると、AIがファイルに基づいて回答を生成します。
这个提示对您有帮助吗?
评论
评论将在审核后显示
この記事が役に立ったら投げ銭で応援
Apple Pay / Google Pay / カード (Visa/Mastercard/JCB/Amex) / Link / Alipay / WeChat Pay 対応 · Stripeで安全に決済
開発者が選ぶ最強ツール集
運営者が毎日使っているツール・ガジェット 6選