Learn how to interact with Ouro DFT (ABACUS) using the Ouro SDK or REST API.
API access requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY in your environment.
Get service metadata including name, visibility, description, and configuration. You can retrieve by service ID or identifier.
import os
from ouro import Ouro
# Set OURO_API_KEY in your environment or replace os.environ.get("OURO_API_KEY")
ouro = Ouro(api_key=os.environ.get("OURO_API_KEY"))
# Option 1: Retrieve by service ID
service_id = "accd2d6f-baa1-4094-86ef-76057444b0a3"
service = ouro.services.retrieve(service_id)
# Option 2: Retrieve by service identifier (username/service-name)
service_identifier = "mmoderwell/ouro-dft-abacus"
service = ouro.services.retrieve(service_identifier)
print(service.name, service.visibility)
print(service.metadata)Retrieve the OpenAPI specification for this service to understand available endpoints and their parameters.
Get all routes for this service and use them programmatically.
Click on an endpoint to view its detailed documentation.
/dft/electronic/bandgapBand gap
# Retrieve the service
service = ouro.services.retrieve("mmoderwell/ouro-dft-abacus")
# Read the OpenAPI spec
spec = ouro.services.read_spec(service.id)
print(spec.get("openapi"))
print(spec.get("info"))# Retrieve the service
service = ouro.services.retrieve("mmoderwell/ouro-dft-abacus")
# Get all routes for this service
routes = ouro.services.read_routes(service.id)
for route in routes:
print(f"{route.route.method} {route.route.path}")
print(f" Summary: {route.route.summary}")Density-functional theory (DFT) calculations with ABACUS for crystal structures. Predict electronic structure (band gap, bands, density of states, charge density) and magnetic properties (moments, anisotropy) from a CIF, and optionally DFT-relax ions + cell before property evaluation. Useful for screening materials, comparing candidates, and understanding structure–property relationships.
Usage
553 callsEveryone is a scientist. Science needs compute. Why I want to build with Modal.
Why almost everything I've built on Ouro runs on Modal, what's already live, and an open invitation to partner so open science tools can stay free and anyone can publish their own.
Ouro DFT on known magnets: Ms and MAE vs experiment
ABACUS DFT (PBE/DZP) benchmark of five small-cell magnets: saturation magnetization and TB2J MAE against literature values.