Ocean producers make their own energy, usually from sunlight. It uses the process of photosynthesis.
Some producers, located deep in the dark ocean by thermal vents, make their own energy using chemosynthesis. This producer is a type of bacteria.
Here are some helpful links:
Sciencelearn.org
and EcosystemBiology
explain the ocean's producers and consumers.