API Usage Overview

getting-started / API Usage Overview

API Usage Overview

Dashboard

You can easily view your account's overall token usage in the dashboard.

At the same time, you can also view detailed usage data for each API Key, including call volume, quota management, and expiration settings—all at a glance.

API Usage

If you are using an API Key shared by someone else, you can also view its usage statistics on the API Usage page at the top of the navigation bar.

List Models

Call GET /v1/models with your CodeByAI API key for an OpenAI-compatible model list. The existing proxy base URL also supports GET /api/agent/v1/models and GET /api/agent/models.

1
curl https://www.codebyai.net/v1/models \
2
  -H "Authorization: Bearer YOUR_API_KEY"

You can also use x-api-key: YOUR_API_KEY. Listing models is free; missing, invalid, expired, or deleted keys return HTTP 401.

The response has object: "list" and a data array containing each model's id, object (model), created (Unix seconds when added to the local catalog, or 0 if unknown), and owned_by. The list follows the site's model configuration.

API Usage Overview - Documentation | Code By AI | Unified AI Coding Agents