ML Kit GenAI API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
机器学习套件的生成式 AI API 利用 Gemini Nano 的强大功能,通过简化的更高级别接口,为常见任务提供开箱即用的性能。这些 API 基于 Android 系统服务 AICore 构建,可在设备端执行 AI 基础模型(例如 Gemini Nano),通过在本地处理数据来增强应用功能并提升用户隐私保护水平。了解详情。
ML Kit 的生成式 AI API 支持以下功能:
- 总结:以项目符号列表的形式总结文章或对话。
- 校对:校对简短的聊天消息。
- 重写:以不同语气或风格重写简短的聊天消息。
- 图片说明:生成指定图片的简短说明。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# ML Kit GenAI APIs\n\nML Kit's GenAI APIs harness the power of Gemini Nano to deliver out-of-the-box\nperformance for common tasks through a simplified, high-level interface. Built\non AICore, an Android system service, these APIs enable on-device execution of\nAI foundation models like Gemini Nano, enhancing app functionality and user\nprivacy by keeping data processing local. [Learn more](https://developers.google.com/ml-kit/genai).\n\nML Kit's GenAI APIs support the following features:\n\n- [**Summarization**](https://developers.google.com/ml-kit/genai/summarization/android): Summarize articles or conversations as a bulleted list.\n- [**Proofreading**](https://developers.google.com/ml-kit/genai/proofreading/android): Proofread short chat messages.\n- [**Rewrite**](https://developers.google.com/ml-kit/genai/rewriting/android): Rewrite short chat messages in different tones or styles.\n- [**Image description**](https://developers.google.com/ml-kit/genai/image-description/android): Generate a short description of a given image."]]