dev.cocore.compute.defs

cocore.dev

Documentation

modelPrice object

A provider's offered price for a single model.

Properties

currency string Required

No description available.

maxLength: 8 bytesminLength: 3 bytes
inputPricePerMTok integer Required

Integer minor units per 1,000,000 input tokens.

minimum: 0
modelId string Required

No description available.

maxLength: 256 bytes
outputPricePerMTok integer Required

Integer minor units per 1,000,000 output tokens.

minimum: 0
View raw schema
{
  "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."
}
money object

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).

Properties

amount integer Required

Integer minor units (e.g. cents for USD).

minimum: 0
currency string Required

Uppercase currency code.

maxLength: 8 bytesminLength: 3 bytes
View raw schema
{
  "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)."
}
settlementStatus string

Lifecycle state of a settlement record.

Known Values (other values may be valid)
settled refunded disputed
View raw schema
{
  "type": "string",
  "description": "Lifecycle state of a settlement record.",
  "knownValues": [
    "settled",
    "refunded",
    "disputed"
  ]
}
tokenCounts object

Token counts associated with a unit of work.

Properties

in integer Required

No description available.

minimum: 0
out integer Required

No description available.

minimum: 0
View raw schema
{
  "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."
}
tokenRate object

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.

Properties

currency string Required

No description available.

maxLength: 8 bytesminLength: 3 bytes
inputPricePerMTok integer Required

Integer minor units per 1,000,000 input tokens.

minimum: 0
outputPricePerMTok integer Required

Integer minor units per 1,000,000 output tokens.

minimum: 0
View raw schema
{
  "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."
}
trustLevel string

How strongly the provider's environment is attested.

Known Values (other values may be valid)
self-attested hardware-attested
View raw schema
{
  "type": "string",
  "description": "How strongly the provider's environment is attested.",
  "knownValues": [
    "self-attested",
    "hardware-attested"
  ]
}

Lexicon Garden

@