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
production
$# 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.

  1. 01
    Installpip install -U gogpu
  2. 02
    Point to productionBASE_URL = "https://api.gogpu.net"
  3. 03
    Use your keyAPI_KEY from Console → Keys
pypi.org/project/gogpu/0.1.0 →
basic_usage.py
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.

  • Basehttps://mass.gogpu.net/v1
  • AuthX-API-Key: $MASS_API_KEY
  • DocsAPI guide →
curl
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"}]
  }'
Console

Usage, logs, and keys

Track spend and latency, rotate keys, wire Agent CLI when you need agents on GoGPU.