Skip to main content
POST
/
target-materials
/
parse
curl -X POST "https://api.atomscale.ai/target-materials/parse" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "BaTiO3 on SrTiO3 on Si"
  }'
{
  "material_name": "BaTiO3/SrTiO3 on Si",
  "substrate": "Si",
  "layers": [
    {
      "formula": "BaTiO3",
      "orientation": null,
      "space_group": null
    },
    {
      "formula": "SrTiO3",
      "orientation": null,
      "space_group": null
    }
  ]
}
Parses a free-text description of a material stack into a structured target material. Send a plain-language prompt (for example, “BaTiO3 on Si”) and the endpoint returns the material name, substrate, and ordered layers.
prompt
string
required
Free-text description of the material stack

Response

material_name
string
Concise label for the material (e.g., BaTiO3/SrTiO3 on Si)
substrate
string
Substrate symbol (e.g., Si). Empty if the prompt describes no substrate.
layers
array
Layers ordered top-to-bottom (topmost first).
curl -X POST "https://api.atomscale.ai/target-materials/parse" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "BaTiO3 on SrTiO3 on Si"
  }'
{
  "material_name": "BaTiO3/SrTiO3 on Si",
  "substrate": "Si",
  "layers": [
    {
      "formula": "BaTiO3",
      "orientation": null,
      "space_group": null
    },
    {
      "formula": "SrTiO3",
      "orientation": null,
      "space_group": null
    }
  ]
}