Authentication
SeaCloud API uses API keys to authenticate requests. All API requests must include your API Key in the Authorization header.
Get Your API Key
How to Create an API Key
Visit Settings
Go to your Settings page.
Using Your API Key
Include your API key in the Authorization header of every API request:
curl https://openresty-gateway.api.seaart.ai/llm/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hello!"}]
}'Important: Keep your API Key secure. Never expose it in client-side code or public repositories. Use environment variables to store your API Key.
API Key Security
Best Practices
Use Environment Variables: Store your API Key in environment variables, never hardcode it in source code
Server-Side Only: Always make API calls from your backend, never directly from browsers or mobile apps
Regular Rotation: Regularly rotate your API Keys, especially if you suspect they may have been compromised
Least Privilege: Create separate API Keys for different applications for easier management and revocation
If you believe your API Key has been compromised, immediately revoke it in your Settings and create a new one.
Last updated