Cox ring of the generic fiber