Giovanni Ribisi is attached to co-star in the laffer “Ted” with Mark Wahlberg and Seth MacFarlane.

MacFarlane directs, and co-wrote the film with Alec Sulkin and Wellesley Wild.

The film follows a grown man dealing with his cherished teddy bear that came to life as the result of a childhood wish.

Ribisi will play Donny, a man who’s obsessed with Ted, while Wahlberg plays the grown up.

Mila Kunis is in final negotiations on the film. MacFarlane, Scott Stuber and John Jacobs are to produce through Stuber Films.

Since co-starring in “Avatar,” Ribisi has been busy filling his slate. Besides “Ted,” he’s filming “Contraband,” which also stars Wahlberg, is in “Waco” and “The Rum Diaries” with Johnny Depp.

Ribisi is repped by CAA, Management 360 and Hansen, Jacobson, Teller, Hoberman, Newman, Warren & Richman.