Quick Start
Get up and running with the LW AI API in just a few steps.
Step 1: Get an API Key
Contact support@linkwo.com to obtain an API key. See Authentication for details.
Step 2: Make Your First Request
Using cURL
curl https://openapi.linkwo.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4-pro",
"messages": [
{"role": "user", "content": "Say hello in 5 languages"}
]
}'Using Python (OpenAI SDK)
pip install openaifrom openai import OpenAI
client = OpenAI(
base_url="https://openapi.linkwo.ai/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="deepseek/deepseek-v4-pro",
messages=[
{"role": "user", "content": "Say hello in 5 languages"}
]
)
print(response.choices[0].message.content)Using Node.js (OpenAI SDK)
npm install openaiimport OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://openapi.linkwo.ai/v1',
apiKey: 'YOUR_API_KEY',
});
const response = await client.chat.completions.create({
model: 'deepseek/deepseek-v4-pro',
messages: [{ role: 'user', content: 'Say hello in 5 languages' }],
});
console.log(response.choices[0].message.content);Step 3: Try Streaming
For real-time responses, use streaming:
stream = client.chat.completions.create(
model="deepseek/deepseek-v4-pro",
messages=[{"role": "user", "content": "Write a poem about AI"}],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)Available Models
| Model | Context | Best For |
|---|---|---|
| deepseek/deepseek-v4-pro | 1M | Complex reasoning, coding, math |
| deepseek/deepseek-v4-flash | 1M | Fast responses, general tasks |
| z-ai/glm-5.1 | 200K | Chinese language, general purpose |
| z-ai/glm-5.2 | 1M | Advanced reasoning, long context |
| linkwo/fusion | — | Multi-model orchestration |
| astra | 64K | Finance and energy domain tasks |
See Model Overview for the complete list.
Next Steps
- Authentication — Detailed key management
- Streaming Response — Streaming API usage
- Chat Completions — Full API reference