The HyperSizer equivalent to a HyperX Zone is a Component. HyperSizer components could not be created through the HyperSizer Scripting API, but Zones can be created through the HyperX Scripting API.
A standard HyperX Zone must live on a Structure and is comprised of FEA elements. Non-FEA Zones can also be created, and do not require a Structure. Both are created in this example.
import hyperx as hx
def CreateHyperXZone(project: hx.Project, structure: hx.Structure):
"""Create a new HyperX zone."""
zoneName = "My Zone"
elementIds = (1, 2, 3, 4, 5)
zone = structure.CreateZone(elementIds, zoneName)
nonFeaZone = project.CreateNonFeaZone(hx.types.FamilyCategory.Panel, "My Non-Fea Zone")