API Endpoints All LW AI API requests are made to https://openapi.linkwo.ai. The API is fully OpenAI-compatible, so you can use any OpenAI SDK by changing the base URL.
Base URL
Region Base URL Global (single endpoint) https://openapi.linkwo.ai/v1
openapi.linkwo.ai uses GeoDNS to route users to the nearest region: American users to Hillsboro, and other international users to Singapore. All regions share the same data and API key.
Available Endpoints
Chat & Text Generation
Endpoint Method Description /v1/chat/completionsPOST Generate chat completions /v1/completionsPOST Text completions (legacy)
Embeddings
Endpoint Method Description /v1/embeddingsPOST Generate text embeddings
Models
Endpoint Method Description /v1/modelsGET List available models /v1/models/{model}GET Get model details
Batch
Endpoint Method Description /v1/batchesPOST Create a batch /v1/batches/{batch_id}GET Get batch status /v1/batches/{batch_id}/cancelPOST Cancel a batch
Files
Endpoint Method Description /v1/filesGET List files /v1/filesPOST Upload a file /v1/files/{file_id}GET Get file info /v1/files/{file_id}/contentGET Download file content /v1/files/{file_id}DELETE Delete a file
Responses
Endpoint Method Description /v1/responsesPOST Create a response (agentic)
Listing Models
curl https://openapi.linkwo.ai/v1/models \
-H "Authorization: Bearer YOUR_API_KEY" Copy
Response:
{
"object" : "list" ,
"data" : [
{ "id" : "deepseek/deepseek-v4-pro" , "object" : "model" , "created" : 1719000000 , "owned_by" : "linkwo" },
{ "id" : "deepseek/deepseek-v4-flash" , "object" : "model" , "created" : 1719000000 , "owned_by" : "linkwo" },
{ "id" : "z-ai/glm-5.1" , "object" : "model" , "created" : 1719000000 , "owned_by" : "linkwo" },
{ "id" : "z-ai/glm-5.2" , "object" : "model" , "created" : 1719000000 , "owned_by" : "linkwo" },
{ "id" : "linkwo/fusion" , "object" : "model" , "created" : 1719000000 , "owned_by" : "linkwo" },
{ "id" : "astra" , "object" : "model" , "created" : 1719000000 , "owned_by" : "linkwo" }
]
} Copy
SDK Configuration
Python
from openai import OpenAI
client = OpenAI(
base_url = "https://openapi.linkwo.ai/v1" ,
api_key = "YOUR_API_KEY"
) Copy
Node.js
import OpenAI from 'openai' ;
const client = new OpenAI ({
baseURL: 'https://openapi.linkwo.ai/v1' ,
apiKey: 'YOUR_API_KEY' ,
}); Copy