I don't think you can create fields (columns) in a list/library at the same time when creating it as the REST endpoints for list/library and fields are different. So you will have to first create your document library and then add fields to it.
The Fields REST API reference on MSDN is a pretty comprehensive guide on how to create different type of fields. For e.g. to create a text field you can use the below sample code:
$.ajax({
url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741')
/fields",
type: "POST",
data: "{ '__metadata': { 'type': 'SP.FieldText' }, 'FieldTypeKind': 2,
'Title': 'Project Name', 'MaxLength': '22' }",
headers: {
"X-RequestDigest": <form digest value>,
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"content-length": <length of body data>
},
success: successHandler,
error: errorHandler
});