---
updatedAt: 2026-08-06T10:01:06.000Z
---

# Generate new protein structures (binder designs, motif scaffoldings, etc.)

Generate new protein structures (binder designs, motif scaffoldings, etc.)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "NVIDIA NIM API for RFdiffusion",
    "description": "The NVIDIA NIM REST API for protein structure generation with RFdiffusion.",
    "termsOfService": "https://nvidia.com/legal/terms-of-use",
    "contact": {
      "name": "NVIDIA Support",
      "url": "https://help.nvidia.com/"
    },
    "license": {
      "name": "BSD",
      "url": "https://github.com/RosettaCommons/RFdiffusion/blob/820bfdfaded8c260b962dc40a3171eae316b6ce0/LICENSE"
    },
    "version": "2.3.0"
  },
  "servers": [
    {
      "url": "https://health.api.nvidia.com/v1/"
    }
  ],
  "paths": {
    "/biology/ipd/rfdiffusion/generate": {
      "post": {
        "summary": "Generate new protein structures (binder designs, motif scaffoldings, etc.)",
        "operationId": "rfdiffusion_generate_biology_ipd_rfdiffusion_generate_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RFdiffusionInputs"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RFdiffusionOutputs"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-nvai-meta": {
          "name": "rfdiffusion",
          "version": "2.3.0",
          "returns": "Returns predicted new protein structure.",
          "path": "/biology/ipd/rfdiffusion/generate",
          "examples": [
            {
              "name": "Generate a binder protein for target (PDB: 1R42)",
              "requestJson": "{'input_pdb': '<PDB ATOM lines>', 'contigs': 'A20-60/0 50-100', 'hotspot_res': ['A50','A51','A52','A53','A54'], 'diffusion_steps': 15}",
              "responseJson": "{\n  \"output_pdb\": \"ATOM      1  N   GLY A   1     -48.569  85.163  23.276  1.00  0.00\\nATOM      2  CA  GLY A   1     -49.841  85.622  22.732  1.00  0.00\\n...\",\n  \"elapsed_ms\": 1234\n}\n"
            }
          ],
          "templates": [
            {
              "title": "Synchronous requests",
              "requestEjs": {
                "curl": "#!/usr/bin/env bash\nset -e\n\nURL=${URL:-https://health.api.nvidia.com/v1/biology/ipd/rfdiffusion/generate}\n\nif [ ! -e 1R42.pdb ]; then curl -O https://files.rcsb.org/download/1R42.pdb; fi\n\npdb=$(cat 1R42.pdb | grep ^ATOM | head -n 400 | awk '{printf \"%s\\\\n\", $0}')\n\nrequest='{\n \"input_pdb\": \"'\"$pdb\"'\",\n \"contigs\": \"A20-60/0 50-100\",\n \"hotspot_res\": [\"A50\",\"A51\",\"A52\",\"A53\",\"A54\"],\n \"diffusion_steps\": 15\n}'\ncurl -H 'Content-Type: application/json' \\\n     -H \"Authorization: Bearer $NVIDIA_API_KEY\" \\\n     -H \"nvcf-poll-seconds: 300\" \\\n     -d \"$request\" \"$URL\"\n",
                "python": "#!/usr/bin/env python3\nimport requests\nimport os\nimport json\nfrom pathlib import Path\n\ndef get_reduced_pdb():\n    pdb = Path(\"1R42.pdb\")\n    if not pdb.exists():\n        pdb.write_text(requests.get(f\"https://files.rcsb.org/download/{pdb}\").text)\n    lines = filter(lambda line: line.startswith(\"ATOM\"), pdb.read_text().split(\"\\n\"))\n    return \"\\n\".join(list(lines)[:400])\n\nr = requests.post(\n    url=os.getenv(\"URL\", \"https://health.api.nvidia.com/v1/biology/ipd/rfdiffusion/generate\"),\n    headers={\"Authorization\": \"Bearer $NVIDIA_API_KEY\"},\n    json={\n        \"input_pdb\": get_reduced_pdb(),\n        \"contigs\": \"A20-60/0 50-100\",\n        \"hotspot_res\": [\"A50\",\"A51\",\"A52\",\"A53\",\"A54\"],\n        \"diffusion_steps\": 15,\n    },\n)\nprint(r, \"Saving to output.pdb:\\n\", r.text[:200], \"...\")\nPath(\"output.pdb\").write_text(json.loads(r.text)[\"output_pdb\"])\n"
              }
            }
          ]
        },
        "description": "Generate new protein structures (binder designs, motif scaffoldings, etc.)"
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "RFdiffusionInputs": {
        "properties": {
          "input_pdb": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input protein content or file name",
            "description": "This is an input PDB (Protein Data Bank) file: protein chains and amino acids from this file are used to select binder target and motifs.",
            "numpy_dtype": "bytes",
            "triton_shape": [
              1
            ]
          },
          "input_pdb_asset": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input protein asset",
            "description": "Optional pre-uploaded NVCF Asset ID. If using this field, original file name should be provided via input_pdb argument.",
            "numpy_dtype": "bytes",
            "triton_shape": [
              1
            ]
          },
          "contigs": {
            "type": "string",
            "title": "Contiguous Regions",
            "description": "Historically, contigs stands for 'contiguous [protein regions]'. This string defines a protein that is being generated. It is a specification written in a domain-specific language that tells RFdiffusion which part of the input protein are to be kept and what kind of a binder (or a scaffold) needs to be constructed. As an example, a string 'A10-100/0 50-150' instructs RFdiffusion to keep amino acids 10-100 in Chain A [from the input PDB file], then break the chain (special '/0' notation, which signifies the end of the chain and thus effectively makes 'A10-100' a new target protein), and construct a new chain (effectively a binder protein) of length 50 to 150 amino acids.",
            "numpy_dtype": "bytes",
            "triton_shape": [
              1
            ]
          },
          "hotspot_res": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hotspot Residues",
            "description": "The hotspot residues string provides a way to specify which region the new protein (binder) must contact with the original input protein (a target), therefore we can guide a binder to a specific region. In UI, the format of the string is a comma-separated list of amino acids present in the input PDB file, e.g. 'A50,A51,A52' specifies three hotspot residues in the Chain A, at positions 50, 51 and 52. Note that in API, however, the amino acids are specified as a list of strings, e.g. ['A50', 'A51', ...].",
            "numpy_dtype": "bytes",
            "triton_shape": [
              -1
            ]
          },
          "diffusion_steps": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 50,
                "minimum": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Number of diffusion steps",
            "description": "RFdiffusion is a diffusion generative model, it was trained by diffusing (adding noise) to a training data set. The generative process works by reversing the time steps (i.e. denoising): starting from randomly placed atoms, and reverse-diffusing the positions to arrive at a probable atom positions. The diffusion steps parameter tells RFdiffusion how many steps it will run the denoising process for. 1 is the minimum, 50 is the default.",
            "default": 50,
            "numpy_dtype": "uint16",
            "triton_shape": [
              1
            ]
          },
          "random_seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Random Seed",
            "description": "RFdiffusion is a generative model, its function is to generate novel and diverse proteins. Setting random seed allows to turn RFdiffusion into a deterministic model, where an input protein, a task and a fixed seed would always produce the same output. This argument is useful for development purposes, but otherwise should be unset.",
            "numpy_dtype": "int64",
            "triton_shape": [
              1
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "contigs"
        ],
        "title": "RFdiffusionInputs"
      },
      "RFdiffusionOutputs": {
        "properties": {
          "output_pdb": {
            "type": "string",
            "title": "Output protein in PDB format",
            "description": "Output protein in PDB format",
            "numpy_dtype": "bytes",
            "triton_shape": [
              1
            ]
          },
          "elapsed_ms": {
            "type": "integer",
            "title": "Elapsed time on server side",
            "description": "Elapsed time on server side",
            "numpy_dtype": "int64",
            "triton_shape": [
              1
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "output_pdb",
          "elapsed_ms"
        ],
        "title": "RFdiffusionOutputs"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "Token": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Token": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```