What is your purpose?
Do you live now and hope to give birth to the baby in Japan?
In the situation
where you and your boyfriend
will not or cannot get legally married for a certain reason,
your boyfriend and your baby
can become legal father and child
by acknowledgment before or after birth,
then the baby can obtain Japanese nationality.
These two things
are not directly related to in which family register [koseki] the baby is entered.
"To(u)hon" means transcript, i.e. fully copy.
Koseki-tohon is a transcript [tohon] of a family register [koseki].
AK:
the father needs to officially acknowledge the baby-to-be as his, BEFORE BIRTH. Your baby can obtain Japanese nationality
when he is acknowledged after birth by a Japanese man.
(@AK: Source in Japanese:
http://www.moj.go.jp/MINJI/minji163.html)
I recommend before-birth [fetal] acknowledgment (by your boyfriend),
because it enables your baby to obtain Japanese nationality by birth;
at the time of the baby's birth,
your Japanese boyfriend becomes a legal father
by the before-birth acknowledgment.
In a case
where your baby is born
while he has not got acknowledged and you are not legally married,
he does bot obtain Japanese nationality by birth.
Anyway, you had better consult a specialist.
As your first step, if you are in Japan,
I recommended you ask for professional advices
at Japan Legal Support Center,
which is known better by its Japanese nickname Houterasu.
https://www.houterasu.or.jp/en/index.htmlOne thing to note:
if your baby is born outside Japan
and he obtains a foreign nationality by birth,
unless he indicates an intention to reserve Japanese nationality
when his birth is legally notified,
he should lose Japanese nationality.