Using the Office 365 unified API you can create groups.
There are 4 types of groups: DLs, Security Groups, Email enabled Security Groups and Unified Groups.
Unified groups are the ones that have content, like conversations, events and files.
You can create groups by doing a POST to https://graph.microsoft.com and passing the groupType='Unified'
However, due to the distributed nature of the services, after creating the unified group via the API, you will not get instant access to the group content.
In addition, the groups functionality is still being deployed to all the production services so you might not have it in your tenant yet.