Skip to content
Log in

Version Pinning

How Reducto model versioning works and how to pin versions

Reducto continuously improves the models powering document processing. This page explains how versioning works and how to control which version you use. For the current status of each model version, see Model Versions.

How Versioning Works

Each model version progresses through four stages:

  1. Alpha: New version available for opt-in testing via the alpha config
  2. Default: Automatically used for all requests
  3. Deprecated: Old default, still accessible via alpha config
  4. Removed: No longer available

Requesting an unknown or removed version returns an error listing the available versions.

Rollout Process

New model versions follow a 4-week rollout window:

  1. Weeks 1-2 (Alpha): The new version is available for opt-in testing. You can pin to the new version via the alpha config to evaluate it against your workloads before it becomes the default.
  2. Week 3 (Default): The new version becomes the default for all requests. The previous default is demoted to deprecated status.
  3. Weeks 3-4 (Deprecated): The previous default remains accessible via version pinning for 2 weeks after being replaced. Use this window to migrate any workflows that depend on the old version’s behavior.

This gives you a guaranteed 4-week window, 2 weeks before and 2 weeks after a version becomes the default, to test and transition between versions.

Pinning a Version

To pin a specific version, pass it in your request’s settings.alpha config:

# Layout version pinning (parse)
result = client.parse.run(
    input="https://example.com/document.pdf",
    settings={"model": "r-1",
        "alpha": {
            "layout_model": "v2"
        }
    }
)

# Extract version pinning (requires citations enabled)
result = client.extract.run(
    input="https://example.com/document.pdf",
    instructions={"schema": {...}},
    settings={
        "citations": {"enabled": True},
        "alpha": {
            "extract_model": "v2"
        }
    },
    parsing={"settings": {"model": "r-1"}},
)

# Deep Extract version pinning (requires deep_extract enabled)
result = client.extract.run(
    input="https://example.com/document.pdf",
    instructions={"schema": {...}},
    settings={
        "deep_extract": True,
        "alpha": {
            "deep_extract_model": "v3"
        }
    },
    parsing={"settings": {"model": "r-1"}},
)

# Deep Split version pinning (requires deep_split enabled)
# For split, alpha is a top-level option, not nested under settings.
result = client.split.run(
    input="https://example.com/document.pdf",
    split_description=[...],
    settings={
        "deep_split": True
    },
    alpha={
        "deep_split_model": "v2"
    },
    parsing={"settings": {"model": "r-1"}},
)
// Layout version pinning (parse)
const result = await client.parse.run({
  input: 'https://example.com/document.pdf',
  settings: { model: 'r-1',
    alpha: {
      layout_model: 'v2'
    }
  }
});

// Extract version pinning (requires citations enabled)
const extractResult = await client.extract.run({
  input: 'https://example.com/document.pdf',
  instructions: { schema: {...} },
  settings: {
    citations: { enabled: true },
    alpha: {
      extract_model: 'v2'
    }
  },
  parsing: { settings: { model: 'r-1' } },
});

// Deep Extract version pinning (requires deep_extract enabled)
const deepExtractResult = await client.extract.run({
  input: 'https://example.com/document.pdf',
  instructions: { schema: {...} },
  settings: {
    deep_extract: true,
    alpha: {
      deep_extract_model: 'v3'
    }
  },
  parsing: { settings: { model: 'r-1' } },
});

// Deep Split version pinning (requires deep_split enabled)
// For split, alpha is a top-level option, not nested under settings.
const deepSplitResult = await client.split.run({
  input: 'https://example.com/document.pdf',
  split_description: [...],
  settings: {
    deep_split: true
  },
  alpha: {
    deep_split_model: 'v2'
  },
  parsing: { settings: { model: 'r-1' } },
});
# Layout version pinning (parse)
curl -X POST https://platform.reducto.ai/parse \
  -H "Authorization: Bearer $REDUCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "https://example.com/document.pdf",
    "settings": {"model": "r-1",
      "alpha": {
        "layout_model": "v2"
      }
    }
  }'

# Extract version pinning (requires citations enabled)
curl -X POST https://platform.reducto.ai/extract \
  -H "Authorization: Bearer $REDUCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "https://example.com/document.pdf",
    "instructions": {"schema": {...}},
    "settings": {
      "citations": {"enabled": true},
      "alpha": {
        "extract_model": "v2"
      }
    }
  }'

# Deep Extract version pinning (requires deep_extract enabled)
curl -X POST https://platform.reducto.ai/extract \
  -H "Authorization: Bearer $REDUCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "https://example.com/document.pdf",
    "instructions": {"schema": {...}},
    "settings": {
      "deep_extract": true,
      "alpha": {
        "deep_extract_model": "v3"
      }
    }
  }'

# Deep Split version pinning (requires deep_split enabled)
# For split, alpha is a top-level option, not nested under settings.
curl -X POST https://platform.reducto.ai/split \
  -H "Authorization: Bearer $REDUCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "https://example.com/document.pdf",
    "split_description": [],
    "settings": {
      "deep_split": true
    },
    "alpha": {
      "deep_split_model": "v2"
    }
  }'

Type to search…

escClose