Documentation & Setup Guides
Twelve short guides: one base URL, one API key, and the same setup pattern in every tool. Full API reference lives on the API Docs page.
Quick Start
GeneralCall the gateway in under a minute: one base URL, one API key, any model.
- Create an API key at API Keys — keys start with sk-sm- and are shown in full only once.
- Send a chat request to the chat completions endpoint with the Authorization: Bearer header.
- List available models at the models endpoint and pick a model id from the Models page.
- Streaming works with server-sent events (SSE): add "stream": true to the request body.
- Token usage is tracked in real time on the Usage page; costs are billed per token.
curl https://sai-marine.com/v1/chat/completions \
-H "Authorization: Bearer sk-sm-your-api-key" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek-v4.1-flash:free", "messages": [{"role": "user", "content": "Hello!"}]}' 9Router
RoutersSend 9Router traffic through the gateway instead of configuring each provider separately.
- Open 9Router provider settings and add a new OpenAI-compatible provider.
- Set the base URL to the gateway base URL and paste your sk-sm- API key.
- Choose a model id from the Models page as the default model.
- Save and send a test prompt — usage shows up on the Usage page like any API call.
Base URL: https://sai-marine.com/v1
API Key: sk-sm-your-api-key
Model: deepseek-v4.1-flash:free Zcode
AI IDEsUse gateway models inside the Zcode editor.
- Open Zcode settings and find the AI provider / model section.
- Add a custom OpenAI-compatible provider with the gateway base URL.
- Paste your sk-sm- API key and pick a model id from the Models page.
- Restart the editor if the new provider does not appear, then chat from the AI panel.
Base URL: https://sai-marine.com/v1
API Key: sk-sm-your-api-key
Model: deepseek-v4.1-flash:free Cursor
AI IDEsPoint Cursor at the gateway to chat and edit code with any model.
- Open Cursor Settings, go to Models, and enable the OpenAI API key option.
- Paste your sk-sm- API key and set the OpenAI base URL to the gateway base URL.
- Add the model id from the Models page in the model list and verify it.
- Use Ctrl+K for inline edits or Ctrl+L to chat with the whole codebase.
{
"openai.baseURL": "https://sai-marine.com/v1",
"openai.apiKey": "sk-sm-your-api-key",
"cursor.model": "deepseek-v4.1-flash:free"
} Void
AI IDEsConnect the Void editor to the gateway as a custom provider.
- Open Void settings and add a custom OpenAI-compatible provider.
- Enter the gateway base URL and your sk-sm- API key.
- Select a model id from the Models page as the chat model.
- Open the agent panel and ask it to read or edit files in your project.
Base URL: https://sai-marine.com/v1
API Key: sk-sm-your-api-key
Model: deepseek-v4.1-flash:free Claude Code
CLIRun the Claude Code terminal agent against the gateway.
- Install Claude Code, then set the base URL and API key as environment variables.
- Start the agent in your project folder with the claude command.
- Pick a model id from the Models page when the agent asks which model to use.
- Every prompt is billed like a normal API call and appears on the Usage page.
export ANTHROPIC_BASE_URL="https://sai-marine.com/v1"
export ANTHROPIC_API_KEY="sk-sm-your-api-key"
claude Codex
CLIUse the Codex CLI coding agent with gateway models.
- Install the Codex CLI and open its config file.
- Add a custom provider with the gateway base URL and your sk-sm- API key.
- Set the default model to a model id from the Models page.
- Run codex in a project folder and describe the change you want.
Base URL: https://sai-marine.com/v1
API Key: sk-sm-your-api-key
Model: deepseek-v4.1-flash:free OpenCode
CLIConfigure the OpenCode terminal agent with the gateway provider.
- Install OpenCode and create its config file if you do not have one yet.
- Add a provider entry pointing at the gateway base URL with your API key.
- Choose a model id from the Models page as the default model.
- Launch opencode and chat — files, shell commands and edits run in your terminal.
{
"provider": {
"sai-marine": {
"npm": "@ai-sdk/openai-compatible",
"baseURL": "https://sai-marine.com/v1",
"apiKey": "sk-sm-your-api-key",
"models": { "deepseek-v4.1-flash:free": {} }
}
}
} Cline
AI AgentsLet the Cline agent in VS Code edit files and run commands via the gateway.
- Install the Cline extension in VS Code and open its settings.
- Choose the OpenAI-compatible provider and enter the gateway base URL.
- Paste your sk-sm- API key and a model id from the Models page.
- Describe a task in plain language; approve each file edit and terminal command.
{
"apiProvider": "openai-compatible",
"openAiBaseUrl": "https://sai-marine.com/v1",
"openAiApiKey": "sk-sm-your-api-key",
"openAiModelId": "deepseek-v4.1-flash:free"
} Cherry Studio
AI AgentsChat with gateway models from the Cherry Studio desktop app.
- Open Cherry Studio settings and add a new provider.
- Select the OpenAI-compatible provider type.
- Enter the gateway base URL, your sk-sm- API key, and a model id.
- Start a new chat thread — attachments and web search work as usual.
Provider: OpenAI Compatible
Base URL: https://sai-marine.com/v1
API Key: sk-sm-your-api-key
Model: deepseek-v4.1-flash:free DeepSeek Harness
AI AgentsRun agent workflows through the harness with the gateway as the backend.
- Open the harness provider or model configuration.
- Add an OpenAI-compatible endpoint with the gateway base URL.
- Paste your sk-sm- API key and choose a model id from the Models page.
- Run a workflow and check token usage on the Usage page afterwards.
Base URL: https://sai-marine.com/v1
API Key: sk-sm-your-api-key
Model: deepseek-v4.1-flash:free Hermes Agent
AI AgentsConnect the Hermes agent framework to the gateway API.
- Open the agent configuration and select a custom OpenAI-compatible provider.
- Enter the gateway base URL and your sk-sm- API key.
- Set the default model to a model id from the Models page.
- Start the agent and give it a task; all calls are billed per token as usual.
Base URL: https://sai-marine.com/v1
API Key: sk-sm-your-api-key
Model: deepseek-v4.1-flash:free