Yes, both GitHub and SwaggerHub offer a Free Trial.
GitHub is designed for Freelancers, Large Enterprises, Medium Business and Small Business.
SwaggerHub is designed for Large Enterprises, Medium Business and Small Business.
Pricing for GitHub Starts at $4/User/Month whereas for SwaggerHub Starts at $90/Month when Billed Yearly.
Some top alternatives to GitHub includes LiveCode, Codeanywhere, Visual Studio IDE, CodeinCloud, GitLive, Microsoft Azure, GitLab, CodeSee and Bitbucket.
Some top alternatives to SwaggerHub includes Apigee Edge, Postman, MuleSoft Anypoint Platform, WSO2 API Manager, RepreZen API Studio, Stoplight, APITree, Apitive Studio, Meta API and Dapi.