agapi
Project description
🌐 AtomGPT.org API (AGAPI)
AGAPI provides a simple way to interact with AtomGPT.org, enabling Agentic AI materials science research through intuitive APIs.
A significant amount of time in computational materials design is often spent on software installation and setup — a major barrier for newcomers.
AGAPI removes this hurdle by offering APIs for prediction, analysis, and exploration directly through natural language or Python interfaces, lowering entry barriers and accelerating research.
📖 Table of Contents
- API Docs
- 🧠 Capabilities & Example Prompts
- 1️⃣ Access Materials Databases
- 2️⃣ Graph Neural Network Property Prediction
- 3️⃣ Graph Neural Network Force Field
- 4️⃣ X-ray Diffraction → Atomic Structure
- 5️⃣ Live arXiv Search
- 6️⃣ Web Search
- 7️⃣ Visualize Atomic Structures
- 8️⃣ General Question Answering
- 9️⃣ Structure Manipulation
- 🔟 Voice Chat Interaction
- 🚀 Quickstart
- 🎥 YouTube Demos
- 📚 References
- ❤️ Note
API Docs
Replace sk-XYZ with your API key from atomgpt.org>>account>>settings.
🧠 Capabilities & Example Prompts
AGAPI supports natural language interaction for a wide range of materials science tasks.
Each section below includes a prompt example and expected output.
1️⃣ Access Materials Databases
Prompt:
List materials with Ga and As in JARVIS-DFT
Response:
Displays all GaAs-containing entries from the JARVIS-DFT database.
2️⃣ Graph Neural Network Property Prediction (ALIGNN)
Prompt:
Predict properties of this POSCAR using ALIGNN
(Upload a POSCAR, e.g. example POSCAR file)
Response:
Returns AI-predicted material properties (formation energy, bandgap, etc.).
3️⃣ Graph Neural Network Force Field (ALIGNN-FF)
Prompt:
Optimize structure from uploaded POSCAR file using ALIGNN-FF
(Upload a POSCAR, e.g. example file)
Response:
Generates optimized structure and energy data.
4️⃣ X-ray Diffraction → Atomic Structure
Prompt:
Convert XRD pattern to POSCAR
(Upload an XRD file, e.g. example XRD file)
Response:
Predicts atomic structure that best matches the uploaded diffraction pattern.
5️⃣ Live arXiv Search
Prompt:
Find papers on MgB₂ in arXiv. State how many results you found and show top 10 recent papers.
Response:
Summarizes and lists the latest publications from arXiv related to MgB₂.
6️⃣ Web Search
Prompt:
Search for recent advances in 2D ferroelectric materials.
Response:
Fetches and summarizes up-to-date information from web sources on the requested topic.
7️⃣ Visualize Atomic Structures
Prompt:
Visualize the crystal structure of Silicon in 3D.
Response:
Generates a 3D interactive visualization of the given structure (CIF or POSCAR).
8️⃣ General Question Answering
Prompt:
Explain the difference between DFT and DFTB.
Response:
Provides a concise explanation with context and examples.
9️⃣ Structure Manipulation
Prompt:
Replace oxygen atoms with sulfur in this POSCAR.
Response:
Outputs a modified POSCAR file with requested atomic substitutions.
🔟 Voice Chat Interaction
Prompt (spoken):
What is the bandgap of silicon?
Response (spoken):
The bandgap of silicon is approximately 1.1 eV.
Enables voice-based chat for hands-free interaction with materials science tools.
The table below lists available endpoints, the corresponding module, and description.
| Endpoint | Module / Function | Description |
|---|---|---|
/materials/property |
ALIGNN | Predicts materials properties such as formation energy, bandgap, and elastic moduli directly from structure files. |
/materials/forcefield |
ALIGNN-FF | Computes energies, forces, and stresses for structure relaxation and molecular dynamics simulations with near-DFT accuracy. |
/materials/xrd |
XRDStructurePrediction | Determines atomic structures from uploaded XRD files to identify crystal structures. |
/literature/search |
arXivSearchAgent | Retrieves and summarizes recent arXiv or web publications on specified research topics. |
/visualization/structure |
StructureViewer | Generates interactive 3D visualizations of input structures and enables atomic structure editing. |
/database/jarvis |
JarvisAPI | Provides direct access to JARVIS materials data and pre-computed properties for workflow integration. |
/interface/voice |
VoiceChat | Enables voice-based chat for hands-free interaction with AGAPI. |
/literature/search |
Crossref | Accesses publication metadata and citation information through the Crossref API. |
🚀 Quickstart
Colab Notebook
Try AGAPI instantly in Google Colab:
👉 AGAPI Example Notebook
Python SDK
For detailed SDK usage:
👉 agapi/README.md
🎥 YouTube Demos
Watch AGAPI in action on YouTube:
🎬 AGAPI Demo Playlist
📚 References
- AGAPI-Agents: An Open-Access Agentic AI Platform for Accelerated Materials Design on AtomGPT.org
- ChatGPT Material Explorer: Design and Implementation of a Custom GPT Assistant for Materials Science Applications
- The JARVIS infrastructure is all you need for materials design
- AtomGPT: Atomistic Generative Pretrained Transformer for Forward and Inverse Materials Design
❤️ Note
“AGAPI (ἀγάπη)” is a Greek word meaning unconditional love.
DISCLAIMER
AtomGPT.org can make mistakes. Please verify important information.
We hope this API fosters open, collaborative, and accelerated discovery in materials science.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agapi-2025.12.25.tar.gz.
File metadata
- Download URL: agapi-2025.12.25.tar.gz
- Upload date:
- Size: 40.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86cb903a7a656c5833ff9ab7114979aec1a413674b02a66f327cd949be20b81
|
|
| MD5 |
83ac6863d98b9cce66cf6d4824c1c3a4
|
|
| BLAKE2b-256 |
f72355640210a90208e8f1fad26515738cec854e9f6d735411f73c6e46ecac82
|
File details
Details for the file agapi-2025.12.25-py2.py3-none-any.whl.
File metadata
- Download URL: agapi-2025.12.25-py2.py3-none-any.whl
- Upload date:
- Size: 40.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d97a4c0fe9c9cd5781469e32778a6919ddac2d77769559fb89d970b0b407e624
|
|
| MD5 |
8ec75c51cac0bc91288f890a5655709f
|
|
| BLAKE2b-256 |
6e0055d482526d1d30cd715ab4ae7cb998cbe10de87feb8a4db09966be05f43b
|