diff --git a/en/application/developing-with-apis.md b/en/application/developing-with-apis.md index e9b3561..1a0eb91 100644 --- a/en/application/developing-with-apis.md +++ b/en/application/developing-with-apis.md @@ -34,7 +34,7 @@ You can find the API documentation and example requests for this application in For example, here is a sample call an API for text generation: ``` -curl --location --request POST 'https://api.dify.dev/v1/completion-messages' \ +curl --location --request POST 'https://api.dify.ai/v1/completion-messages' \ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{ @@ -56,7 +56,7 @@ You can find the API documentation and example requests for this application in For example, here is a sample call an API for chat-messages: ``` -curl --location --request POST 'https://api.dify.dev/v1/chat-messages' \ +curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{ diff --git a/zh_CN/application/developing-with-apis.md b/zh_CN/application/developing-with-apis.md index 4f8c39f..30ad96f 100644 --- a/zh_CN/application/developing-with-apis.md +++ b/zh_CN/application/developing-with-apis.md @@ -34,7 +34,7 @@ Dify 基于“**后端即服务**”理念为所有应用提供了 API,为 AI 例如,创建文本补全信息的 API 的调用示例: ``` -curl --location --request POST 'https://api.dify.dev/v1/completion-messages' \ +curl --location --request POST 'https://api.dify.ai/v1/completion-messages' \ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{ @@ -55,7 +55,7 @@ curl --location --request POST 'https://api.dify.dev/v1/completion-messages' \ 例如,发送对话信息的 API的调用示例: ``` -curl --location --request POST 'https://api.dify.dev/v1/chat-messages' \ +curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{