# 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`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `job_type` | `str` |  | Required |
| `refresh` | `bool` | `False` | Optional |

### JobTypeSchema fields and schema

```json
{
  "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]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `refresh` | `bool` | `False` | Optional |

### JobTypeSchema fields and schema

```json
{
  "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)
```

| Parameter | Type | Default | Required |
|---|---|---|---|
| `job_type` | `str` |  | Required |
| `inputs` | `dict[str, Any]` |  | Required |
| `refresh` | `bool` | `False` | Optional |

## 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)
```

| Parameter | Type | Default | Required |
|---|---|---|---|
| `job_type` | `str` |  | Required |
| `params` | `dict[str, Any]` |  | Required |
| `refresh` | `bool` | `False` | Optional |


---
Source: https://dynophi.com/docs/sdk/job_types. From the installed client, phi 0.4.2, 2026-11-23.
