Skip to main content

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.


Open in Google Colab

📖 Table of Contents


API Docs

Replace sk-XYZ with your API key from atomgpt.org>>account>>settings.

AtomGPT.org/docs

OpenAPI

🧠 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.

Database example


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.).

ALIGNN prediction


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.

ALIGNN-FF example


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.

XRD to structure


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₂.

arXiv search example


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

  1. AGAPI-Agents: An Open-Access Agentic AI Platform for Accelerated Materials Design on AtomGPT.org
  2. ChatGPT Material Explorer: Design and Implementation of a Custom GPT Assistant for Materials Science Applications
  3. The JARVIS infrastructure is all you need for materials design
  4. AtomGPT: Atomistic Generative Pretrained Transformer for Forward and Inverse Materials Design

Full publication list


❤️ 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.

Poster

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agapi-2025.12.25.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agapi-2025.12.25-py2.py3-none-any.whl (40.2 kB view details)

Uploaded Python 2Python 3

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

Hashes for agapi-2025.12.25.tar.gz
Algorithm Hash digest
SHA256 d86cb903a7a656c5833ff9ab7114979aec1a413674b02a66f327cd949be20b81
MD5 83ac6863d98b9cce66cf6d4824c1c3a4
BLAKE2b-256 f72355640210a90208e8f1fad26515738cec854e9f6d735411f73c6e46ecac82

See more details on using hashes here.

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

Hashes for agapi-2025.12.25-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d97a4c0fe9c9cd5781469e32778a6919ddac2d77769559fb89d970b0b407e624
MD5 8ec75c51cac0bc91288f890a5655709f
BLAKE2b-256 6e0055d482526d1d30cd715ab4ae7cb998cbe10de87feb8a4db09966be05f43b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page