EX-23.1 2 a2183293zex-23_1.htm EXHIBIT 23.1
QuickLinks -- Click here to rapidly navigate through this document


Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

        We consent to the reference to our firm under the caption "Experts" and to the use of our report dated March 3, 2008, in Amendment No. 1 to the Registration Statement (Form S-1 Registration No. 333-149846) and related Prospectus of Zogenix, Inc. to be filed with the Securities and Exchange Commission for the registration of its shares of common stock.

    /s/ Ernst & Young LLP

San Diego, California
May 7, 2008




QuickLinks