Attached files

file filename
EX-31.2 - EX-31.2 - AFFYMAX INCa2202521zex-31_2.htm
EX-32.1 - EX-32.1 - AFFYMAX INCa2202521zex-32_1.htm
EX-31.1 - EX-31.1 - AFFYMAX INCa2202521zex-31_1.htm
EX-10.42 - EX-10.42 - AFFYMAX INCa2202521zex-10_42.htm
EX-10.43 - EX-10.43 - AFFYMAX INCa2202521zex-10_43.htm
10-K - 10-K - AFFYMAX INCa2202521z10-k.htm

QuickLinks -- Click here to rapidly navigate through this document


Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

        We consent to the incorporation by reference in the Registration Statements on Form S-8 (Nos. 333-139810, 333-149773, 333-158070, 333-165218 and 333-171795) pertaining to the 2001 Stock Option/Stock Issuance Plan, 2006 Equity Incentive Plan, 2006 Employee Stock Purchase Plan of Affymax, Inc. and the Registration Statements on Form S-3 (Nos. 333-149772 , 333-158080, 333-162275, and 333-165220) of Affymax, Inc. and in the related Prospectuses of our reports dated March 10, 2011, with respect to the financial statements of Affymax, Inc., and the effectiveness of internal control over financial reporting of Affymax, Inc. included in the Annual Report (Form 10-K) for the year ended December 31, 2010.

        /s/ ERNST & YOUNG LLP
Palo Alto, California
March 10, 2011
       



QuickLinks

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM