Here's the story: robot girl discovers she's in a book, a book where she gets murdered , and decides to use this knowledge to be one step ahead.
On the one hand: Robots. Sci-Fi.
On the other hand: There turns out to be a girl who can travel into books, and the robot girl uses other, book girl, to help her exact revenge. Magic book traveling? Not Sci-FI.
BUT Travelling into books, while meta, isn't really the traditional definition of fantasy. Especially because they stay in the same book.
So! Is the book travelling fantasy enough to call it science fantasy? Or is just in that grey area of speculative.
I've been leaning toward Speculative, but I feel like sometimes speculative can imply it's closer to contemporary. Like "there's some magical realism" or "there's some science-y stuff, but it's not enough to be Sci-Fi." whereas, the robot girl, is the main character.