Files
dify-docs/zh-hans/development/models-integration/replicate.mdx
2025-07-16 16:42:34 +08:00

31 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 接入 Replicate 上的开源模型
---
Dify 支持接入 Replicate 上的 [Language models](https://replicate.com/collections/language-models) 和 [Embedding models](https://replicate.com/collections/embedding-models)。Language models 对应 Dify 的推理模型Embedding models 对应 Dify 的 Embedding 模型。
具体步骤如下:
1. 你需要有 Replicate 的账号([注册地址](https://replicate.com/signin?next=/docs))。
2. 获取 API Key([获取地址](https://replicate.com/account/api-tokens))。
3. 挑选模型。在 [Language models](https://replicate.com/collections/language-models) 和 [Embedding models](https://replicate.com/collections/embedding-models) 下挑选模型。
4. 在 Dify 的 `设置 > 模型供应商 > Replicate` 中添加模型。
![](https://assets-docs.dify.ai/dify-enterprise-mintlify/zh_CN/development/models-integration/b11aa84eb58e4457b47696f077389e37.png)
API key 为第 2 步中设置的 API Key。Model Name 和 Model Version 可以在模型详情页中找到:
![](https://assets-docs.dify.ai/dify-enterprise-mintlify/zh_CN/development/models-integration/95e2ad371c82ef7ef641192f2bf1a1f8.png)
{/*
Contributing Section
DO NOT edit this section!
It will be automatically generated by the script.
*/}
---
[编辑此页面](https://github.com/langgenius/dify-docs/edit/main/zh-hans/development/models-integration/replicate.mdx) | [提交问题](https://github.com/langgenius/dify-docs/issues/new?template=docs.yml)