There is currently no API to create google docs directly except for: 1) make a google apps script service, which does have access to the docs api. 2) create a ".doc" then upload and convert to gdoc.
1 is best but a gas service has some limitations like quotas. If you are only creating dozens/hundreds per day you will be ok with quotas. Ive done it this way for something similar as your case.