Introduction to Chat
Welcome to the Chat service documentation! This service provides a multi-protocol AI API gateway, supporting OpenAI Compatible API, OpenAI Responses API, Anthropic (Claude) Compatible API, and Google Gemini Native API. You can use official SDKs or any compatible client (such as Cherry Studio, Claude Code, Cursor, etc.) to access our powerful language models.🌟 Key Features
Multi-Protocol Support
Our Chat API supports multiple API formats to meet different needs:OpenAI Compatible
- ✅ Use the official OpenAI Python/Node.js SDK directly
- ✅ No code changes needed - just update
base_urlandapi_key - ✅ Full support for streaming responses
- ✅ Support for Function Calling / Tools
- ✅ Support for JSON Mode and structured outputs
OpenAI Responses API
- ✅ Support the new OpenAI Responses API format (
/v1/responses) - ✅ Compatible with Cherry Studio and other clients using Responses API
- ✅ Simplified input format with
inputandinstructions
Anthropic (Claude Code) Compatible
- ✅ Use Claude Code CLI directly with our service
- ✅ Compatible with Anthropic Python/TypeScript SDK
- ✅ Full support for streaming, tools, and system prompts
- ✅ Access Claude models (claude-4.5, claude-opus-4-6, claude-sonnet-4-6, etc.)
Supported Models
We provide access to various high-quality language models:🚀 Quick Start
Using OpenAI Python SDK
Using OpenAI Node.js SDK
Streaming Responses
Using cURL
🤖 Claude Code 接入指南
Claude Code 是 Anthropic 官方的 AI 编程 CLI 工具。通过配置我们的 API,你可以直接使用 Claude Code 进行 AI 辅助编程。Claude Code 使用 Anthropic Messages API 格式,Base URL 为
https://api.mountsea.ai/chat/claude,与其他协议不同,请注意区分。配置方法
设置环境变量即可使用:- macOS / Linux
- Windows (PowerShell)
- Windows (CMD)
使用 Anthropic SDK 调用
- Python
- Node.js
- cURL
📱 Cherry Studio 接入指南
Cherry Studio 是一款功能强大的 AI 桌面客户端,支持多种 API 格式。你可以通过配置我们的 API 在 Cherry Studio 中使用所有模型。配置 OpenAI 兼容模式(推荐)
1
打开设置
在 Cherry Studio 中,进入 设置 → 模型服务商 → 点击 添加
2
配置 API
填写以下信息:
3
添加模型
点击 添加模型,手动输入模型名称,例如:
gpt-5.1、claude-sonnet-4-6、gemini-3-flash 等4
开始对话
在对话界面选择对应模型,即可开始使用
配置 OpenAI Responses 模式
如果 Cherry Studio 使用 OpenAI Responses API 格式,配置方式相同:📋 Available Endpoints
OpenAI Compatible API
OpenAI Responses API
Anthropic Compatible API (Claude Code)
Gemini Native API
Explore the API Documentation
OpenAI Compatible:- Chat Completions - Create chat completions
- List Models - Get available models
- Get Model - Get specific model info
- Responses API - Create responses using OpenAI Responses format
- Claude Messages API - Use Claude Code or Anthropic SDK
- Gemini API - Use native Google Gemini SDK
For more details, visit the full MountSea API Documentation.