In any triangle \( A + B + C = 180^\circ \). Therefore, \( A + B = 180^\circ - C \).
Now, we have:
\[
\frac{A + B}{2} = \frac{180^\circ - C}{2} = 90^\circ - \frac{C}{2}.
\]
Thus:
\[
\csc \left( \frac{A + B}{2} \right) = \csc \left( 90^\circ - \frac{C}{2} \right).
\]
Using the identity \( \csc (90^\circ - x) = \sec x \), we get:
\[
\csc \left( \frac{A + B}{2} \right) = \sec \frac{C}{2}.
\]
Thus, the correct answer is \( \boxed{\sec \frac{C}{2}} \).