It is a blend, and the game is quite deliberate about blurring the line. Here is how the main pieces break down.
The Brotherhood is loosely based on the historical Hashashin, a faction defined by political and social aims. Their leader, Hassan-i Sabbah, is often cited as a root of the word "assassin". Rather than raising a conventional army, they trained sleeper agents — the fedayeen — to infiltrate enemy ranks.
These represent the geoglyphs in Peru known as the Nazca Lines, folded into the game's fiction as markers left for the Assassins and Templars.
Within the story, Subject 16 knew of a Templar plot to launch a Piece of Eden into orbit as a display of power and a means of controlling minds. The Pieces of Eden themselves are entirely fictional.
It points to a Japanese island for reasons the creators have never convincingly explained, though a hidden Piece of Eden is the implied answer.
In game lore, the Apple grants power over the first civilisation and can project or duplicate a person's body. It was given to the first line of humans before that civilisation fell, and it holds the power either to destroy humanity or save it — which is the point of the woman who appears at the end.
The Staff is said to compel obedience, and the first civilisation reportedly used it to make humans comprehend them rather than destroy them. Its power, however, is described as nothing beside the Apple's.
The last image is of Eve — as in Adam and Eve — which implies Subject 16 descends from them. Read alongside the Apple on the tree, it pushes the game's mythology back to a religious origin point far earlier than the historical Assassins.
So: the Hashashin, the Nazca Lines and the general historical backdrop are real; everything involving Eden, the Pieces and Subject 16's lineage is invention.