A.I. Artificial Intelligence, also known as A.I., is a 2001 American science fiction drama film written, directed, and produced by Steven Spielberg, and based on Brian Aldiss's short story "Super-Toys Last All Summer Long". The film stars Haley Joel Osment, Jude Law, Frances O'Connor, Brendan Gleeson, and William Hurt. Set sometime in the future, A.I. tells the story of David, a childlike android uniquely programmed with the ability to love.
Development of A.I. originally began with director Stanley Kubrick in the early 1970s. Kubrick hired a series of writers up until the mid-1990s, including Brian Aldiss, Bob Shaw, Ian Watson, and Sara Maitland. The film languished in development hell for years, partly because Kubrick felt computer-generated imagery was not advanced enough to create the David character, whom he believed no child actor would believably portray. In 1995, Kubrick handed A.I. to Spielberg, but the film did not gain momentum until Kubrick's death in 1999. Spielberg remained close to Watson's film treatment for the screenplay. The film was greeted with generally favorable reviews from critics and grossed approximately $235 million. A small credit appears after the end credits, which reads "For Stanley Kubrick."
In the late 21st century, global warming has flooded coastlines, and a drastic reduction of the human population has occurred. There is a new class of robots called Mecha, advanced humanoids capable of emulating thoughts and emotions. David (Osment), a prototype model created by Cybertronics of New Jersey, is designed to resemble a human child and to display love for its human owners. They test their creation with one of their employees, Henry Swinton (Robards), and his wife Monica (O'Connor). The Swintons' son, Martin (Thomas), was placed in suspended animation until a cure can be found for his rare disease. Although Monica is initially frightened of David, she eventually warms to him and activates his imprinting protocol, which irreversibly causes David to project love for her, the same as any child would love a parent. He is also befriended by Teddy (Angel), a robotic teddy bear, who takes it upon himself to care for David's well being.
A cure is found for Martin and he is brought home; a sibling rivalry ensues between Martin and David. Martin convinces David to go to Monica in the middle of the night and cut off a lock of her hair, but the parents wake up and are very upset. At a pool party, one of Martin's friends activates David's self-protection programming by poking him with a knife. David clings to Martin and they both fall into the pool, where the heavy David sinks to the bottom while still clinging to Martin. Martin is saved from drowning, but Henry in particular is shocked by David's actions, becoming concerned that David's capacity for love has also given him the ability to hate. Henry persuades Monica to return David to Cybertronics, where David will be destroyed. However, Monica cannot bring herself to do this, and instead abandons David in the forest (with Teddy) to hide as an unregistered Mecha. David is captured for an anti-Mecha Flesh Fair, an event where obsolete and unlicensed Mecha are destroyed in front of cheering crowds. David is nearly killed, but the crowd is swayed by his realistic nature and he escapes, along with Gigolo Joe (Law), a male prostitute Mecha on the run after being framed for murder.
The two set out to find the Blue Fairy, whom David remembers from the story The Adventures of Pinocchio. He is convinced that the Blue Fairy will transform him into a human boy, allowing Monica to love him and take him home. Joe and David make their way to Rouge City. Information from a holographic answer engine called "Dr. Know" (Williams) eventually leads them to the top of Rockefeller Center in partially flooded Manhattan. David meets his human creator, Professor Allen Hobby (Hurt), who excitedly tells David that finding him was a test, which has demonstrated the reality of his love and desire. It also becomes clear that many copies of David are already being manufactured, along with female versions. David sadly realizes he is not unique. A disheartened David attempts to commit suicide by falling from a ledge into the ocean, but Joe rescues him with the amphibicopter. David tells Joe he saw the Blue Fairy underwater, and wants to go down to her. At that moment, Joe is captured by the authorities with the use of an electromagnet, but sets the amphibicopter on submerge. David and Teddy take it to the fairy, which turns out to be a statue from a submerged attraction at Coney Island. Teddy and David become trapped when the Wonder Wheel falls on their vehicle. Believing the Blue Fairy to be real, David asks to be turned into a real boy, repeating his wish without end, until the ocean freezes in another ice age and his internal power source drains away.
Two thousand years later humans are extinct and Manhattan is buried under several hundred feet of glacial ice. Mecha have evolved into a silicon-based, highly advanced and intelligent, alien-looking futuristic Mecha, with the ability to perform some form of time manipulation and telekinesis. On their project to studying humans — believing it was the key to understanding the meaning of existence —, they find David and Teddy and discover they are functional Mecha who knew living humans, making them special and unique. David is revived and walks to the frozen Blue Fairy statue, which cracks and collapses as he touches it. Having received and comprehended his memories, the advanced Mecha use them to reconstruct the Swinton home and explain to David via an interactive image of the Blue Fairy (Streep) that it is impossible to make him human. However, at David's insistence, they recreate Monica from DNA in the lock of her hair which had been saved by Teddy. One of the futuristic Mecha tells David that the clone can only live for single day, and the process cannot be repeated. But David keeps insisting, so they fast forward the time to the next morning, and David spends the happiest day of his life with Monica and Teddy. Monica tells David that she loves him, and has always loved him, as she drifts to sleep for the last time. David lies down next to her, closes his eyes and goes "to that place where dreams are born". Teddy enters the room, climbs onto the bed, and watches as David and Monica lay peacefully together.