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.
Security Warning: Never use API keys directly in client-side code. Always make API calls through your backend server.
Quick Example
Send a chat request using 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