phi.job_types.get
python
phi.job_types.get(job_type=job_type)Returns JobTypeSchema.
Parameters
| Name | Type | Default |
|---|---|---|
| job_typerequired | str | |
| refreshoptional | bool | False |
JobTypeSchema fields and schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| availablerequired | boolean | |
| catalog_priceoptional | object or null | null |
| credit_costrequired | integer | |
| environmentsrequired | (string)[] | |
| gate_reasonrequired | string or null | |
| input_constraintsrequired | object | |
| inputs_schemarequired | object | |
| job_typerequired | string | |
| notesoptional | string or null | null |
| params_schemarequired | object | |
| pricingoptional | (object)[] | |
| purposeoptional | string or null | null |
| rate_revisionoptional | string or null | null |
| typical_secondsoptional | integer or null | null |
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
| Name | Type | Default |
|---|---|---|
| refreshoptional | bool | False |
JobTypeSchema fields and schemaShowHide
Fields
| Name | Type | Default |
|---|---|---|
| availablerequired | boolean | |
| catalog_priceoptional | object or null | null |
| credit_costrequired | integer | |
| environmentsrequired | (string)[] | |
| gate_reasonrequired | string or null | |
| input_constraintsrequired | object | |
| inputs_schemarequired | object | |
| job_typerequired | string | |
| notesoptional | string or null | null |
| params_schemarequired | object | |
| pricingoptional | (object)[] | |
| purposeoptional | string or null | null |
| rate_revisionoptional | string or null | null |
| typical_secondsoptional | integer or null | null |
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
| Name | Type | Default |
|---|---|---|
| job_typerequired | str | |
| inputsrequired | dict[str, Any] | |
| refreshoptional | bool | False |
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
| Name | Type | Default |
|---|---|---|
| job_typerequired | str | |
| paramsrequired | dict[str, Any] | |
| refreshoptional | bool | False |
From the installed client, phi 0.4.2, 2026-11-23.