# BindCraft2

BindCraft2 (BC2) brings de novo miniproteins, scaffolded binders, cyclic peptides and multistate design into one workflow. BC2 combines sequence optimisation through AlphaFold 2 with ProteinMPNN redesign, then evaluates candidates with separate AlphaFold models and structural filters.

## 基础信息

| 项目 | 值 |
|------|-----|
| Base URL | `https://sciminer.tech/console/api` |
| API Endpoint | `/v1/internal/tools/invoke` |
| Content-Type | `application/json` |
| Authentication | `X-Auth-Token: <YOUR_API_KEY>` |

## 1. De novo miniprotein binder design with a fixed modality.

**Tool Name:** `predict_binder_predict_binder_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `binder_lengths` | `string` | ✗ | Binder length: fixed ('60') or range ('60-180') in amino acids.
Must stay within 60-180 aa; empty uses the preset. Target + binder must not exceed 480 residues. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_binder_predict_binder_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "binder_lengths": "",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 2. Large de novo binder design with a fixed modality.

**Tool Name:** `predict_large_binder_predict_large_binder_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `binder_lengths` | `string` | ✗ | Binder length: fixed ('250') or range ('250-600') in amino acids.
Must stay within 250-600 aa. Target + binder must not exceed 480 residues.
When empty, the default range is 250 to (480 minus target length); at least 250 residues must remain for the binder. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_large_binder_predict_large_binder_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "binder_lengths": "",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 3. Linear peptide design with a fixed modality.

**Tool Name:** `predict_peptide_predict_peptide_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `binder_lengths` | `string` | ✗ | Binder length: fixed ('12') or range ('12-25') in amino acids.
Must stay within 12-25 aa; empty uses the preset. Target + binder must not exceed 480 residues. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_peptide_predict_peptide_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "binder_lengths": "",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 4. Head-to-tail cyclic peptide design with a fixed modality.

**Tool Name:** `predict_cyclic_peptide_predict_cyclic_peptide_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `binder_lengths` | `string` | ✗ | Binder length: fixed ('6') or range ('6-16') in amino acids.
Must stay within 6-16 aa; empty uses the preset. Target + binder must not exceed 480 residues. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_cyclic_peptide_predict_cyclic_peptide_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "binder_lengths": "",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 5. Homo-oligomeric binder design with a fixed modality.

**Tool Name:** `predict_homo_oligomer_predict_homo_oligomer_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `binder_lengths` | `string` | ✗ | Length per binder copy: fixed ('40') or range ('40-120') in amino acids.
Must stay within 40-120 aa; empty uses the preset. Target + all binder copies must not exceed 480 residues. |  |
| `copies` | `number` | ✗ | Number of identical binder chains (1-6, default: 2); lengths are per copy. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_homo_oligomer_predict_homo_oligomer_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "binder_lengths": "",
    "copies": 2,
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 6. Two-domain binder design with a fixed modality.

**Tool Name:** `predict_multidomain_predict_multidomain_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `binder_lengths` | `string` | ✗ | Binder length: fixed ('120') or range ('120-300') in amino acids.
Must stay within 120-300 aa; empty uses the preset. Target + binder must not exceed 480 residues. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_multidomain_predict_multidomain_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "binder_lengths": "",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 7. VHH scaffold binder design with a fixed modality.

**Tool Name:** `predict_vhh_predict_vhh_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `paratope_scope` | `select` | ✗ | Scaffold formats only (VHH / ARP / scFv / Fab; rejected elsewhere): how much of the fixed framework is redesigned and counts as contact (paratope).
none (default) / cdrs: CDR loops only; framework residues touching the target count as off-paratope.
cdrs_framework: CDR-adjacent framework-contact positions are redesigned/contact too, avoiding the off-paratope penalty on wider hotspots (retention auto-set to 0.85).
whole_binder: the whole chain is redesigned/contact, keeping the scaffold fold as a template (retention 0.0). | ``, `cdrs`, `cdrs_framework`, `whole_binder` |
| `cdr_lengths` | `select` | ✗ | Scaffold formats only (paratope_scope cdrs / cdrs_framework; ignored by whole_binder).
CDR loop lengths: balanced (default) = preset min-max; short = every variable loop at its minimum; long = maximum + 3 residues. | `balanced`, `short`, `long` |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |
| `min_scaffold_sequence_retained_final` | `string` | ✗ | Scaffold formats only, advanced: fraction (0-1) of framework residues that must keep the scaffold's own amino acid.
Default follows paratope_scope (cdrs 1.0, cdrs_framework 0.85, whole_binder 0.0); lower = more freedom to co-optimise the interface. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_vhh_predict_vhh_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "paratope_scope": "<PARATOPE_SCOPE>",
    "cdr_lengths": "<CDR_LENGTHS>",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3,
    "min_scaffold_sequence_retained_final": "<MIN_SCAFFOLD_SEQUENCE_RETAINED_FINAL>"
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 8. Ankyrin-repeat scaffold binder design with a fixed modality.

**Tool Name:** `predict_arp_predict_arp_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `paratope_scope` | `select` | ✗ | Scaffold formats only (VHH / ARP / scFv / Fab; rejected elsewhere): how much of the fixed framework is redesigned and counts as contact (paratope).
none (default) / cdrs: CDR loops only; framework residues touching the target count as off-paratope.
cdrs_framework: CDR-adjacent framework-contact positions are redesigned/contact too, avoiding the off-paratope penalty on wider hotspots (retention auto-set to 0.85).
whole_binder: the whole chain is redesigned/contact, keeping the scaffold fold as a template (retention 0.0). | ``, `cdrs`, `cdrs_framework`, `whole_binder` |
| `cdr_lengths` | `select` | ✗ | Scaffold formats only (paratope_scope cdrs / cdrs_framework; ignored by whole_binder).
CDR loop lengths: balanced (default) = preset min-max; short = every variable loop at its minimum; long = maximum + 3 residues. | `balanced`, `short`, `long` |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |
| `min_scaffold_sequence_retained_final` | `string` | ✗ | Scaffold formats only, advanced: fraction (0-1) of framework residues that must keep the scaffold's own amino acid.
Default follows paratope_scope (cdrs 1.0, cdrs_framework 0.85, whole_binder 0.0); lower = more freedom to co-optimise the interface. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_arp_predict_arp_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "paratope_scope": "<PARATOPE_SCOPE>",
    "cdr_lengths": "<CDR_LENGTHS>",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3,
    "min_scaffold_sequence_retained_final": "<MIN_SCAFFOLD_SEQUENCE_RETAINED_FINAL>"
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 9. scFv scaffold binder design with a fixed modality.

**Tool Name:** `predict_scfv_predict_scfv_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `paratope_scope` | `select` | ✗ | Scaffold formats only (VHH / ARP / scFv / Fab; rejected elsewhere): how much of the fixed framework is redesigned and counts as contact (paratope).
none (default) / cdrs: CDR loops only; framework residues touching the target count as off-paratope.
cdrs_framework: CDR-adjacent framework-contact positions are redesigned/contact too, avoiding the off-paratope penalty on wider hotspots (retention auto-set to 0.85).
whole_binder: the whole chain is redesigned/contact, keeping the scaffold fold as a template (retention 0.0). | ``, `cdrs`, `cdrs_framework`, `whole_binder` |
| `cdr_lengths` | `select` | ✗ | Scaffold formats only (paratope_scope cdrs / cdrs_framework; ignored by whole_binder).
CDR loop lengths: balanced (default) = preset min-max; short = every variable loop at its minimum; long = maximum + 3 residues. | `balanced`, `short`, `long` |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |
| `min_scaffold_sequence_retained_final` | `string` | ✗ | Scaffold formats only, advanced: fraction (0-1) of framework residues that must keep the scaffold's own amino acid.
Default follows paratope_scope (cdrs 1.0, cdrs_framework 0.85, whole_binder 0.0); lower = more freedom to co-optimise the interface. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_scfv_predict_scfv_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "paratope_scope": "<PARATOPE_SCOPE>",
    "cdr_lengths": "<CDR_LENGTHS>",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3,
    "min_scaffold_sequence_retained_final": "<MIN_SCAFFOLD_SEQUENCE_RETAINED_FINAL>"
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 10. Fab scaffold binder design with a fixed modality.

**Tool Name:** `predict_fab_predict_fab_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `conformational_modality` | `select_array` | ✗ | Optional conformational objective, combined with the binder format (multi-select; default: none).
induced_fit: require binder interface rearrangement between its free and bound predictions (interface RMSD >= 5 angstroms).
fold_switch: require different overall binder folds in its free and bound predictions (TM-score <= 0.6). | `none`, `induced_fit`, `fold_switch` |
| `paratope_scope` | `select` | ✗ | Scaffold formats only (VHH / ARP / scFv / Fab; rejected elsewhere): how much of the fixed framework is redesigned and counts as contact (paratope).
none (default) / cdrs: CDR loops only; framework residues touching the target count as off-paratope.
cdrs_framework: CDR-adjacent framework-contact positions are redesigned/contact too, avoiding the off-paratope penalty on wider hotspots (retention auto-set to 0.85).
whole_binder: the whole chain is redesigned/contact, keeping the scaffold fold as a template (retention 0.0). | ``, `cdrs`, `cdrs_framework`, `whole_binder` |
| `cdr_lengths` | `select` | ✗ | Scaffold formats only (paratope_scope cdrs / cdrs_framework; ignored by whole_binder).
CDR loop lengths: balanced (default) = preset min-max; short = every variable loop at its minimum; long = maximum + 3 residues. | `balanced`, `short`, `long` |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |
| `min_scaffold_sequence_retained_final` | `string` | ✗ | Scaffold formats only, advanced: fraction (0-1) of framework residues that must keep the scaffold's own amino acid.
Default follows paratope_scope (cdrs 1.0, cdrs_framework 0.85, whole_binder 0.0); lower = more freedom to co-optimise the interface. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_fab_predict_fab_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "conformational_modality": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "paratope_scope": "<PARATOPE_SCOPE>",
    "cdr_lengths": "<CDR_LENGTHS>",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3,
    "min_scaffold_sequence_retained_final": "<MIN_SCAFFOLD_SEQUENCE_RETAINED_FINAL>"
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 11. Induced-fit binder design on the de novo binder base.

**Tool Name:** `predict_induced_fit_predict_induced_fit_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `binder_lengths` | `string` | ✗ | Binder length: fixed ('60') or range ('60-180') in amino acids.
Must stay within 60-180 aa; empty uses the preset. Target + binder must not exceed 480 residues. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_induced_fit_predict_induced_fit_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "binder_lengths": "",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## 12. Fold-switching binder design on the de novo binder base.

**Tool Name:** `predict_fold_switch_predict_fold_switch_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `design_properties` | `select_array` | ✗ | Optional design properties (multi-select; default: none). Each adds an optimisation objective plus acceptance filters.
forced_targeting: focus binding on 'target_hotspot_residues' (required).
humanize: lower predicted MHC anchor load — a coarse immunogenicity proxy, not a validated assay.
protease_stable: reduce predicted protease-cleavage susceptibility.
disulfide_staple: include a predicted disulfide bond.
mixed_topology: favour beta-sheet content and limit helicity.
termini_together: bring the N and C termini close together.
termini_accessible: point both termini away from the target.
initial_guess: re-predict candidates from the pose they folded — helps hard motifs, slightly less independent validation.
bigbang: also seed optimisation from available coordinates (for large complexes / scaffolds; hurts de novo binders). | `none`, `forced_targeting`, `humanize`, `protease_stable`, `disulfide_staple`, `mixed_topology`, `termini_together`, `termini_accessible`, `initial_guess`, `bigbang` |
| `quality_filter_level` | `select` | ✗ | Acceptance-threshold preset for all modalities.
high: strict, few but reliable designs; balanced (default): quality/yield balance; permissive: quantity first, some designs may bind weakly or be hard to express.
Sets min_iptm_final, min_ptm_final, max_ipae_final, max_off_paratope_contact_final and min_monomer_plddt_final together. | `high`, `balanced`, `permissive` |
| `binder_lengths` | `string` | ✗ | Binder length: fixed ('60') or range ('60-180') in amino acids.
Must stay within 60-180 aa; empty uses the preset. Target + binder must not exceed 480 residues. |  |
| `structure_file` | `file` | ✗ | Target protein structure (PDB / mmCIF). Provide exactly one of 'structure_file' or 'fasta_file'.
Chain ids in 'chains' and residue numbers in 'target_hotspot_residues' refer to this file; only the listed chains are used (other chains are ignored).
Target chain(s) + binder must not exceed 480 residues in total.<br/>file suffix: `pdb`, `cif`, `mmcif` |  |
| `fasta_file` | `file` | ✗ | Target protein sequence without a fixed structure (FASTA). Provide exactly one of 'structure_file' or 'fasta_file'.
Suitable for disordered regions and peptides; hotspots and 'forced_targeting' require a structure.
For multi-record files, select the record in 'chains' (first token of its '>' header).
Target + binder must not exceed 480 residues in total.<br/>file suffix: `fasta`, `fa` |  |
| `chains` | `string` | ✗ | Target chain id(s), comma-separated as in the uploaded structure, e.g. 'A' or 'A,B' (default: A).
For a FASTA target: the record name (first token of its '>' header), required for multi-record files. |  |
| `target_hotspot_residues` | `string` | ✗ | Optional hotspot residues the binder must contact, exactly as returned by the residue-selection plugin:
'Chain: start-end' segments separated by ';', e.g. 'A: 191,194-199; B: 30-34'.
Residue numbers follow the uploaded structure; hotspot chains must be among 'chains'; structure targets only. |  |
| `number_of_final_designs` | `number` | ✗ | Number of accepted designs to produce (1-5, default: 1).
Each runs as a parallel sub-task on its own GPU and stops after its first accepted design. |  |
| `timeout` | `number` | ✗ | Maximum runtime in hours for ONE design sub-task (1-32, default: 3).
Sub-tasks run in parallel, so the overall job time stays close to this value.
The allowed maximum depends on your membership level (FREE Plan: 8h, Iron Shovel Plan: 16h, Silver Shovel Plan: 32h).
On a 'Timeout' failure, increase it and resubmit. |  |

### 示例代码

#### Python

```python
import requests

BASE_URL = "https://sciminer.tech/console/api"
API_KEY = "<YOUR_API_KEY>"
endpoint = "/v1/internal/tools/invoke"

# If the invoked API includes FILE-type parameters, upload the file first to obtain a `file_id`,
# then fill the corresponding field in `parameters` with the returned `file_id`.
# File upload example (form-data, parameter name is `file`):

# files = {'file': open('path/to/your_file.ext', 'rb')}
# upload_url = f"{BASE_URL}/v1/internal/tools/file"
# resp_upload = requests.post(upload_url, files=files, headers={"X-Auth-Token": f"{API_KEY}"}, timeout=60)
# resp_upload.raise_for_status()
# file_id = resp_upload.json().get("file_id")
# print(f"File uploaded successfully, file_id: {file_id}")
# # Then set the `file_id` in the corresponding field of `payload['parameters']`, for example: payload['parameters']["your_file_param_name"] = file_id

headers = {
    "X-Auth-Token": f"{API_KEY}",
    "Content-Type": "application/json",
}

payload = {
    "provider_name": "BindCraft2",
    "tool_name": "predict_fold_switch_predict_fold_switch_post",
    "parameters": {
    "design_properties": [
        "OPTION VALUE1",
        "OPTION VALUE2"
    ],
    "quality_filter_level": "<QUALITY_FILTER_LEVEL>",
    "binder_lengths": "",
    "structure_file": "<STRUCTURE_FILE_FILE_ID>",
    "fasta_file": "<FASTA_FILE_FILE_ID>",
    "chains": "",
    "target_hotspot_residues": "<TARGET_HOTSPOT_RESIDUES>",
    "number_of_final_designs": 1,
    "timeout": 3
},
    # The job name is an optional parameter.
    #"job_name": "xxx",
}

# Step 1: Submit the task.
# Call the /invoke endpoint to start the task and obtain a task_id.
print("1. Submitting task...")
resp_submit = requests.post(f"{BASE_URL}{endpoint}", json=payload, headers=headers, timeout=30)
resp_submit.raise_for_status()
task_id = resp_submit.json().get("task_id")
print(f"Task ID: {task_id}")

# Step 2: Poll for the result.
# Use the task_id obtained above to call the /result endpoint to check status and fetch the result.
# If this tool takes a long time, you can increase the max_retries parameter or after exceeding the maximum number of times, you can use the task_id to re-request.
status_url = f"https://sciminer.tech/console/api/v1/internal/tools/result"
max_retries = 300
status = "PENDING"
for i in range(max_retries):
    print(f"Polling status (attempt {i+1}/{max_retries})...")
    resp_status = requests.get(
        status_url,
        params={"task_id": task_id},
        headers=headers,
        timeout=10
    )
    resp_status.raise_for_status()
    
    result = resp_status.json()
    status = result.get("status")
    print(f"Status: {status}")
    
    if status == "SUCCESS":
        print("✅ Task completed successfully！")
        print(f"Result: {result.get('result')}")
        break
    elif status == "FAILURE":
        print(f"❌ Task failed: {result.get('result')}")
        break
    else:
        # Wait 2 seconds before retrying
        import time
        time.sleep(2)
else:
    print("⏱️  Maximum retry attempts reached. The task is still running.")
```


---

## User Interface URL

> When the user needs a tool recommendation, output the URL.

**URL:** <https://sciminer.tech/utility/tool/BindCraft2>
