# inference.segment.v2

Source: https://docs.prodia.com/job-types/inference-segment-v2/

## Schema

```json
{
	"type": "object",
	"required": [
		"type",
		"config"
	],
	"additionalProperties": false,
	"properties": {
		"type": {
			"enum": [
				"inference.segment.v2",
				"inference.sam3.segment.v1"
			]
		},
		"config": {
			"type": "object",
			"required": [
				"prompt"
			],
			"additionalProperties": false,
			"properties": {
				"prompt": {
					"type": "string",
					"minLength": 1,
					"maxLength": 500,
					"description": "Text prompt describing what to segment (e.g., 'yellow school bus', 'person', 'cat')."
				},
				"confidence_threshold": {
					"type": "number",
					"default": 0.5,
					"minimum": 0,
					"maximum": 1,
					"description": "Confidence threshold for detections. Lower values return more masks, higher values only return high-confidence masks."
				}
			}
		}
	}
}
```
