Learn how to interact with this file 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 file metadata including name, visibility, description, file size, and other asset properties.
Get a URL to download or embed the file. For private assets, the URL is temporary and will expire after 1 hour.
Update file metadata (name, description, visibility, etc.) and optionally replace the file data with a new file. Requires write or admin permission.
Permanently delete a file from the platform. Requires admin permission. This action cannot be undone.
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"))
file_id = "de4fd0e3-713c-4d3c-84b1-6781bbea4db1"
# Retrieve file metadata
file = ouro.files.retrieve(file_id)
print(file.name, file.visibility)
print(file.metadata)# Get signed URL to download the file
file_data = file.read_data()
print(file_data.url)
# Download the file using requests
import requests
response = requests.get(file_data.url)
with open('downloaded_file', 'wb') as output_file:
output_file.write(response.content)# Update file metadata
updated = ouro.files.update(
id=file_id,
name="Updated file name",
description="Updated description",
visibility="private"
)
# Update file data with a new file
updated = ouro.files.update(
id=file_id,
file_path="./new_file.txt"
)# Delete a file (requires admin permission)
ouro.files.delete(id=file_id)Crystal structure for MnFe4(CoB2)2 | Space group: 38 (resolved from structure) | Number of atoms: 11 | Generated: 2025-09-14 16:51:48
Supercell 3x3x3 of MnFe4(CoB2)2 (Space group: Amm2, 108 symmetry operations)
Phonon band structure (supercell [2, 2, 2], Δ=0.01 Å); no imaginary modes; min freq = -0.13 THz
Phase diagram of MnFe4(CoB2)2; e_above_hull: 0.163655 eV/atom; predicted_stable: False
AI-discovered magnetic material: MnFe4(CoB2)2 (performance score: 0.731) | Space group: 38 (resolved from structure) | Key properties: Tc: 518K, Ms: 0.12T, Cost: $10/kg, E_hull: 0.164eV/atom, Dynamically stable | Discovered in 2 AI iterations | The material MnFe4(CoB2)2 demonstrates promising magnetic properties with a Curie temperature above 500 K and magnetic density above 0.1, confirming its potential as a high-performance magnetic material. Its low cost and dynamic stability are additional advantages. The slight excess in energy above hull indicates that minor compositional or structural tuning might be needed to improve thermodynamic stability. This suggests that the compound is close to being stable and could be optimized further.