Dyno Phi
ContentsPython SDKShow

phi.job_types

Find models and validate their inputs and parameters.

phi.job_types.get

python
phi.job_types.get(job_type=job_type)

Returns JobTypeSchema.

Parameters

NameTypeDefault
job_typerequiredstr
refreshoptionalboolFalse
JobTypeSchema fields and schemaShow

Fields

NameTypeDefault
availablerequiredboolean
catalog_priceoptionalobject or nullnull
credit_costrequiredinteger
environmentsrequired(string)[]
gate_reasonrequiredstring or null
input_constraintsrequiredobject
inputs_schemarequiredobject
job_typerequiredstring
notesoptionalstring or nullnull
params_schemarequiredobject
pricingoptional(object)[]
purposeoptionalstring or nullnull
rate_revisionoptionalstring or nullnull
typical_secondsoptionalinteger or nullnull
JSON schema
{
  "type": "object",
  "required": [
    "job_type",
    "credit_cost",
    "params_schema",
    "inputs_schema",
    "available",
    "gate_reason",
    "environments",
    "input_constraints"
  ],
  "properties": {
    "available": {
      "type": "boolean"
    },
    "catalog_price": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/CatalogPrice"
        },
        {
          "type": "null"
        }
      ]
    },
    "credit_cost": {
      "type": "integer"
    },
    "environments": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "gate_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "input_constraints": {
      "$ref": "#/$defs/InputConstraints"
    },
    "inputs_schema": {
      "type": "object",
      "additionalProperties": true
    },
    "job_type": {
      "type": "string"
    },
    "notes": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "params_schema": {
      "type": "object",
      "additionalProperties": true
    },
    "pricing": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StagePricing"
      }
    },
    "purpose": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "rate_revision": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "typical_seconds": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "CatalogPrice": {
      "type": "object",
      "required": [
        "credits",
        "count",
        "unit"
      ],
      "properties": {
        "count": {
          "type": "integer"
        },
        "credits": {
          "type": "integer"
        },
        "unit": {
          "type": "string"
        }
      }
    },
    "InputConstraints": {
      "type": "object",
      "properties": {
        "accepts_ligands": {
          "default": null,
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "max_chains": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "max_length": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "StagePricing": {
      "type": "object",
      "required": [
        "stage",
        "unit",
        "cents",
        "gpu"
      ],
      "properties": {
        "basket": {
          "type": "integer",
          "default": 1
        },
        "cap": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "cents": {
          "type": "integer"
        },
        "gpu": {
          "type": "string"
        },
        "included": {
          "type": "integer",
          "default": 0
        },
        "per": {
          "type": "integer",
          "default": 1
        },
        "stage": {
          "type": "string"
        },
        "start_cents": {
          "type": "integer",
          "default": 0
        },
        "unit": {
          "type": "string"
        }
      }
    }
  }
}

phi.job_types.list

python
phi.job_types.list()

Returns list[JobTypeSchema].

Parameters

NameTypeDefault
refreshoptionalboolFalse
JobTypeSchema fields and schemaShow

Fields

NameTypeDefault
availablerequiredboolean
catalog_priceoptionalobject or nullnull
credit_costrequiredinteger
environmentsrequired(string)[]
gate_reasonrequiredstring or null
input_constraintsrequiredobject
inputs_schemarequiredobject
job_typerequiredstring
notesoptionalstring or nullnull
params_schemarequiredobject
pricingoptional(object)[]
purposeoptionalstring or nullnull
rate_revisionoptionalstring or nullnull
typical_secondsoptionalinteger or nullnull
JSON schema
{
  "type": "object",
  "required": [
    "job_type",
    "credit_cost",
    "params_schema",
    "inputs_schema",
    "available",
    "gate_reason",
    "environments",
    "input_constraints"
  ],
  "properties": {
    "available": {
      "type": "boolean"
    },
    "catalog_price": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/CatalogPrice"
        },
        {
          "type": "null"
        }
      ]
    },
    "credit_cost": {
      "type": "integer"
    },
    "environments": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "gate_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "input_constraints": {
      "$ref": "#/$defs/InputConstraints"
    },
    "inputs_schema": {
      "type": "object",
      "additionalProperties": true
    },
    "job_type": {
      "type": "string"
    },
    "notes": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "params_schema": {
      "type": "object",
      "additionalProperties": true
    },
    "pricing": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StagePricing"
      }
    },
    "purpose": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "rate_revision": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "typical_seconds": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "CatalogPrice": {
      "type": "object",
      "required": [
        "credits",
        "count",
        "unit"
      ],
      "properties": {
        "count": {
          "type": "integer"
        },
        "credits": {
          "type": "integer"
        },
        "unit": {
          "type": "string"
        }
      }
    },
    "InputConstraints": {
      "type": "object",
      "properties": {
        "accepts_ligands": {
          "default": null,
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "max_chains": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "max_length": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "StagePricing": {
      "type": "object",
      "required": [
        "stage",
        "unit",
        "cents",
        "gpu"
      ],
      "properties": {
        "basket": {
          "type": "integer",
          "default": 1
        },
        "cap": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "cents": {
          "type": "integer"
        },
        "gpu": {
          "type": "string"
        },
        "included": {
          "type": "integer",
          "default": 0
        },
        "per": {
          "type": "integer",
          "default": 1
        },
        "stage": {
          "type": "string"
        },
        "start_cents": {
          "type": "integer",
          "default": 0
        },
        "unit": {
          "type": "string"
        }
      }
    }
  }
}

phi.job_types.validate_inputs

Raise ``PhiValidationError`` if ``inputs`` fails a local pre-check.

python
phi.job_types.validate_inputs(job_type=job_type, inputs=inputs)

Parameters

NameTypeDefault
job_typerequiredstr
inputsrequireddict[str, Any]
refreshoptionalboolFalse

phi.job_types.validate_params

Raise ``PhiValidationError`` if ``params`` fails a local pre-check.

python
phi.job_types.validate_params(job_type=job_type, params=params)

Parameters

NameTypeDefault
job_typerequiredstr
paramsrequireddict[str, Any]
refreshoptionalboolFalse

From the installed client, phi 0.4.2, 2026-11-23.