API文档

使用 Gemora API 构建

强大、灵活的 API,可将 AI 智能集成到您的应用程序中

快速可靠

99.9% 的正常运行时间和低于 100 毫秒的响应时间

默认安全

OAuth 2.0、API 密钥和内置速率限制

全球CDN

全球低延迟的分布式端点

开发者友好

具有全面 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);

API端点

适用于所有 Gemora 功能的综合 REST API

POST/v1/chat/completions根据上下文和记忆生成 AI 响应Chat
GET/v1/conversations列出用户的所有对话Conversations
POST/v1/memory/store将信息存储在用户内存中Memory
GET/v1/memory/search搜索存储的记忆Memory
POST/v1/insights/generate从用户数据中生成见解Insights
GET/v1/profile获取结构化的用户档案Profile

准备好构建了吗?

立即获取 API 密钥并开始将 Gemora 集成到您的应用程序中

获取API密钥