← Docs
OpenAI SDK integration
OpenAI-compatible: change base_url and api_key. Works with popular OpenAI SDKs.
One-click OpenAI SDK config
Config has the base URL pre-filled. Once you sign in, your real API key is auto-inlined.
Download OpenAI SDK configSteps
- 1Install the SDK if you haven't (Python: pip install openai, Node: npm i openai).
- 2Initialize the client with SeaLink's base_url and your SeaLink key.
- 3Call chat.completions.create with any SeaLink model ID.
Configuration
Python
from openai import OpenAIclient = OpenAI(base_url="https://api.sealink.asia/v1",api_key="<your-sealink-key>",)resp = client.chat.completions.create(model="claude-sonnet-4-6",messages=[{"role": "user", "content": "Hi"}],)print(resp.choices[0].message.content)
Having trouble? See other guides · support@sealink.asia