from typing import Any


def get_artist_names(res: dict[str, Any]) -> str:
    """
    Retrieves all artist names for a given input to the "album" key of a response.
    """

    artists = []
    for artist in res["artists"]:
        artists.append(artist["name"])
    artists_str = ", ".join(artists)

    return artists_str