Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt

Use this file to discover all available pages before exploring further.

Model ID
deepseek-ai/DeepSeek-V3.1-Terminus

API Usage

You can access DeepSeek-V3.1-Terminus via the standard Chat Completions API endpoint.
It supports text generation, reasoning tasks, and structured tool/function calling.

API Examples

Basic Chat Completion

Generate a response using the chat endpoint of DeepSeek-V3.1-Terminus.

Shell

curl --request POST \
  --url https://api.gmi-serving.com/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer *************' \
  --data '{
    "model": "deepseek-ai/DeepSeek-V3.1-Terminus",
    "messages": [
      {"role": "system", "content": "You are a helpful AI assistant"},
      {"role": "user", "content": "List 3 countries and their capitals."}
    ],
    "temperature": 0,
    "max_tokens": 500
  }'
Function Calling
curl --request POST \
  --url https://api.gmi-serving.com/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer *************' \
  --data '{
    "temperature": 0,
    "max_tokens": 100,
    "model": "deepseek-ai/DeepSeek-V3.1-Terminus",
    "tools": [
        {
            "type": "function",
            "function": {
                "name": "query_weather",
                "description": "Get the weather of a city. The user must provide a city name.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "city": {
                            "type": "string",
                            "description": "The city name, e.g. Beijing"
                        }
                    },
                    "required": ["city"]
                }
            }
        }
    ],
    "messages": [
        {
            "role": "user",
            "content": "How's the weather in Qingdao today?"
        }
    ]
}'

Python SDK Usage

import requests
import json

url = "https://api.gmi-serving.com/v1/chat/completions"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer *************"
}

payload = {
    "model": "deepseek-ai/DeepSeek-V3.1-Terminus",
    "messages": [
        {"role": "system", "content": "You are a helpful AI assistant"},
        {"role": "user", "content": "List 3 countries and their capitals."}
    ],
    "temperature": 0,
    "max_tokens": 500
}

response = requests.post(url, headers=headers, json=payload)
print(json.dumps(response.json(), indent=2))