GlobalAiOpc
OpenAI Completions API
OpenAI Chat Completions-compatible text generation API. Currently supports deepseek-v4-flash and glm-5.2.
baseUrl
http://apillm.globalaiopc.com/gw_llm_powerThis endpoint is compatible with the OpenAI Chat Completions request and response format, so it can be used with OpenAI SDKs or compatible clients.
- OpenAI Chat Completions reference: https://platform.openai.com/docs/api-reference/chat/create
Authentication
Get KeyUse the
Authorization header for authentication.Required headers:
cURL
Authorization: Bearer {{YOUR_API_KEY}}
Content-Type: application/json
Supported Models
Models are grouped by series below:
DeepSeek
| Model | Image Analysis | Video Analysis | Notes |
|---|---|---|---|
deepseek-v4-flash | Not supported | Not supported | Suitable for text chat, generation, summarization, rewriting, and coding assistance |
Zhipu GLM
| Model | Image Analysis | Video Analysis | Notes |
|---|---|---|---|
glm-5.2 | Not supported | Not supported | Suitable for text chat, generation, summarization, rewriting, and coding assistance |
Doubao
No available models yet. Models will be added here after launch.
Request Parameters
modelstringrequiredModel name to use. Currently set this to
deepseek-v4-flash or glm-5.2.messagesarrayrequiredConversation message array. Each message object usually contains
role and content.temperaturenumberSampling temperature to control output randomness. Recommended range is 0 to 2.
top_pnumberNucleus sampling parameter. It is recommended to tune either
temperature or top_p, not both.streambooleanWhether to enable streaming responses. When set to
true, the response is returned as SSE and ends with data: [DONE].max_completion_tokensintegerMaximum output token count.
stopstring/arrayStop sequence(s). Can be a string or an array.
Messages Array Structure
rolestringrequiredMessage role. Supported values:
system, user, assistant.contentstringrequiredMessage content. The currently supported models support plain text only and do not support multimodal arrays for image or video analysis.
Response
Returns an OpenAI-compatible response format.
idstringUnique identifier for the chat request.
objectstringObject type, usually
chat.completion.createdintegerResponse creation timestamp.
modelstringActual model name used.
choices[].message.rolestringModel response role, usually
assistant.choices[].message.contentstringGenerated text content.
usage.prompt_tokensintegerInput token count.
usage.completion_tokensintegerOutput token count.
usage.total_tokensintegerTotal token count.
Notes
- The request URL is
http://apillm.globalaiopc.com/gw_llm_power/v1/chat/completions - Pass the API key using the
Authorizationheader - The currently supported models do not support image analysis or video analysis. Send plain text messages only
- Streaming responses use SSE and end with
data: [DONE]
