The SQL Power Architect Community Edition is a cross-platform, open-source data modeling tool with a GUI and an embeddable API.