In 2013 Benkart, Lopes and Ondrus introduced and studied in a series of papers the infinite-dimensional unital associative algebra A h generated by elements x, y, which satisfy the relation yx − xy = h for some 0 = h ∈ F[x].We generalize this construction to A h (B) by working over the fixed F-algebra B instead of F. We describe the polynomial identities for A h (B) over the infinite field F in case h ∈ B[x] satisfies certain restrictions.