SEA-LION API
The SEA-LION API provides a quick and simple interface to our various SEA-LION models for text generation, translation, summarization, and more.
Usage of the SEA-LION API is subject to our Terms of Use and Privacy Policy
Getting an API Key
To get started with SEA-LION API, you'll need to first create an API key via our SEA-LION Playground:
Sign in to SEA-LION Playground via your Google account
Navigate to our API Key Manager page by clicking on
API Keyon the side menu, orLaunch Key Manageron the home dashboard

Click on the "Create New Trial API Key" button, and enter a name for your API key.

An API key will be generated for you after you click "Create". Make sure to copy or download the generated key and keep it in a safe place since you won't be able to view it again.

Only 1 API key is allowed to be created per user.
How To Use Your API Key
Step 1. Find the Available Models
To find the available SEA-LION models for your API key, use the following curl command.
Replace YOUR_API_KEY with your generated API key.
Step 2: Call the API
SEA-LION's API endpoints for chat are compatible with OpenAI's API and libraries.
Calling our Instruct models
Agentic Tool Use
The SEA-LION v4.5 model supports function calling, enabling agentic workflows where the model autonomously decides which tools to call, processes results, and continues until the task is complete.
Calling our Reasoning models
Our v3.5 models offers dynamic reasoning capabilities, and defaults to reasoning with thinking_mode="on" passed to the chat template. To use non-thinking mode ie. standard generations, pass thinking_mode="off" to the chat template instead.
If you are not observing any changes in response when toggling thinking_mode on/off, your API responses might have been cached.
You can disable cache temporarily for your testing by setting the no-cache flag to true
Calling our Guard model
Our safety model, aisingapore/SEA-Guard, can be used to evaluate potentially harmful content. It returns a binary classification of safe and unsafe, and supports 3 flexible input modes, depending on your use case.
Note: The safety model does not support system prompts or multi-turn conversations.
Mode 1: Prompt-only Classification
Mode 2: Prompt + Response Classification
Mode 3: Response-only Classification
Calling our Embedding models
SEA-LION-ModernBERT-Embedding-600M produces 1024-dimensional embeddings and supports 11 Southeast Asian languages with an 8k token context window.
Sentence Similarity
Embeddings can be used to measure semantic similarity between sentences using cosine similarity.
Sentences with similar meaning (e.g. food-related) score higher (≈0.95) than unrelated ones (≈0.63–0.65).
Rate Limits
Limits help us mitigate misuse and manage API capacity and help ensure that everyone has fair access to the API.
SEA-LION API usage frequency will be subject to rate limits applied on requests per minute (RPM).
As of 04 Jun 2026, our rate limits is set to 10 requests per minute per user.
If you have any questions or want to speak about getting a rate limit increase, reach out to sealion@aisingapore.org.
Last updated