> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PreferredMinThroughput - Go SDK

> PreferredMinThroughput type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.

## Supported Types

###

```go lines theme={null}
preferredMinThroughput := components.CreatePreferredMinThroughputNumber(float64{/* values here */})
```

### PercentileThroughputCutoffs

```go lines theme={null}
preferredMinThroughput := components.CreatePreferredMinThroughputPercentileThroughputCutoffs(components.PercentileThroughputCutoffs{/* values here */})
```

###

```go lines theme={null}
preferredMinThroughput := components.CreatePreferredMinThroughputAny(any{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go lines theme={null}
switch preferredMinThroughput.Type {
	case components.PreferredMinThroughputTypeNumber:
		// preferredMinThroughput.Number is populated
	case components.PreferredMinThroughputTypePercentileThroughputCutoffs:
		// preferredMinThroughput.PercentileThroughputCutoffs is populated
	case components.PreferredMinThroughputTypeAny:
		// preferredMinThroughput.Any is populated
}
```
