# SAI Marine - Ultra-Low-Cost LLM AI Gateway & Routing Platform

Vietnamese version: /llms-vi.txt

> SAI Marine (sai-marine.com) is a high-performance, ultra-low-cost, OpenAI-compatible LLM Gateway and API Routing platform. It aggregates 56 Sai-Marine models through a single endpoint (`https://sai-marine.com/v1`) with per-key rate limits (RPM/TPM set per API key), low-price models from $0.05 per 1M tokens (pay as you go), automatic failover across channels and keys, and API requests that are not logged (only token/latency metrics are recorded; Playground chat history is saved only when you use the Playground).

The platform is purpose-built for AI engineers, developers, startups, and autonomous agent workflows (Cursor IDE, Cline, Claude Code CLI, NextChat, Cherry Studio, Aider, LibreChat).

## Core API Endpoints
- Base URL: `https://sai-marine.com/v1`
- Chat Completions: `POST https://sai-marine.com/v1/chat/completions` (Full SSE Streaming + Non-Streaming)
- Embeddings: `POST https://sai-marine.com/v1/embeddings` (OpenAI 1536/3072 dims for RAG and IDE code indexing)
- Models Catalog: `GET https://sai-marine.com/v1/models` (OpenAI format model list with pricing and context windows)
- Model Details: `GET https://sai-marine.com/v1/models/{model}`

## Catalog & Top Supported Models
- [Models Library](https://sai-marine.com/models): Full library of 56 models with measured uptime (where available) and context windows that vary by model — see the Models Library — plus prompt/completion pricing and cache hit rates.
- Low-Price Models (from $0.05 per 1M tokens, pay as you go): `sm-flash-free`, `sm-chat-8b-free`, `sm-chat-free`, `sm-flash-exp-free`, `sm-chat-12b-free`, `sm-embed-multi-free`, `sm-chat-31b`, `sm-chat-2b`, `sm-chat-lite`, `sm-chat-note`, `sm-chat-swift`, `sm-flash-3`
- Chat & General: `sm-chat`, `sm-chat-72b`, `sm-chat-70b`, `sm-chat-405b`, `sm-chat-70b-base`, `sm-chat-plus`, `sm-max`, `sm-large`, `sm-swift`, `sm-rag`, `sm-chat-31b`, `sm-chat-2b`, `sm-chat-lite`, `sm-chat-note`, `sm-chat-swift`, `sm-flash-3`
- Reasoning: `sm-reason`, `sm-reason-70b`, `sm-reason-32b`, `sm-reason-full`, `sm-reason-mini`, `sm-reason-compact`, `sm-flash-think`
- Code: `sm-code`, `sm-code-32b`, `sm-code-plus`
- Flagship Tiers: `sm-pro`, `sm-fast`, `sm-flagship`, `sm-balanced`, `sm-lite`, `sm-turbo`, `sm-ultra-550b`
- Multimodal & Vision: `sm-omni`, `sm-omni-mini`, `sm-multimodal-pro`, `sm-multimodal`, `sm-flash`, `sm-flash-2`, `sm-vision-72b`, `sm-vision-large`, `sm-vision-2`
- Uncensored: `sm-uncensored-pro`, `sm-uncensored-flagship`, `sm-uncensored-reason`, `sm-uncensored-omni`, `sm-uncensored-72b`
- Long Context: `sm-long-128k`
- Embeddings: `sm-embed-small`, `sm-embed-large`, `sm-embed-multi-free`

## Pay As You Go
- Every model is billed pay as you go (plan quota first, then account balance). Low-price models start from $0.05 per 1M tokens — see the Models Library for per-model pricing.
- Welcome Bonus: Promo codes (e.g. `FREE50M`) are shown on the recharge page; each code's reward is set by the admin — check the recharge page for the current offer.
- Welcome Voucher: Promo codes (e.g. `SAIMARINE`) are shown on the recharge page; each code's reward is set by the admin — check the recharge page for the current offer.

## Subscriptions & Multi-Gateway Recharge
- [VIP Subscriptions](https://sai-marine.com/subscription): Monthly, Quarterly, Semiannual, and Annual VIP Combo packages with token/request quotas by period (see the subscription page for the current packages).
- [Deposit Balance](https://sai-marine.com/recharge): Automated 24/7 instant recharge via:
  - Vietnam Instant Bank Transfer (VietQR with automated balance top-up, usually within ~1 minute)
  - PayPal Live (International Credit/Debit Card & PayPal Balance automated instant capture)
  - Binance Crypto (USDT BEP-20 on BNB Smart Chain with manual review by admin after you submit the TxHash)
  - Yodl Pay (pay the site's VietQR with USDC/USDT from the Yodl app; the VND lands in the site's bank account and is credited automatically like any VietQR payment, usually within 1 minute)

## Developer & Agent Integration
- [Developer Documentation](https://sai-marine.com/api-docs): Complete integration guide with cURL, Python `openai`, and Node.js SDK snippets.
- [Applications Setup Guide](https://sai-marine.com/applications): One-click configurations for Cursor IDE, Cline VS Code, Claude Code CLI, NextChat, and Cherry Studio.
- [Account Pool & Cluster Status](https://sai-marine.com/account-pool): Upstream channel status page with real per-channel data (status, last measured latency, key counts, rotation mode) from the admin-configured channels, plus a live ping benchmark (run from the page). No personal account pooling.
- [Interactive Playground](https://sai-marine.com/playground): Test prompts and AI responses directly in browser.

## Security & Privacy
- [Terms & Privacy Policy](https://sai-marine.com/terms): API prompts/completions are not logged (only token/latency metrics); Playground chat history is saved only when you use the Playground. API key IP whitelisting protection.

## Model Context Protocol (MCP) & Programmatic Pages
- [MCP Server & SDK Docs](https://sai-marine.com/en/mcp): Connect Claude Desktop, Cursor, Cline, or Windsurf to SAI Marine via our remote Streamable HTTP MCP endpoint or standalone Node.js package (`sai-marine-mcp`).
- Remote MCP Endpoint (JSON-RPC 2.0): `https://sai-marine.com/mcp` (exposes `list_models`, `estimate_token_cost`, `chat_completion`)
- Standalone Node.js MCP Package: `https://sai-marine.com/public/downloads/sai-marine-mcp/`
- Model Pricing & Token Calculators: `https://sai-marine.com/en/pricing/{model}` (and `/vi/pricing/{model}`)
- Model-vs-Model Comparisons: `https://sai-marine.com/en/compare/{modelA}-vs-{modelB}`
- IDE & Workflow Integration Guides: `https://sai-marine.com/en/guides/use-{model}-in-{tool}` (`cursor`, `cline`, `roo-code`, `continue`, `n8n`, `dify`)
