99.9% 的正常运行时间和低于 100 毫秒的响应时间
OAuth 2.0、API 密钥和内置速率限制
全球低延迟的分布式端点
具有全面 SDK 的 RESTful 设计
# Install the SDK
npm install @gemora/sdk
# Initialize the client
import { Gemora } from '@gemora/sdk';
import { useTranslation } from '@/hooks/useTranslation';
const gemora = new Gemora({
apiKey: process.env.GEMORA_API_KEY
});
# Send a chat message
const response = await gemora.chat.completions.create({
messages: [
{ role: 'user', content: 'Hello, Gemora!' }
],
userId: 'user_123',
contextEnabled: true
});
console.log(response.message);适用于所有 Gemora 功能的综合 REST API
/v1/chat/completions根据上下文和记忆生成 AI 响应Chat/v1/conversations列出用户的所有对话Conversations/v1/memory/store将信息存储在用户内存中Memory/v1/memory/search搜索存储的记忆Memory/v1/insights/generate从用户数据中生成见解Insights/v1/profile获取结构化的用户档案Profile适用于您最喜欢的编程语言的本机库