Skip to main content

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:
注意 Base URL 区别:Claude Code 使用的 Base URL 为 https://api.mountsea.ai/chat/claude,其他协议统一使用 https://api.mountsea.ai/chat

OpenAI Compatible

  • ✅ Use the official OpenAI Python/Node.js SDK directly
  • ✅ No code changes needed - just update base_url and api_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 input and instructions

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,与其他协议不同,请注意区分。

配置方法

设置环境变量即可使用:
持久化配置(添加到 ~/.bashrc 或 ~/.zshrc):

使用 Anthropic SDK 调用

Streaming:
Install:

📱 Cherry Studio 接入指南

Cherry Studio 是一款功能强大的 AI 桌面客户端,支持多种 API 格式。你可以通过配置我们的 API 在 Cherry Studio 中使用所有模型。

配置 OpenAI 兼容模式(推荐)

1

打开设置

在 Cherry Studio 中,进入 设置模型服务商 → 点击 添加
2

配置 API

填写以下信息:
3

添加模型

点击 添加模型,手动输入模型名称,例如:gpt-5.1claude-sonnet-4-6gemini-3-flash
4

开始对话

在对话界面选择对应模型,即可开始使用

配置 OpenAI Responses 模式

如果 Cherry Studio 使用 OpenAI Responses API 格式,配置方式相同:

📋 Available Endpoints

OpenAI Compatible API

OpenAI Responses API

Anthropic Compatible API (Claude Code)

Base URL: https://api.mountsea.ai/chat/claude (注意与其他 API 不同)

Gemini Native API

The Gemini Native API allows you to use the official @google/genai SDK directly. See Gemini API for details.

Explore the API Documentation

OpenAI Compatible: OpenAI Responses API: Anthropic Compatible (Claude Code): Gemini Native:
For more details, visit the full MountSea API Documentation.