Developer documentation
SYC API quickstart
Use SYC API with OpenAI-compatible SDKs and tools. Your account-specific endpoint and live key are shown inside the customer portal.
1. Create an API key
Open the customer portal, create a new API key, and keep it private. API keys should only be used from trusted server-side code.
Environment.env
SYC_API_KEY=sk-your-syc-api-key
SYC_API_ENDPOINT=provided-in-portal
Authentication
Send your API key in the Authorization header.
HTTPBearer token
Authorization: Bearer YOUR_SYC_API_KEY
Examples
PythonOpenAI SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_SYC_API_KEY"
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Write a haiku about APIs"}]
)
print(response.choices[0].message.content)
Node.jsOpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_SYC_API_KEY",
});
const response = await client.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Hello from SYC API" }],
});
console.log(response.choices[0].message.content);
cURLChat completions
curl YOUR_SYC_API_ENDPOINT/chat/completions \
-H "Authorization: Bearer YOUR_SYC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{"role": "user", "content": "Hello from SYC API"}
]
}'
Supported models
Supported models may change as capacity and provider availability change. Check the customer portal for the current catalog before production use.
| Model | Use case | Status |
|---|---|---|
GPT family | Chat, coding, automation, product features | Available |
Claude family | Writing, reasoning, code review, analysis | Available |
Gemini family | Long-context and fast application workflows | Available |
DeepSeek / GLM / Kimi / MiniMax | General chat, code, multilingual, and automation tasks | Available |
Error guide
| Code | Meaning | What to check |
|---|---|---|
| 401 | Invalid API key | Check the Authorization header and key status. |
| 402 | Insufficient credits | Add prepaid credits before retrying. |
| 429 | Rate limit reached | Reduce concurrency or upgrade limits. |
| 500/502 | Temporary service issue | Retry with backoff and check the status page. |
Billing
SYC API uses prepaid credits for API usage. Customers add credits first, reserve a budget when creating a key, and can request refunds for unused credits within the published refund window.