The process that gives rise to the swim bladder. This process pertains to the initial formation of a structure from unspecified parts. The swim bladder is used by some fishes to maintain buoyancy and may function in addition as a sound producing organ, a sound receptor, and a respiratory organ.