3D Printer with API or SDK

Does anybody know of a 3D printer with an API or SDK such that one need not necessarily model something in Blender or the like but can instead in code define what should be printed? I’ve been looking but haven’t seemed to be able to find one. I figure some users here may have 3D printing experience and may know of such a device. :] Thanks!

Colton

http://wiki.solidoodle.com/gcode-guide

http://reprap.org/wiki/G-code#Introduction

Thank you very much! That example, though maybe even less high-level than ideal, is a great start!