Agent SwarmAgent Swarm

Pricing

Retrieve model pricing data used for cost tracking and budget enforcement across agents

GET
/api/models-catalog

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Response Body

application/json

curl -X GET "http://localhost:3013/api/models-catalog"
{
  "source": "live",
  "updatedAt": 0,
  "providers": {
    "property1": {
      "id": "string",
      "name": "string",
      "models": {
        "property1": {
          "id": "string",
          "name": "string",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 0
          },
          "reasoning": true,
          "reasoning_options": [
            {
              "type": "string",
              "values": [
                "string"
              ]
            }
          ]
        },
        "property2": {
          "id": "string",
          "name": "string",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 0
          },
          "reasoning": true,
          "reasoning_options": [
            {
              "type": "string",
              "values": [
                "string"
              ]
            }
          ]
        }
      }
    },
    "property2": {
      "id": "string",
      "name": "string",
      "models": {
        "property1": {
          "id": "string",
          "name": "string",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 0
          },
          "reasoning": true,
          "reasoning_options": [
            {
              "type": "string",
              "values": [
                "string"
              ]
            }
          ]
        },
        "property2": {
          "id": "string",
          "name": "string",
          "cost": {
            "input": 0,
            "output": 0
          },
          "limit": {
            "context": 0
          },
          "reasoning": true,
          "reasoning_options": [
            {
              "type": "string",
              "values": [
                "string"
              ]
            }
          ]
        }
      }
    }
  }
}
GET
/api/pricing

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Response Body

application/json

curl -X GET "http://localhost:3013/api/pricing"
{
  "rows": [
    {
      "provider": "claude",
      "model": "string",
      "tokenClass": "input",
      "effectiveFrom": 0,
      "pricePerMillionUsd": 0,
      "createdAt": 0,
      "lastUpdatedAt": 0
    }
  ]
}
GET
/api/pricing/{provider}/{model}/{tokenClass}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

provider*string
Value in"claude" | "claude-managed" | "codex" | "pi" | "opencode" | "devin" | "gemini"
model*string
Length1 <= length
tokenClass*string
Value in"input" | "cached_input" | "output" | "cache_write" | "runtime_hour" | "acu"

Response Body

curl -X GET "http://localhost:3013/api/pricing/claude/string/input"
Empty
POST
/api/pricing/{provider}/{model}/{tokenClass}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

provider*string
Value in"claude" | "claude-managed" | "codex" | "pi" | "opencode" | "devin" | "gemini"
model*string
Length1 <= length
tokenClass*string
Value in"input" | "cached_input" | "output" | "cache_write" | "runtime_hour" | "acu"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "http://localhost:3013/api/pricing/claude/string/input" \  -H "Content-Type: application/json" \  -d '{    "pricePerMillionUsd": 0  }'
{
  "provider": "claude",
  "model": "string",
  "tokenClass": "input",
  "effectiveFrom": 0,
  "pricePerMillionUsd": 0,
  "createdAt": 0,
  "lastUpdatedAt": 0
}
Empty
Empty
DELETE
/api/pricing/{provider}/{model}/{tokenClass}/{effectiveFrom}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

provider*string
Value in"claude" | "claude-managed" | "codex" | "pi" | "opencode" | "devin" | "gemini"
model*string
Length1 <= length
tokenClass*string
Value in"input" | "cached_input" | "output" | "cache_write" | "runtime_hour" | "acu"
effectiveFrom*string
Match^\d+$

Response Body

curl -X DELETE "http://localhost:3013/api/pricing/claude/string/input/string"
Empty
Empty
GET
/api/pricing/{provider}/{model}/{tokenClass}/active

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

provider*string
Value in"claude" | "claude-managed" | "codex" | "pi" | "opencode" | "devin" | "gemini"
model*string
Length1 <= length
tokenClass*string
Value in"input" | "cached_input" | "output" | "cache_write" | "runtime_hour" | "acu"

Response Body

application/json

curl -X GET "http://localhost:3013/api/pricing/claude/string/input/active"
{
  "provider": "claude",
  "model": "string",
  "tokenClass": "input",
  "effectiveFrom": 0,
  "pricePerMillionUsd": 0,
  "createdAt": 0,
  "lastUpdatedAt": 0
}
Empty