AiInferenceDeployment ai.inference-deployment@1

Generated at from openvibe-contracts v0.419.0 and openvibe-sdk v0.161.0.

Version
1.0.0
Owner
ai
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/ai/inference-deployment.v1.json

ai.inference-deployment@1: a loaded inference deployment for a pinned artifact. Describes where it runs, its trust tier, commercial rights, health, limits and the rate card that prices its supply cost.

Fields

FieldTypeRequiredDescriptionConstraints
idstringyesDeployment id, unique within OpenVibe.AI.
  • maxLength 256
artifact_idstringyesExact artifact id this deployment loads.
  • pattern ^[a-zA-Z0-9._-]+/[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+)?@[a-zA-Z0-9._-]+$
  • maxLength 256
regionstringyesDeployment region or residency label.
trust_tierenumWho operates the deployment and what data may reach it.
  • one of "first_party", "owner_node", "approved_wholesale", "unverified"
operatorstringOperator slug or `owner:<subject_id>` for a private machine.
hoststring | nullInternal host identifier; never exposed to untrusted callers.
endpointstring | nullService endpoint for this deployment (internal or partner).
  • format uri
statusenumyesCurrent load/health state.
  • one of "warming", "ready", "full", "degraded", "offline"
loaded_atstring | null
  • format date-time
limitsobject
  • no other fields
limits.max_concurrencyinteger
  • minimum 1
limits.context_tokensinteger
  • minimum 1
limits.max_output_tokensinteger
  • minimum 1
supply_rate_card_idstring | nullReference to the supply rate card (platform.rate-card@1) that prices this deployment.
provider_accessenumCommercial eligibility for paid managed routes.
  • one of "OWN_DEPLOYMENT", "AUTHORIZED_WHOLESALE", "CUSTOMER_BYOK", "RESTRICTED", "UNVERIFIED"
commercial_rightsenumResale authority recorded for this deployment.
  • one of "OWN_DEPLOYMENT", "AUTHORIZED_WHOLESALE", "CUSTOMER_BYOK", "RESTRICTED", "UNVERIFIED"
privacy_policystring | nullRetention/zero-retention policy label.
healthobject
  • no other fields
health.healthyboolean
health.last_check_atstring | null
  • format date-time
health.reasonstring | null
updated_atstring
  • format date-time

Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

Valid: owned-gpu
{
  "id": "dep-qwen-9b-us-east-001",
  "artifact_id": "qwen/qwen3-9b-abliterated:q4_k_m@3f2a1c9",
  "region": "us-east",
  "trust_tier": "first_party",
  "operator": "openvibe",
  "host": "gpu-001.internal",
  "endpoint": "http://127.0.0.1:4800/v1",
  "status": "ready",
  "loaded_at": "2026-11-03T00:00:00.000Z",
  "limits": {
    "max_concurrency": 16,
    "context_tokens": 32768,
    "max_output_tokens": 8192
  },
  "supply_rate_card_id": "rc-qwen-owned-001",
  "provider_access": "OWN_DEPLOYMENT",
  "commercial_rights": "OWN_DEPLOYMENT",
  "privacy_policy": "zero_retention",
  "health": {
    "healthy": true,
    "last_check_at": "2026-11-03T00:00:00.000Z",
    "reason": null
  },
  "updated_at": "2026-11-03T00:00:00.000Z"
}
Valid: wholesale
{
  "id": "dep-deepinfra-llama-8b",
  "artifact_id": "meta-llama/llama_3.1_8b_instruct:fp16@bca2580",
  "region": "us-west",
  "trust_tier": "approved_wholesale",
  "operator": "deepinfra",
  "endpoint": "https://api.deepinfra.com/v1/openai",
  "status": "ready",
  "loaded_at": "2026-11-03T00:00:00.000Z",
  "limits": {
    "max_concurrency": 100,
    "context_tokens": 131072,
    "max_output_tokens": 4096
  },
  "supply_rate_card_id": "rc-deepinfra-llama-8b-001",
  "provider_access": "AUTHORIZED_WHOLESALE",
  "commercial_rights": "AUTHORIZED_WHOLESALE",
  "privacy_policy": null,
  "health": {
    "healthy": true,
    "last_check_at": "2026-11-03T00:00:00.000Z",
    "reason": null
  },
  "updated_at": "2026-11-03T00:00:00.000Z"
}
Rejected: bad-access
{
  "id": "dep-bad-access",
  "artifact_id": "qwen/qwen3-9b-abliterated:q4_k_m@3f2a1c9",
  "region": "us-east",
  "status": "ready",
  "provider_access": "FREE"
}
Rejected: bad-trust-tier
{
  "id": "dep-bad-trust",
  "artifact_id": "qwen/qwen3-9b-abliterated:q4_k_m@3f2a1c9",
  "region": "us-east",
  "trust_tier": "hostile",
  "status": "ready"
}
Rejected: missing-artifact
{
  "id": "dep-no-artifact",
  "region": "us-east",
  "status": "ready"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('ai.inference-deployment@1', value);   // { valid, errors: [{ path, message }] }