Docs/IDE Integration & API/API Reference Overview

CodePus API Reference Overview

CodePus offers an official AI gateway compatible with the OpenAI protocol. You can access it from the IDE client or any third-party program using the API Key (prefix cpk_) issued to your account.

Quick Start

  • Create an API Key: go to API Key Management and generate a key starting with cpk_.
  • Configure the Base URL: see Proxy Base URL to point your client at the CodePus gateway.
  • Make a request: follow the OpenAI-Compatible API protocol.
  • Core Docs

  • API Gateway β€” gateway address, authentication and request spec.
  • OpenAI-Compatible API β€” compatibility notes for /v1/chat/completions and more.
  • Proxy Base URL β€” set proxyBaseUrl in your IDE or third-party tools.
  • API Key Management β€” create, rotate and revoke cpk_ keys.
  • Quota & Boost β€” Credits quota, rate limits and booster strategy.
  • IDE Sign-in & Device Binding β€” device authorization and sign-in flow.
  • IDE Integration Troubleshooting β€” common error codes and fixes.
  • Authentication

    All requests must carry the HTTP header:
    Authorization: Bearer cpk_xxxxxxxxxxxxxxxx 

    Need Help?

    See IDE Integration Troubleshooting or go to Contact Support.