dev.cocore.compute.defs

cocore.dev

{
  "id": "dev.cocore.compute.defs",
  "defs": {
    "money": {
      "type": "object",
      "required": [
        "amount",
        "currency"
      ],
      "properties": {
        "amount": {
          "type": "integer",
          "minimum": 0,
          "description": "Integer minor units (e.g. cents for USD)."
        },
        "currency": {
          "type": "string",
          "maxLength": 8,
          "minLength": 3,
          "description": "Uppercase currency code."
        }
      },
      "description": "An amount of value, in integer minor units of a named currency. No floats. ISO 4217 codes are preferred; uppercase three-or-more-letter codes are accepted for non-fiat (e.g. XBT, XSAT, USDC)."
    },
    "tokenRate": {
      "type": "object",
      "required": [
        "inputPricePerMTok",
        "outputPricePerMTok",
        "currency"
      ],
      "properties": {
        "currency": {
          "type": "string",
          "maxLength": 8,
          "minLength": 3
        },
        "inputPricePerMTok": {
          "type": "integer",
          "minimum": 0,
          "description": "Integer minor units per 1,000,000 input tokens."
        },
        "outputPricePerMTok": {
          "type": "integer",
          "minimum": 0,
          "description": "Integer minor units per 1,000,000 output tokens."
        }
      },
      "description": "A model-agnostic per-token rate. Same shape as modelPrice without modelId. Used by an exchange to express a uniform rate that applies across providers/models. A receipt's price.amount is auditable against this rate as roughly `inputPricePerMTok * tokens.in / 1e6 + outputPricePerMTok * tokens.out / 1e6`, modulo a small floor for very short jobs."
    },
    "modelPrice": {
      "type": "object",
      "required": [
        "modelId",
        "inputPricePerMTok",
        "outputPricePerMTok",
        "currency"
      ],
      "properties": {
        "modelId": {
          "type": "string",
          "maxLength": 256
        },
        "currency": {
          "type": "string",
          "maxLength": 8,
          "minLength": 3
        },
        "inputPricePerMTok": {
          "type": "integer",
          "minimum": 0,
          "description": "Integer minor units per 1,000,000 input tokens."
        },
        "outputPricePerMTok": {
          "type": "integer",
          "minimum": 0,
          "description": "Integer minor units per 1,000,000 output tokens."
        }
      },
      "description": "A provider's offered price for a single model."
    },
    "trustLevel": {
      "type": "string",
      "description": "How strongly the provider's environment is attested.",
      "knownValues": [
        "self-attested",
        "hardware-attested"
      ]
    },
    "tokenCounts": {
      "type": "object",
      "required": [
        "in",
        "out"
      ],
      "properties": {
        "in": {
          "type": "integer",
          "minimum": 0
        },
        "out": {
          "type": "integer",
          "minimum": 0
        }
      },
      "description": "Token counts associated with a unit of work."
    },
    "settlementStatus": {
      "type": "string",
      "description": "Lifecycle state of a settlement record.",
      "knownValues": [
        "settled",
        "refunded",
        "disputed"
      ]
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Shared type definitions for dev.cocore.compute.* records."
}

Validate Record

Validate a record against dev.cocore.compute.defs

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:5quuhkmwe2q4k3azfsgg7kdz
CID
bafyreievhcwwlm4pvuwhpjblyjprr4vberc3hve3ut3ldxc3j6bzhhfh6q
Indexed At
2026-06-17 21:16 UTC
AT-URI
at://did:plc:5quuhkmwe2q4k3azfsgg7kdz/com.atproto.lexicon.schema/dev.cocore.compute.defs

Lexicon Garden

@