The "new_message" API endpoint is designed to facilitate interaction with a Retrieval-Augmented Generation (RAG) framework, offering a sophisticated approach to generating responses by leveraging both retrieved information and generative capabilities. This endpoint primarily accepts a "prompt" as input, which serves as the query or question the user wishes to address. The RAG framework underlying this API combines the strengths of information retrieval and neural network-based generation, allowing it to pull relevant information from a vast knowledge base and then seamlessly integrate this information into coherent, contextually relevant answers.
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
Description
character_id
string
A unique identifier for the character or entity sending the message. This parameter helps in distinguishing messages between different characters within the system, especially in applications involving role-playing elements or where messages originate from various sources.
user_id
string
The unique identifier of the user who is sending or receiving the message. This parameter is crucial for associating messages with specific user accounts, enabling the tracking and retrieval of messages on a per-user basis.
content
string
The actual text of the message being sent. This parameter contains the body of the message that the sender intends to communicate to the receiver. The content can vary in length and format, depending on the application's requirements.
timestamp
UNIX Timestamp
The exact time the message was sent, represented as a UNIX timestamp or in ISO 8601 format. This parameter is essential for maintaining the chronological order of messages and can also be used for displaying messages according to the time they were sent.
sender
string
A descriptor or identifier for the sender of the message. This could be a username, email address, or any other string that uniquely identifies the sender in the context of the application. This parameter helps in recognizing the originator of the message. (use: "human")
channel
string
Specifies the communication channel through which the message was sent. Examples of channels might include "direct_message", "group_chat", "forum_post", etc. This parameter helps in categorizing messages based on their communication context and intended audience. (e.g. "web_app", "mobile", "api")
Response
{
"character_id": "alteregoappai",
"user_id": "112312412341234",
"content": "Alter Ego is a groundbreaking platform in the realm of artificial intelligence that focuses on personalization and individual data ownership. It allows users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications and enabling users to tailor their AI personalities based on personal data sources like web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. Users have complete control over what data is fed into their AI persona, ensuring authenticity and relevance. Alter Ego also offers a range of applications for monetizing AI personalities, such as paywalls, voice replication for content generation, and sponsored content integration. The platform envisions expanding its ecosystem by welcoming third-party developers to create more applications and plugins. Overall, Alter Ego empowers users to take control of their digital presence, customize interactions, and explore new avenues for engagement and monetization. ",
"timestamp": 1715086662,
"channel": "api",
"sender": "alter-ego",
"session_id": null,
"model": "default",
"base64_encoded_image": null,
"image_url": null,
"retool_content": "Alter Ego is a groundbreaking platform in the realm of artificial intelligence that focuses on personalization and individual data ownership. It allows users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications and enabling users to tailor their AI personalities based on personal data sources like web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. Users have complete control over what data is fed into their AI persona, ensuring authenticity and relevance. Alter Ego also offers a range of applications for monetizing AI personalities, such as paywalls, voice replication for content generation, and sponsored content integration. The platform envisions expanding its ecosystem by welcoming third-party developers to create more applications and plugins. Overall, Alter Ego empowers users to take control of their digital presence, customize interactions, and explore new avenues for engagement and monetization. [1]",
"sourceless_content": "Alter Ego is a groundbreaking platform in the realm of artificial intelligence that focuses on personalization and individual data ownership. It allows users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications and enabling users to tailor their AI personalities based on personal data sources like web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. Users have complete control over what data is fed into their AI persona, ensuring authenticity and relevance. Alter Ego also offers a range of applications for monetizing AI personalities, such as paywalls, voice replication for content generation, and sponsored content integration. The platform envisions expanding its ecosystem by welcoming third-party developers to create more applications and plugins. Overall, Alter Ego empowers users to take control of their digital presence, customize interactions, and explore new avenues for engagement and monetization. ",
"unaltered_content": "Alter Ego is a groundbreaking platform in the realm of artificial intelligence that focuses on personalization and individual data ownership. It allows users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications and enabling users to tailor their AI personalities based on personal data sources like web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. Users have complete control over what data is fed into their AI persona, ensuring authenticity and relevance. Alter Ego also offers a range of applications for monetizing AI personalities, such as paywalls, voice replication for content generation, and sponsored content integration. The platform envisions expanding its ecosystem by welcoming third-party developers to create more applications and plugins. Overall, Alter Ego empowers users to take control of their digital presence, customize interactions, and explore new avenues for engagement and monetization. [idref:000O7]",
"sources": [
{
"idref": "000O7",
"source_title": "What is Alter Ego AI?",
"source_type": "Web",
"source_location": "https://alter-ego-ai.gitbook.io/alter-ego-user-guide/welcome/what-is-alter-ego-ai"
}
],
"retool_sources": [
{
"idref": "000O7",
"source_title": "What is Alter Ego AI?",
"source_type": "Web",
"source_location": "https://alter-ego-ai.gitbook.io/alter-ego-user-guide/welcome/what-is-alter-ego-ai"
}
],
"language": null,
"name": "Alter Ego AI",
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": "663a25467853e2367c2596b2"
}
{
"error": "Invalid request"
}
Chat History
POST/message/chat_history
This endpoint retrieves the chat history between a specified user and a character.
This endpoint serves the purpose of providing historical chat interactions between a user and a character based on the character_id and user_id. The history will include up to the number of messages specified in num_messages. This is particularly useful for applications where understanding past interactions can enhance user experience or for auditing and monitoring purposes.
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
Description
character_id
string
The identifier for the character
user_id
string
The identifier for the user whose history is retrieved.
num_messages
integer
The number of messages to retrieve from the history.
Response
{
"response": {
"messages": [
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "给我写出alter",
"timestamp": 1712340046,
"channel": "retool",
"sender": "human",
"session_id": null,
"model": "OpenAI",
"base64_encoded_image": null,
"image_url": null,
"retool_content": null,
"sourceless_content": null,
"unaltered_content": null,
"sources": null,
"retool_sources": null,
"language": null,
"name": null,
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "\"Alter Ego是一款开创性的AI平台,让用户可以创建和互动自己的数字化人物。掌控您的数字化形象,以全新方式与观众互动,并探索增长和变现的创新机会。立即发现Alter Ego的力量!#AI #个性化 #创新\"",
"timestamp": 1712340062,
"channel": "retool",
"sender": "alter-ego",
"session_id": null,
"model": "OpenAI",
"base64_encoded_image": null,
"image_url": null,
"retool_content": "\"Alter Ego是一款开创性的AI平台,让用户可以创建和互动自己的数字化人物。掌控您的数字化形象,以全新方式与观众互动,并探索增长和变现的创新机会。立即发现Alter Ego的力量!#AI #个性化 #创新\"",
"sourceless_content": "\"Alter Ego是一款开创性的AI平台,让用户可以创建和互动自己的数字化人物。掌控您的数字化形象,以全新方式与观众互动,并探索增长和变现的创新机会。立即发现Alter Ego的力量!#AI #个性化 #创新\"",
"unaltered_content": "\"Alter Ego是一款开创性的AI平台,让用户可以创建和互动自己的数字化人物。掌控您的数字化形象,以全新方式与观众互动,并探索增长和变现的创新机会。立即发现Alter Ego的力量!#AI #个性化 #创新\"",
"sources": [
{
"idref": "000O7",
"source_title": "Token Warrant Template by Legal Nodes.docx",
"source_type": "pdf",
"source_location": ""
}
],
"retool_sources": [],
"language": null,
"name": "Alter Ego AI",
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "给我写出关于Alter Ego 智能对话API 的文档和简介",
"timestamp": 1712340204,
"channel": "retool",
"sender": "human",
"session_id": null,
"model": "OpenAI",
"base64_encoded_image": null,
"image_url": null,
"retool_content": null,
"sourceless_content": null,
"unaltered_content": null,
"sources": null,
"retool_sources": null,
"language": null,
"name": null,
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "抱歉,我无法提供有关Alter Ego智能对话API的文档和简介。如果您需要更多关于Alter Ego的信息,请访问官方网站或联系他们的客户服务团队。感谢您的理解。",
"timestamp": 1712340219,
"channel": "retool",
"sender": "alter-ego",
"session_id": null,
"model": "OpenAI",
"base64_encoded_image": null,
"image_url": null,
"retool_content": "抱歉,我无法提供有关Alter Ego智能对话API的文档和简介。如果您需要更多关于Alter Ego的信息,请访问官方网站或联系他们的客户服务团队。感谢您的理解。",
"sourceless_content": "抱歉,我无法提供有关Alter Ego智能对话API的文档和简介。如果您需要更多关于Alter Ego的信息,请访问官方网站或联系他们的客户服务团队。感谢您的理解。",
"unaltered_content": "抱歉,我无法提供有关Alter Ego智能对话API的文档和简介。如果您需要更多关于Alter Ego的信息,请访问官方网站或联系他们的客户服务团队。感谢您的理解。",
"sources": [
{
"idref": "000O7",
"source_title": "null",
"source_type": "pdf",
"source_location": ""
}
],
"retool_sources": [],
"language": null,
"name": "Alter Ego AI",
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "who are you?",
"timestamp": 1712974014,
"channel": "retool",
"sender": "human",
"session_id": null,
"model": "OpenAI",
"base64_encoded_image": null,
"image_url": null,
"retool_content": null,
"sourceless_content": null,
"unaltered_content": null,
"sources": null,
"retool_sources": null,
"language": null,
"name": null,
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "I am an Alter Ego AI chat bot designed to provide information and assistance based on the Alter Ego AI platform. If you have any questions or need help, feel free to ask!",
"timestamp": 1712974029,
"channel": "retool",
"sender": "alter-ego",
"session_id": null,
"model": "OpenAI",
"base64_encoded_image": null,
"image_url": null,
"retool_content": "I am an Alter Ego AI chat bot designed to provide information and assistance based on the Alter Ego AI platform. If you have any questions or need help, feel free to ask!",
"sourceless_content": "I am an Alter Ego AI chat bot designed to provide information and assistance based on the Alter Ego AI platform. If you have any questions or need help, feel free to ask!",
"unaltered_content": "I am an Alter Ego AI chat bot designed to provide information and assistance based on the Alter Ego AI platform. If you have any questions or need help, feel free to ask!",
"sources": [
{
"idref": "000O7",
"source_title": "Token Warrant Template by Legal Nodes.docx",
"source_type": "pdf",
"source_location": ""
}
],
"retool_sources": [],
"language": null,
"name": "Alter Ego AI",
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "快准的业务包含了什么",
"timestamp": 1713144172,
"channel": "api",
"sender": "human",
"session_id": null,
"model": "default",
"base64_encoded_image": null,
"image_url": null,
"retool_content": null,
"sourceless_content": null,
"unaltered_content": null,
"sources": null,
"retool_sources": null,
"language": null,
"name": null,
"voice_id": null,
"audio_response_url": null,
"display_intention": true,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "在不同的上下文中,\"alter\"可能有不同的含义。以下是几个可能的解释:\n\n1. **拉丁语词根**: 在法律或哲学中,\"alter\"通常指“另一个”或“变更者”,如在“alter ego”(拉丁语,意为“另一个我”)中,指的是一个人的另一个自我或身份。\n\n2. **代词**: 在英语中,“alter”有时作为古英语的遗留形式,用作单数第三人称代词,意为“他”。\n\n3. **心理学**: 在心理学中,\"ego-alter\"是一个概念,指的是一个人在进行角色扮演或对话时,会形成一个不同于自我(ego)的角色。\n\n4. **文学或虚构**: 在文学作品中,“alter ego”可以指主角内心的另一个声音或性格侧面。\n\n如果你需要更具体的信息,请提供上下文。[idref:000XXX](由于没有具体的上下文引用,此处未提供idref编号)",
"timestamp": 1713144184,
"channel": "api",
"sender": "alter-ego",
"session_id": null,
"model": "default",
"base64_encoded_image": null,
"image_url": null,
"retool_content": "在不同的上下文中,\"alter\"可能有不同的含义。以下是几个可能的解释:\n\n1. **拉丁语词根**: 在法律或哲学中,\"alter\"通常指“另一个”或“变更者”,如在“alter ego”(拉丁语,意为“另一个我”)中,指的是一个人的另一个自我或身份。\n\n2. **代词**: 在英语中,“alter”有时作为古英语的遗留形式,用作单数第三人称代词,意为“他”。\n\n3. **心理学**: 在心理学中,\"ego-alter\"是一个概念,指的是一个人在进行角色扮演或对话时,会形成一个不同于自我(ego)的角色。\n\n4. **文学或虚构**: 在文学作品中,“alter ego”可以指主角内心的另一个声音或性格侧面。\n\n如果你需要更具体的信息,请提供上下文。[idref:000XXX](由于没有具体的上下文引用,此处未提供idref编号)",
"sourceless_content": "在不同的上下文中,\"alter\"可能有不同的含义。以下是几个可能的解释:\n\n1. **拉丁语词根**: 在法律或哲学中,\"alter\"通常指“另一个”或“变更者”,如在“alter ego”(拉丁语,意为“另一个我”)中,指的是一个人的另一个自我或身份。\n\n2. **代词**: 在英语中,“alter”有时作为古英语的遗留形式,用作单数第三人称代词,意为“他”。\n\n3. **心理学**: 在心理学中,\"ego-alter\"是一个概念,指的是一个人在进行角色扮演或对话时,会形成一个不同于自我(ego)的角色。\n\n4. **文学或虚构**: 在文学作品中,“alter ego”可以指主角内心的另一个声音或性格侧面。\n\n如果你需要更具体的信息,请提供上下文。[idref:000XXX](由于没有具体的上下文引用,此处未提供idref编号)",
"unaltered_content": "在不同的上下文中,\"alter\"可能有不同的含义。以下是几个可能的解释:\n\n1. **拉丁语词根**: 在法律或哲学中,\"alter\"通常指“另一个”或“变更者”,如在“alter ego”(拉丁语,意为“另一个我”)中,指的是一个人的另一个自我或身份。\n\n2. **代词**: 在英语中,“alter”有时作为古英语的遗留形式,用作单数第三人称代词,意为“他”。\n\n3. **心理学**: 在心理学中,\"ego-alter\"是一个概念,指的是一个人在进行角色扮演或对话时,会形成一个不同于自我(ego)的角色。\n\n4. **文学或虚构**: 在文学作品中,“alter ego”可以指主角内心的另一个声音或性格侧面。\n\n如果你需要更具体的信息,请提供上下文。[idref:000XXX](由于没有具体的上下文引用,此处未提供idref编号)",
"sources": [],
"retool_sources": [],
"language": null,
"name": "Alter Ego AI",
"voice_id": null,
"audio_response_url": null,
"display_intention": true,
"intention": {
"labels": [
"下单",
"报价",
"资料查询",
"替换件"
],
"scores": [
0.3608788549900055,
0.2436898648738861,
0.15020844340324402,
0.12160155177116394
]
},
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "What is Alter Ego?",
"timestamp": 1715088754,
"channel": "retool",
"sender": "human",
"session_id": null,
"model": "default",
"base64_encoded_image": null,
"image_url": null,
"retool_content": null,
"sourceless_content": null,
"unaltered_content": null,
"sources": null,
"retool_sources": null,
"language": null,
"name": null,
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
},
{
"character_id": "alteregoappai",
"user_id": "6551de189a04285b1ff216cc",
"content": "Alter Ego is a groundbreaking advancement in the realm of artificial intelligence, focusing on personalization and individual data ownership. It enables users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications, allowing users to tailor their AI personalities based on personal data sources such as web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. The data is securely stored in the user's preferred storage options, ensuring privacy and exclusivity of access.\n\nAlter Ego's flagship product is a personalized AI personality designed for influencers, trained with their unique style and knowledge to enhance interaction and engagement with their audience. What sets Alter Ego apart is the level of control and ownership it grants to users, who decide what data to feed into their AI persona, ensuring authenticity and relevance. Additionally, Alter Ego offers a versatile apps platform for users to configure how they can monetize their AI personality, including options like paywalls, voice replication for content generation, and sponsored content integration.\n\nThe platform envisions expanding its ecosystem by opening up to third-party developers, encouraging the creation of more applications and plugins that benefit all users. Alter Ego is not just a tool for creating AI personalities; it's a comprehensive ecosystem empowering users to take control of their digital presence, customize interactions, and explore new avenues for monetization and engagement. With a focus on individuality, data ownership, and versatility, Alter Ego is set to redefine the landscape of personal AI applications. ",
"timestamp": 1715088766,
"channel": "retool",
"sender": "alter-ego",
"session_id": null,
"model": "default",
"base64_encoded_image": null,
"image_url": null,
"retool_content": "Alter Ego is a groundbreaking advancement in the realm of artificial intelligence, focusing on personalization and individual data ownership. It enables users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications, allowing users to tailor their AI personalities based on personal data sources such as web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. The data is securely stored in the user's preferred storage options, ensuring privacy and exclusivity of access.\n\nAlter Ego's flagship product is a personalized AI personality designed for influencers, trained with their unique style and knowledge to enhance interaction and engagement with their audience. What sets Alter Ego apart is the level of control and ownership it grants to users, who decide what data to feed into their AI persona, ensuring authenticity and relevance. Additionally, Alter Ego offers a versatile apps platform for users to configure how they can monetize their AI personality, including options like paywalls, voice replication for content generation, and sponsored content integration.\n\nThe platform envisions expanding its ecosystem by opening up to third-party developers, encouraging the creation of more applications and plugins that benefit all users. Alter Ego is not just a tool for creating AI personalities; it's a comprehensive ecosystem empowering users to take control of their digital presence, customize interactions, and explore new avenues for monetization and engagement. With a focus on individuality, data ownership, and versatility, Alter Ego is set to redefine the landscape of personal AI applications. [1]",
"sourceless_content": "Alter Ego is a groundbreaking advancement in the realm of artificial intelligence, focusing on personalization and individual data ownership. It enables users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications, allowing users to tailor their AI personalities based on personal data sources such as web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. The data is securely stored in the user's preferred storage options, ensuring privacy and exclusivity of access.\n\nAlter Ego's flagship product is a personalized AI personality designed for influencers, trained with their unique style and knowledge to enhance interaction and engagement with their audience. What sets Alter Ego apart is the level of control and ownership it grants to users, who decide what data to feed into their AI persona, ensuring authenticity and relevance. Additionally, Alter Ego offers a versatile apps platform for users to configure how they can monetize their AI personality, including options like paywalls, voice replication for content generation, and sponsored content integration.\n\nThe platform envisions expanding its ecosystem by opening up to third-party developers, encouraging the creation of more applications and plugins that benefit all users. Alter Ego is not just a tool for creating AI personalities; it's a comprehensive ecosystem empowering users to take control of their digital presence, customize interactions, and explore new avenues for monetization and engagement. With a focus on individuality, data ownership, and versatility, Alter Ego is set to redefine the landscape of personal AI applications. ",
"unaltered_content": "Alter Ego is a groundbreaking advancement in the realm of artificial intelligence, focusing on personalization and individual data ownership. It enables users to create digital versions of themselves that are fully owned and controlled by the user. This platform stands out by offering individual-specific applications, allowing users to tailor their AI personalities based on personal data sources such as web pages, YouTube content, podcasts, blogs, personal chats, and Instagram photos. The data is securely stored in the user's preferred storage options, ensuring privacy and exclusivity of access.\n\nAlter Ego's flagship product is a personalized AI personality designed for influencers, trained with their unique style and knowledge to enhance interaction and engagement with their audience. What sets Alter Ego apart is the level of control and ownership it grants to users, who decide what data to feed into their AI persona, ensuring authenticity and relevance. Additionally, Alter Ego offers a versatile apps platform for users to configure how they can monetize their AI personality, including options like paywalls, voice replication for content generation, and sponsored content integration.\n\nThe platform envisions expanding its ecosystem by opening up to third-party developers, encouraging the creation of more applications and plugins that benefit all users. Alter Ego is not just a tool for creating AI personalities; it's a comprehensive ecosystem empowering users to take control of their digital presence, customize interactions, and explore new avenues for monetization and engagement. With a focus on individuality, data ownership, and versatility, Alter Ego is set to redefine the landscape of personal AI applications. [idref:000O7]",
"sources": [
{
"idref": "000O7",
"source_title": "What is Alter Ego AI?",
"source_type": "Web",
"source_location": "https://alter-ego-ai.gitbook.io/alter-ego-user-guide/welcome/what-is-alter-ego-ai"
}
],
"retool_sources": [
{
"idref": "000O7",
"source_title": "What is Alter Ego AI?",
"source_type": "Web",
"source_location": "https://alter-ego-ai.gitbook.io/alter-ego-user-guide/welcome/what-is-alter-ego-ai"
}
],
"language": null,
"name": "Alter Ego AI",
"voice_id": null,
"audio_response_url": null,
"display_intention": false,
"intention": null,
"response_id": null
}
]
}
}
{
"error": "Invalid request"
}
Transcribe Audio
POST/message/transcribe_audio
The "transcribe_audio" API endpoint is a powerful tool designed to convert audio content into accurate transcripts. This endpoint is particularly useful for developers, content creators, and organizations looking to automate the transcription of spoken words from various audio formats into text. When a user uploads an audio file to this endpoint, the API processes the audio data using advanced speech recognition technology. This technology is capable of identifying spoken words within the audio, regardless of the speaker's accent or speech variations, and converting them into a written transcript.
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
Description
audio_file
string
This parameter accepts audio content encoded in Base64 format. Users need to convert their audio files into Base64-encoded strings before submission. The endpoint is equipped to handle this encoding format, by decoding it back to the original audio format, processing the audio to extract spoken words, and converting it into text. This method allows for the submission and processing of various types of audio files.
translate
boolean
This parameter specifies whether the transcribed text should be translated into another language. When set to true, the service not only transcribes the audio into text but also translates that text into the specified target language. The choice of target language can be predefined in the application settings or specified in the request.
Response
{
"translation": "Alter Ego AI is a platform that enables users to create personalized AI personalities, fully owned and controlled by the user, with a focus on individual-specific applications and data ownership.\n"
}
{
"error": "Invalid request"
}
Translate Text
POST/message/translate_text
This endpoint translates the provided text content into the target language specified by the user.
This endpoint allows users to submit text content that needs to be translated into a different language. The content parameter takes the string to be translated, and the target_language specifies the desired language using standard language codes (e.g., 'en' for English, 'es' for Spanish). This feature is useful for applications requiring dynamic content translation, such as messaging apps, international platforms, or content management systems serving multilingual audiences.
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
Description
content
string
The text content to be translated.
target_language
string
The language code into which the text should be translated.