stock-media
何时使用
用户明确要求从 Pexels、Pixabay、素材网站或公开素材库找一段视频/图片,或要求补充 b-roll/背景素材且没有指定必须由生成模型创作时使用。
参数说明
核心参数是 query、provider、media_type、orientation、limit。默认优先 media_type: "video",provider: "auto",让本地运行时从可用 API key 中选择。若用户点名 Pexels 或 Pixabay,使用对应 fetch_pexels_media / fetch_pixabay_media。
典型 plan 片段
{"id":"step_1","function":"gemia.video.stock_media.fetch_stock_media","args":{"query":"city night street b-roll","provider":"auto","media_type":"video","limit":6},"input":"$input","output":"$step_1"}
边界 / fallback
公开视频素材只能作为可替换 b-roll、背景或参考,不要伪装成用户真实素材。找不到素材时返回 ask 或换 query,不要调用 generative 冒充真实图库素材。
查看许可证全文(MIT)
MIT License
Copyright (c) 2026 Gemia Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.