XRD / DiffractGPT¶
XRD analysis suite: simulate powder XRD patterns from crystal structures, match experimental data to JARVIS-DFT, Rietveld-style refinement, AI-powered peak identification via DiffractGPT, POSCAR to XYZ conversion.
Overview¶
XRD analysis suite: simulate powder XRD patterns from crystal structures, match experimental data to JARVIS-DFT, Rietveld-style refinement, AI-powered peak identification via DiffractGPT, POSCAR to XYZ conversion.
Data Source
dft_3d + DiffractGPT model
Endpoints¶
GET /xrdPOST /xrd/queryGET /pxrd/queryGET /xrd/analyzePOST /xrd/analyzePOST /xrd/analyze_with_refinementGET /diffractgpt/queryPOST /xrd/poscar_to_xyzPOST /xrd/generate
Request Models: XRDAnalysisRequest, XRDRefinementRequest, XRDGenerateRequest
Authentication
All POST endpoints require Authorization: Bearer YOUR_TOKEN.
API Example¶
import requests
response = requests.post(
"https://atomgpt.org/xrd/query",
headers={
"Authorization": "Bearer sk-XYZ",
"accept": "application/json",
"Content-Type": "application/json",
},
json={"jid": "JVASP-1002"},
)
data = response.json()
print(data)
AGAPI Agent¶
from agapi.agents import AGAPIAgent
import os
agent = AGAPIAgent(api_key=os.environ.get("AGAPI_KEY"))
response = agent.query_sync("Show xrd / diffractgpt for Silicon")
print(response)
Reference¶
- J. Phys. Chem. Lett. 16, 2110 (2025)