Developers
Ship with one API key
Production cloud endpoints, gogpu Python SDK, and OpenAI-compatible MASS — start in the console.
- Cloud control plane at api.gogpu.net
- MASS OpenAI-compatible chat, vision, image, and video
- pip install gogpu — same key as the console
$# Cloud control plane
→
https://api.gogpu.net/$pip install -U gogpu
Python SDK
gogpu for the international site
Install from PyPI, set the production base URL, pass your console API key. List offers, GPU types, and instances in a few lines.
- 01Install
pip install -U gogpu - 02Point to production
BASE_URL = "https://api.gogpu.net" - 03Use your key
API_KEY from Console → Keys
from gogpu import Client, GoGPUAPIError, __version__
BASE_URL = "https://api.gogpu.net"
API_KEY = "ak-xxxxxxxx" # Console → API keys
with Client(base_url=BASE_URL, api_key=API_KEY) as client:
me = client.account.get_self_info()
print("account", me.get("username"), me.get("balance"))
offers = client.instances.list_offers(page=1, page_size=10, charging="hour")
for item in offers.get("list") or []:
gpu = (item.get("gpu_type") or {}).get("name")
price = (item.get("charging") or {}).get("hour")
print(item.get("name"), gpu, price)
gpus = client.instances.list_gpu_types(page=1, page_size=50)
print("gpu types", len(gpus.get("list") or []))
try:
vms = client.instances.list(page=1, page_size=10)
print("instances", vms.get("total"))
except GoGPUAPIError as exc:
print("instances skipped:", exc)MASS inference
Chat completions, OpenAI-style
Separate from the cloud control API. Same key pattern via X-API-Key, metered in Usage & Logs.
- Base
https://mass.gogpu.net/v1 - Auth
X-API-Key: $MASS_API_KEY - DocsAPI guide →
curl https://mass.gogpu.net/v1/chat/completions \
-H "X-API-Key: $MASS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v3",
"messages": [{"role":"user","content":"Hello"}]
}'