Predict Drug–Target Interactions with the MAMMAL API Endpoint from Cure Cancer With AI
July 6, 2026

Photo by Tima Miroshnichenko on Pexels
The MAMMAL drug–target interaction API, accessible via POST /api/v1/mammal/dti, is a powerful tool within the free Cure Cancer With AI public API that addresses a critical challenge in the field of drug discovery: predicting the binding affinity between compounds and their target proteins. By utilizing the sophisticated IBM MAMMAL model, this endpoint provides researchers and developers with the ability to estimate how strongly a drug candidate may bind to a specific target, an essential step in the early phases of drug development.
Why This Endpoint Matters
Understanding the binding affinity of a drug to its target is a foundational element in the drug discovery process. A strong binding affinity typically indicates that the drug is likely to be effective, making this information invaluable for researchers and developers. However, traditional methods of determining this affinity can be time-consuming and resource-intensive, often requiring specialized setups and extensive computational resources. The MAMMAL API simplifies this process, making it accessible for anyone with an API key, thus democratizing access to critical drug interaction data.
How to Use It
To utilize the MAMMAL drug–target interaction API, you need to make a POST request to the endpoint /api/v1/mammal/dti. The request requires a JSON body containing two essential parameters:
- target_seq: This is the amino-acid sequence of the target protein.
- drug_seq: This refers to the drug’s structure, represented in SMILES notation.
Additionally, you can include optional parameters norm_y_mean and norm_y_std if you wish to override the default normalization values.
Upon a successful request, the API will return a JSON response structured as follows:
{
"data": {
"pKd":
}
}
Here, pKd represents the predicted binding affinity, calculated as the negative logarithm of the dissociation constant (Kd). A higher pKd value indicates a stronger predicted binding, which is desirable in drug interactions.
Here’s an example using curl to demonstrate how to make a request to this endpoint:
curl -X POST https://curecancerwithai.com/api/v1/mammal/dti \
-H "Authorization: Bearer ccw_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"target_seq": "ACDEFGHIKLMNPQRSTVWY",
"drug_seq": "CC(=O)Oc1ccccc1C(=O)O"
}'
In this example, replace YOUR_KEY with your actual API key. The target_seq and drug_seq parameters are provided in the JSON body to specify the protein target and drug structure, respectively.
What You Can Build
The MAMMAL API opens up a range of possibilities for developers and researchers in the field of drug discovery. Here are a few concrete use cases:
- Compound Library Ranking: Researchers can use this endpoint to rank a library of compounds against a specific target, identifying the best candidates for further testing.
- Hit Triage: Before conducting expensive and time-consuming assays, users can triage their hits by predicting binding affinities, thus saving valuable resources.
- Discovery Pipeline Enhancement: Integrating binding-affinity predictions into a drug discovery pipeline allows teams to make data-driven decisions early in the development process.
These applications not only streamline research efforts but also lead to more efficient drug discovery workflows, ultimately speeding up the journey from the lab to potential therapies.
Get Started for Free
To begin using the MAMMAL API, create your free API key at /api-keys. This API allows for a generous free tier of 100 requests per hour, perfect for individual researchers or small teams looking to explore drug–target interactions without a financial barrier. For full documentation, including parameters and additional code samples, visit /developers.
Conclusion
The MAMMAL drug–target interaction API is a valuable resource for anyone involved in drug discovery. By providing an easy way to estimate drug binding affinities, it empowers researchers to make informed decisions early in the drug development process. Remember, the insights derived from this API are for informational and research purposes only and should not be construed as medical advice. As you explore this powerful tool, consider how it can enhance your drug discovery efforts.
To dive deeper into practical AI-for-cancer-research updates, explore our latest blog posts, learn more about our mission, and see how you can support ongoing work on our donations page.
