LLM

SeaCloud LLM API is fully compatible with OpenAI API, supporting mainstream large language models. Simply switch the API endpoint and key for seamless migration.

Fully compatible with OpenAI SDK. No code logic changes needed, just update base_url and api_key.


Quick Example

Send a chat request using curl:

curl
curl https://openresty-gateway.api.seaart.ai/llm/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

Streaming Response

Add stream: true parameter for streaming responses:


Last updated