Do you have brothers or sisters?

No, I don't. I am an only child.
---------------------------
What about "I am the only child"?
Are both OK?

Both are just fine. Sometimes the question is asked with "any" in it, but either way works fine. (Do you have any brothers or sisters?)

=)