If you meet the residence requirement in Kansas you can file there. But same sex divorce is a different issue and you should consult a local attorney familiar with the issues to see what the best option is.
Under the rules governing the conduct of attorneys in New York it may be necessary to remind you that this answer could be considered attorney advertising.
If yours was not a same sex marriage, you would be able to get a divorce in KS. The same should apply in same sex marriages, but this depends on KS law. Consult in person with a KS divorce lawyer.
Sign up to receive a 10-part series of useful information and legal advice about the divorce process.