# RFdiffusion3

Protein design with RFdiffusion3, an all-atom generative model that designs proteins under complex constraints (binders, enzymes). Backbones are sequence-designed by ProteinMPNN/LigandMPNN and validated by AlphaFold3 or RosettaFold3 structure prediction.

## 基础信息

| 项目 | 值 |
|------|-----|
| 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. Enzyme Design: design new enzymes with catalytic atoms at specified positions.

**Tool Name:** `design_enzyme_gpu_design_enzyme_gpu_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `predictor` | `select` | ✗ | Structure-prediction method used to validate the designs: after RFdiffusion3 generates backbones and MPNN assigns sequences, each design is re-predicted and scored by confidence metrics (ipTM / pLDDT) to assess whether the design folds as intended. Allowed values: 'AlphaFold3' (default) or 'RosettaFold3' | `AlphaFold3`, `RosettaFold3` |
| `pdb_file` | `file` | ✓ | Input protein structure file (PDB or CIF format) containing the catalytic motif to graft and, if applicable, the bound ligand(s) referenced by ligand_residues_name<br/>file suffix: `pdb`, `cif` |  |
| `design_unindex` | `string` | ✓ | Catalytic motif residues to preserve from the input structure. Plain residues/ranges are comma-separated; '/0' starts a new chain segment. Examples:
- 'A108,A139' - preserve residues 108 and 139 of chain A
- '/0,/0,B251-B255' - open two new chains, then preserve residues 251-255 of chain B. Required |  |
| `ligand_residues_name` | `string` | ✓ | 3-letter residue name(s) of the ligand(s) in the input structure whose position relative to the catalytic motif must be preserved. Comma-separated, e.g. 'NAI,ACT'. Required |  |
| `total_length` | `string` | ✓ | Total length of the designed protein (in residues). A range 'min-max' (e.g. '180-200') samples lengths within the range; a single number (e.g. '200') fixes the length exactly. Required |  |
| `select_fixed_atoms` | `string` | ✓ | Residues whose coordinates must stay fixed during diffusion (e.g. the catalytic motif or binding-site residues). One entry per line; each entry is either 'residue(s):atoms' or residue(s) only:
- Residue with specific atoms: 'A108:ND2,CG' (fix only atoms ND2 and CG of A108)
- Residue range with atoms: 'D24-27:CA,CB' (fix atoms CA and CB of residues D24 to D27)
- Residue only (all atoms fixed): 'E64' or 'E64,E88,E96' (comma-separated)
- 'E64:null' explicitly fixes nothing; 'E64:ALL' fixes every atom of the residue |  |
| `num_designs` | `number` | ✓ | Number of independent designs to generate (1-5000). Each design is a full pipeline run: backbone diffusion -> MPNN sequence design -> structure-prediction validation. Runtime scales linearly with this value |  |

### 示例代码

#### 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": "RFdiffusion3",
    "tool_name": "design_enzyme_gpu_design_enzyme_gpu_post",
    "parameters": {
    "predictor": "<PREDICTOR>",
    "pdb_file": "<PDB_FILE_FILE_ID>",
    "design_unindex": "<DESIGN_UNINDEX>",
    "ligand_residues_name": "<LIGAND_RESIDUES_NAME>",
    "total_length": "<TOTAL_LENGTH>",
    "select_fixed_atoms": "<SELECT_FIXED_ATOMS>",
    "num_designs": ""
},
    # 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. Protein Binder Design: design proteins that bind to a target protein structure.

**Tool Name:** `design_protein_binder_gpu_design_protein_binder_gpu_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `predictor` | `select` | ✗ | Structure-prediction method used to validate the designs: after RFdiffusion3 generates backbones and MPNN assigns sequences, each design is re-predicted and scored by confidence metrics (ipTM / pLDDT) to assess whether the design folds as intended. Allowed values: 'AlphaFold3' (default) or 'RosettaFold3' | `AlphaFold3`, `RosettaFold3` |
| `pdb_file` | `file` | ✓ | Structure file of the target protein (PDB or CIF format). The chains and residues referenced by contigs / select_hotspots must exist in this structure<br/>file suffix: `pdb`, `cif` |  |
| `contigs` | `string` | ✓ | Contig specification: segments separated by '/0' (chain break - each '/0' starts a new chain). The binder is given as a bare length range (e.g. '40-100') and MUST be present - a contig with only target segments designs no binder. Its position is free; segment order only sets the output chain order. Examples:
- '40-120,/0,B2-128' - design a binder of 40-120 residues against target residues 2-128 of chain B
- '40-100,/0,A26-91,A107-184' - two segments of one target chain: comma-join after a single '/0' (prefer a continuous span like 'A26-184' if the intervening residues exist)
- '40-120,/0,E6-155,/0,F10-80' - multi-chain target: one '/0' per target chain
Every chain referenced by select_hotspots must appear in the target segments, or the request will be rejected. |  |
| `select_hotspots` | `string` | ✓ | Target residues the binder should contact; diffusion is guided to place the binder against these hotspots. One entry per line:
- With atoms: 'E64:CD2,CZ' or 'E64:ALL' (restrict to specific atoms or all atoms)
- Residue only: 'E64' (all atoms in residue)
- Multiple residues: 'E64,E88,E96' (comma-separated)
Mix formats as needed. Residues must exist in the uploaded structure. Required |  |
| `total_length` | `string` | ✗ | Optional total length of binder + kept target residues (in residues). A range 'min-max' (e.g. '150-180') samples lengths within the range; a single number (e.g. '165') fixes the length exactly. Leave empty to let the contigs determine the length |  |
| `num_designs` | `number` | ✓ | Number of independent binder designs to generate (1-5000). Each design is a full pipeline run: backbone diffusion -> MPNN sequence design -> structure-prediction validation. Runtime scales linearly with this value |  |

### 示例代码

#### 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": "RFdiffusion3",
    "tool_name": "design_protein_binder_gpu_design_protein_binder_gpu_post",
    "parameters": {
    "predictor": "<PREDICTOR>",
    "pdb_file": "<PDB_FILE_FILE_ID>",
    "contigs": "<CONTIGS>",
    "select_hotspots": "<SELECT_HOTSPOTS>",
    "total_length": "<TOTAL_LENGTH>",
    "num_designs": ""
},
    # 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. DNA Binder Design: design proteins that bind to DNA molecules.

**Tool Name:** `design_dna_binder_gpu_design_dna_binder_gpu_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `predictor` | `select` | ✗ | Structure-prediction method used to validate the designs: after RFdiffusion3 generates backbones and MPNN assigns sequences, each design is re-predicted and scored by confidence metrics (ipTM / pLDDT) to assess whether the design folds as intended. Allowed values: 'AlphaFold3' (default) or 'RosettaFold3' | `AlphaFold3`, `RosettaFold3` |
| `pdb_file` | `file` | ✓ | Input protein-DNA complex structure file (PDB or CIF format) containing the DNA segment and any protein motif referenced by the contig / hydrogen-bond parameters below<br/>file suffix: `pdb`, `cif` |  |
| `contigs` | `string` | ✓ | Contig specification: chain-anchored ranges (e.g. 'A1-80') are kept fixed; a bare number or range (e.g. '10' or '10-30') designs that many new residues at that position in the same chain; '/0' is a chain break. At least one bare number is required - a contig with only fixed segments designs nothing. Examples:
- 'A1-80,10,/0,B5-12' - keep residues 1-80 of chain A, design 10 new residues in the same chain, then keep residues 5-12 of chain B as a separate segment
- 'A1-10,/0,B15-24,/0,120-130' - keep two DNA segments, design a new protein chain of 120-130 residues |  |
| `total_length` | `string` | ✓ | Total length of the designed system (in residues). A range 'min-max' (e.g. '150-170') samples lengths within the range; a single number (e.g. '160') fixes the length exactly. Required |  |
| `design_unindex` | `string` | ✗ | Optional extra (unindexed) motif residues to preserve from the input structure, beyond those given in contigs. Plain residues/ranges are comma-separated; '/0' starts a new chain segment. Examples:
- 'A108,A139' - preserve residues 108 and 139 of chain A
- '/0,/0,B251-B255' - open two new chains, then preserve residues 251-255 of chain B |  |
| `select_fixed_atoms` | `string` | ✗ | Residues whose coordinates must stay fixed during diffusion (e.g. the catalytic motif or binding-site residues). One entry per line; each entry is either 'residue(s):atoms' or residue(s) only:
- Residue with specific atoms: 'A108:ND2,CG' (fix only atoms ND2 and CG of A108)
- Residue range with atoms: 'D24-27:CA,CB' (fix atoms CA and CB of residues D24 to D27)
- Residue only (all atoms fixed): 'E64' or 'E64,E88,E96' (comma-separated)
- 'E64:null' explicitly fixes nothing; 'E64:ALL' fixes every atom of the residue |  |
| `select_hbond_donor` | `string` | ✗ | Optional DNA atoms that should act as hydrogen-bond donors to the designed protein, biasing diffusion toward satisfying these H-bonds. One entry per line:
- With atoms: 'D31-32:N6' or 'D33-36:N8,N9' (residue or range : atom names)
- Residue only: 'D40' or 'D40,D43,D46' (comma-separated) |  |
| `select_hbond_acceptor` | `string` | ✗ | Optional DNA atoms that should act as hydrogen-bond acceptors for the designed protein, biasing diffusion toward satisfying these H-bonds. One entry per line:
- With atoms: 'C16:N7,O6' or 'D31-32:N7' (residue or range : atom names)
- Residue only: 'C16' or 'C16,D20,D25' (comma-separated) |  |
| `num_designs` | `number` | ✓ | Number of independent designs to generate (1-5000). Each design is a full pipeline run: backbone diffusion -> MPNN sequence design -> structure-prediction validation. Runtime scales linearly with this value |  |

### 示例代码

#### 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": "RFdiffusion3",
    "tool_name": "design_dna_binder_gpu_design_dna_binder_gpu_post",
    "parameters": {
    "predictor": "<PREDICTOR>",
    "pdb_file": "<PDB_FILE_FILE_ID>",
    "contigs": "<CONTIGS>",
    "total_length": "<TOTAL_LENGTH>",
    "design_unindex": "<DESIGN_UNINDEX>",
    "select_fixed_atoms": "<SELECT_FIXED_ATOMS>",
    "select_hbond_donor": "<SELECT_HBOND_DONOR>",
    "select_hbond_acceptor": "<SELECT_HBOND_ACCEPTOR>",
    "num_designs": ""
},
    # 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. Small Molecule Binder Design: design proteins that bind to a small molecule ligand.

**Tool Name:** `design_small_molecule_binder_gpu_design_small_molecule_binder_gpu_post`

**Method:** `POST`

### 参数

| 参数名 | 类型 | 必需 | 说明 | 枚举值 |
|--------|------|------|------|--------|
| `predictor` | `select` | ✗ | Structure-prediction method used to validate the designs: after RFdiffusion3 generates backbones and MPNN assigns sequences, each design is re-predicted and scored by confidence metrics (ipTM / pLDDT) to assess whether the design folds as intended. Allowed values: 'AlphaFold3' (default) or 'RosettaFold3' | `AlphaFold3`, `RosettaFold3` |
| `pdb_file` | `file` | ✓ | Input protein-ligand complex structure file (PDB or CIF format) containing the target ligand(s) referenced by ligand_residues_name; the ligand's binding pose is kept fixed and the binder is designed around it<br/>file suffix: `pdb`, `cif` |  |
| `ligand_residues_name` | `string` | ✓ | 3-letter residue name(s) of the target ligand(s) in the input structure that the designed protein should bind. Comma-separated, e.g. 'NAD,OXM,ACT'. Required |  |
| `total_length` | `string` | ✓ | Total length of the designed protein (in residues). A range 'min-max' (e.g. '150-180') samples lengths within the range; a single number (e.g. '165') fixes the length exactly. Required |  |
| `select_fixed_atoms` | `string` | ✗ | Residues whose coordinates must stay fixed during diffusion (e.g. the catalytic motif or binding-site residues). One entry per line; each entry is either 'residue(s):atoms' or residue(s) only:
- Residue with specific atoms: 'A108:ND2,CG' (fix only atoms ND2 and CG of A108)
- Residue range with atoms: 'D24-27:CA,CB' (fix atoms CA and CB of residues D24 to D27)
- Residue only (all atoms fixed): 'E64' or 'E64,E88,E96' (comma-separated)
- 'E64:null' explicitly fixes nothing; 'E64:ALL' fixes every atom of the residue |  |
| `select_buried` | `string` | ✗ | Optional ligand atoms that the designed protein should fully bury (relative accessible surface area bin 0). One entry per line:
- With atoms: 'IAI:C22,C23,C25,C24' (ligand residue name : atom names)
- Residue only: 'IAI' or 'IAI,ABC' (comma-separated) |  |
| `select_partially_buried` | `string` | ✗ | Optional ligand atoms that should be partially buried by the designed protein (relative accessible surface area bin 1). One entry per line:
- With atoms: 'IAI:N14,C19,C11,N12' (ligand residue name : atom names)
- Residue only: 'IAI' or 'IAI,ABC' (comma-separated) |  |
| `select_exposed` | `string` | ✗ | Optional ligand atoms that should remain solvent-exposed, i.e. NOT covered by the designed protein (relative accessible surface area bin 2). One entry per line:
- With atoms: 'IAI:O8,C4,C1,N3,C10' (ligand residue name : atom names)
- Residue only: 'IAI' or 'IAI,ABC' (comma-separated) |  |
| `num_designs` | `number` | ✓ | Number of independent designs to generate (1-5000). Each design is a full pipeline run: backbone diffusion -> MPNN sequence design -> structure-prediction validation. Runtime scales linearly with this value |  |

### 示例代码

#### 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": "RFdiffusion3",
    "tool_name": "design_small_molecule_binder_gpu_design_small_molecule_binder_gpu_post",
    "parameters": {
    "predictor": "<PREDICTOR>",
    "pdb_file": "<PDB_FILE_FILE_ID>",
    "ligand_residues_name": "<LIGAND_RESIDUES_NAME>",
    "total_length": "<TOTAL_LENGTH>",
    "select_fixed_atoms": "<SELECT_FIXED_ATOMS>",
    "select_buried": "<SELECT_BURIED>",
    "select_partially_buried": "<SELECT_PARTIALLY_BURIED>",
    "select_exposed": "<SELECT_EXPOSED>",
    "num_designs": ""
},
    # 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/RFdiffusion3>
