If I was a female martial artist:
A female martial artist's strength is good, but given her probable build I would have to say that the bulk of her strength would rest in agility, speed, and swiftness of foot. She could be strong, too, even stronger then some men--but probably not physically stronger than a well trained male soldier, so she'll have to be more clever and use her brain. Plus, given that the soldier is about ten years her senior (and far from being "old"), then it is safe to say that he has more battle experience. Thus, it might be unwise to rush into a physical fight unless you have the element of surprise. Especially since he is probably dressed in armor, which doesn't exactly bode well for the armor-less martial artist's attacks. So, she'll have to be more clever. Even then, if you're not careful, he could still regain the upper hand even if you somehow caught him off guard.
But, none of that matters so long as you are locked up inside the room. So, she would have to start by calmly sitting down quietly and analyzing her situation in detail. (Plus, the guard's defense will be lower if you're not bouncing off the walls, shouting, and desperately looking for a way out).
As you said, you'd have to go through the door, and the fact that there is only one guard there means that there will be no one coming to the guard's aid if he is in distress. That's one positive point. What you have to work with are any clothes the martial artist is wearing (including the headband), the bed itself (which is probably wood) with any linens it may have, probably a bedside table with either an oil lamp and/or washbowl (not exactly sure what level of tech is in this world, but assumed this from your description), and maybe a rug on the floor. I can't imagine there being too much else inside the room without it being
too convenient. You have to note that anything too noisy, such as moving or breaking things off the bed are going to catch the guard's attention. He'll be sure to look over his shoulder, and that would make you loose the element of surprise.
Put the crossed out stuff in a spoiler:
Spoiler
So, given the circumstances, I'm going to say that the most practical bet is to somehow get the key, which is out of reach. Luckily, your arms can fit through the bars--but that is not too uncommon and the guard is still out of reach. You may consider at first using your headband as a whip and piss him off by taunts and smacking him with it until he came inside-- but the likelihood that this would work is low. You would more realistically raise his defenses, and if you annoyed him too much he may just step further away from the door and entirely out of reach instead of him childishly giving into coming into the room to throttle you. That would make you worse off then you originally were. So you can eliminate that thought process. It wasn't very well thought out, it was just brain storming. So, scratch that idea.
Yet, the headband was not a bad idea as a whole. It could still be used. What my next instinct would be is to take off the headband (which I'm assuming, giving the job class that it is a wrap headband) and wrap one end around my dominant hand, because my dominant hand will have more control. I would try and whip or lasso the keys. Now, be realistic, they aren't going to come to you at the end of your headband like in a cartoon. Instead, they are more likely to fall to the ground somewhere between the cell door and the guard.
His natural instinct will be to lash around, look at you and the keys, and then lunge for the keys with the natural assumption that you mean to reach for them. But you aren't going to do that. You're going to take advantage of the fact that someone who was previously out of reach is now bending over quickly and thoughtlessly into grabbing range. You can either try and grab his clothes / armor, or you can opt to try and use the headband to lasso around the back of his neck as he leans forward. Either way, once you have him, with all of your strength (especially since he's not expecting it) and with all of your body, jerk his head into the bars so hard that you break his nose and knock him out. At the very least, you will stun him. So, if he's not knocked out, repeat introducing his face to the metal bars as many times as you can until he is out cold. When you've made sure he's unconscious, take the keys he was reaching for and unlock the cell. Once you are free, put him in the cell, maybe tying him to the bed with the sheets and gagging him with your headband in case he wakes up and tries to call for help. Then, lock him in the cell and throw the keys far out of reach.
Note, this is pretty high risk, but maybe your only shot at freedom. If, when initiating, you fail to knock the keys off his belt, you're dead in the water. He'll realize what you're doing. Then, after knocking the keys off, if you do not strike with precision at the right moment when he reaches for the keys, you've lost your moment of surprise. After all, move too soon and he may see you and flinch back. Too late and he will have already risen out of your reach and realized your intent, thus not allowing you to put him in the same position twice. In other words, he will move further away from the door and be extra cautious for the rest of the time you are there.
Once out of the cell, I originally thought "hey, you could wear his armor and sneak around!" But unless he is an unrealistically very thin guy, I doubt a 20 year old woman would fit into a 30 year old male soldier's uniform. It would be WAY too baggy. So, scratch that idea and vote for stealth mode. After all, no one expects you to be out of your cell. Once again, the element of surprise is your only ticket out. If I could, I would definitely stay out of sight, and try to find someone whom I could impersonate. If there are any lone standing female soldiers on patrol, I'd try and make a point to jump them and "borrow" their clothes. Wearing the enemy's clothes may make it easier to reach your friends. Just beware of friendly fire as your friends may not know YOU are YOU.
...Meh, that's just what I would think of.
EDIT: oh my gosh! I didn't know how long this was! Sorry...I like to write, I guess. 😛
Edit / Edit: I just re-read this. This is still reaching. I'd still say, realistically, the best bet would be to lure the guard into the room and then jump him. He may be immune to "I'm sick" tricks, but if the prisoner is THAT important, he has to make sure she's safe. Therefore, since she's a high honor martial artist, it may not seem unrealistic that she may try to take her own life as an ultimate means of escape. So if he perceived that she was hanging herself, for example, he would have to rush in and try to get her down before she choked to death. Well, then she--being a martial artist---could wrap her legs around his head while she is hanging there and he trying to get her down, take him by surprise and... 🙁 ...
...Let's just say attack him and render him unconscious. 😉