Attached files

file filename
EXCEL - IDEA: XBRL DOCUMENT - AFFYMAX INCFinancial_Report.xls
10-K - 10-K - AFFYMAX INCa2208039z10-k.htm
EX-31.1 - EX-31.1 - AFFYMAX INCa2208039zex-31_1.htm
EX-32.1 - EX-32.1 - AFFYMAX INCa2208039zex-32_1.htm
EX-31.2 - EX-31.2 - AFFYMAX INCa2208039zex-31_2.htm
EX-10.48 - EX-10.48 - AFFYMAX INCa2208039zex-10_48.htm
EX-10.47 - EX-10.47 - AFFYMAX INCa2208039zex-10_47.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, 333-171795 and 33-179378) pertaining to the 2001 Stock Option/Stock Issuance Plan, 2006 Equity Incentive Plan, and 2006 Employee Stock Purchase Plan of Affymax, Inc. and the Registration Statements on Form S-3 (Nos. 333-158080, 333-162275, 333-165220and 333-176137) of Affymax, Inc. and in the related Prospectuses of our reports dated March 14, 2012, 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, 2011.

                        /s/ ERNST & YOUNG LLP

Redwood City, California
March 14, 2012




QuickLinks

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM