API

General Compute API reference

The General Compute API is OpenAI-compatible. If you already use the OpenAI Python or Node client, point its base URL at General Compute and the rest of your code keeps working.

Endpoint

  • Base URL: https://api.generalcompute.com/v1
  • Authentication: Authorization: Bearer <api-key>
  • Protocol: HTTPS, JSON request and response bodies
  • Default model: gpt-oss-120b

Example request

curl https://api.generalcompute.com/v1/chat/completions \
  -H "Authorization: Bearer $GC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-oss-120b",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

More

ModeHumanAgent
General Compute API Reference | General Compute