<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>399</ContextCount>
  <ElementCount>495</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>132</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>16</UnitCount>
  <MyReports>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - Consolidated Statements of Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - Consolidated Statements of Changes in Mezzanine Equity and Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/ConsolidatedStatementsofChangesinMezzanineEquityandStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Mezzanine Equity and Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/DESCRIPTIONOFBUSINESSANDSUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES</Role>
      <ShortName>DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - REVENUE RECOGNITION AND RELATED ALLOWANCES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCES</Role>
      <ShortName>REVENUE RECOGNITION AND RELATED ALLOWANCES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - BUSINESS COMBINATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/BUSINESSCOMBINATION</Role>
      <ShortName>BUSINESS COMBINATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - RESTRUCTURING</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/RESTRUCTURING</Role>
      <ShortName>RESTRUCTURING</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - INDEBTEDNESS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INDEBTEDNESS</Role>
      <ShortName>INDEBTEDNESS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENT AND HEDGING ACTIVITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/DERIVATIVEFINANCIALINSTRUMENTANDHEDGINGACTIVITY</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENT AND HEDGING ACTIVITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - INVENTORIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INVENTORIES</Role>
      <ShortName>INVENTORIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - PROPERTY AND EQUIPMENT, NET</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/PROPERTYANDEQUIPMENTNET</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - GOODWILL AND INTANGIBLE ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETS</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - FAIR VALUE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/FAIRVALUE</Role>
      <ShortName>FAIR VALUE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - MEZZANINE AND STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/MEZZANINEANDSTOCKHOLDERSEQUITY</Role>
      <ShortName>MEZZANINE AND STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - EARNINGS (LOSS) PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/EARNINGSLOSSPERSHARE</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - STOCK-BASED COMPENSATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATION</Role>
      <ShortName>STOCK-BASED COMPENSATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/COMMITMENTSANDCONTINGENCIES</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - PURIFIED CORTROPHIN GEL PRE-LAUNCH CHARGES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/PURIFIEDCORTROPHINGELPRELAUNCHCHARGES</Role>
      <ShortName>PURIFIED CORTROPHIN GEL PRE-LAUNCH CHARGES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - RELATED PARTY TRANSACTIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/RELATEDPARTYTRANSACTIONS</Role>
      <ShortName>RELATED PARTY TRANSACTIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>0000026 - Disclosure - SEGMENT REPORTING</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/SEGMENTREPORTING</Role>
      <ShortName>SEGMENT REPORTING</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>0000027 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/SUBSEQUENTEVENTS</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - . DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/DESCRIPTIONOFBUSINESSANDSUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies</Role>
      <ShortName>. DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/DESCRIPTIONOFBUSINESSANDSUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</Role>
      <ShortName>DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/DESCRIPTIONOFBUSINESSANDSUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - REVENUE RECOGNITION AND RELATED ALLOWANCES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCESTables</Role>
      <ShortName>REVENUE RECOGNITION AND RELATED ALLOWANCES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCES</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - BUSINESS COMBINATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/BUSINESSCOMBINATIONTables</Role>
      <ShortName>BUSINESS COMBINATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/BUSINESSCOMBINATION</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - INDEBTEDNESS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INDEBTEDNESSTables</Role>
      <ShortName>INDEBTEDNESS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/INDEBTEDNESS</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - INVENTORIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INVENTORIESTables</Role>
      <ShortName>INVENTORIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/INVENTORIES</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - PROPERTY AND EQUIPMENT, NET (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/PROPERTYANDEQUIPMENTNETTables</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/PROPERTYANDEQUIPMENTNET</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - GOODWILL AND INTANGIBLE ASSETS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETSTables</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETS</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - FAIR VALUE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/FAIRVALUETables</Role>
      <ShortName>FAIR VALUE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/FAIRVALUE</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - EARNINGS (LOSS) PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/EARNINGSLOSSPERSHARETables</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/EARNINGSLOSSPERSHARE</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - STOCK-BASED COMPENSATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATIONTables</Role>
      <ShortName>STOCK-BASED COMPENSATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATION</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INCOMETAXESTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/INCOMETAXES</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - COMMITMENTS AND CONTINGENCIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/COMMITMENTSANDCONTINGENCIESTables</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/COMMITMENTSANDCONTINGENCIES</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - RELATED PARTY TRANSACTIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/RELATEDPARTYTRANSACTIONSTables</Role>
      <ShortName>RELATED PARTY TRANSACTIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/RELATEDPARTYTRANSACTIONS</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - SEGMENT REPORTING (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/SEGMENTREPORTINGTables</Role>
      <ShortName>SEGMENT REPORTING (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/SEGMENTREPORTING</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/DESCRIPTIONOFBUSINESSANDSUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails</Role>
      <ShortName>DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/DESCRIPTIONOFBUSINESSANDSUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - PPE and Intangibles (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/DESCRIPTIONOFBUSINESSANDSUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPPEandIntangiblesDetails</Role>
      <ShortName>DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - PPE and Intangibles (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - REVENUE RECOGNITION AND RELATED ALLOWANCES - Disaggregation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCESDisaggregationDetails</Role>
      <ShortName>REVENUE RECOGNITION AND RELATED ALLOWANCES - Disaggregation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - REVENUE RECOGNITION AND RELATED ALLOWANCES - Timing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCESTimingDetails</Role>
      <ShortName>REVENUE RECOGNITION AND RELATED ALLOWANCES - Timing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCESTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - REVENUE RECOGNITION AND RELATED ALLOWANCES - Allowances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCESAllowancesDetails</Role>
      <ShortName>REVENUE RECOGNITION AND RELATED ALLOWANCES - Allowances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - REVENUE RECOGNITION AND RELATED ALLOWANCES - Concentration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/REVENUERECOGNITIONANDRELATEDALLOWANCESConcentrationDetails</Role>
      <ShortName>REVENUE RECOGNITION AND RELATED ALLOWANCES - Concentration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - BUSINESS COMBINATION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/BUSINESSCOMBINATIONNarrativeDetails</Role>
      <ShortName>BUSINESS COMBINATION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - BUSINESS COMBINATION - Pro Forma (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/BUSINESSCOMBINATIONProFormaDetails</Role>
      <ShortName>BUSINESS COMBINATION - Pro Forma (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - RESTRUCTURING (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/RESTRUCTURINGDetails</Role>
      <ShortName>RESTRUCTURING (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/RESTRUCTURING</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - INDEBTEDNESS - Credit facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INDEBTEDNESSCreditfacilityDetails</Role>
      <ShortName>INDEBTEDNESS - Credit facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - INDEBTEDNESS - Facility components (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INDEBTEDNESSFacilitycomponentsDetails</Role>
      <ShortName>INDEBTEDNESS - Facility components (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - INDEBTEDNESS - Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INDEBTEDNESSOutstandingDetails</Role>
      <ShortName>INDEBTEDNESS - Outstanding (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954498 - Disclosure - INDEBTEDNESS - Credit facility maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INDEBTEDNESSCreditfacilitymaturityDetails</Role>
      <ShortName>INDEBTEDNESS - Credit facility maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954499 - Disclosure - INDEBTEDNESS - Interest (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INDEBTEDNESSInterestDetails</Role>
      <ShortName>INDEBTEDNESS - Interest (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954500 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENT AND HEDGING ACTIVITY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/DERIVATIVEFINANCIALINSTRUMENTANDHEDGINGACTIVITYDetails</Role>
      <ShortName>DERIVATIVE FINANCIAL INSTRUMENT AND HEDGING ACTIVITY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/DERIVATIVEFINANCIALINSTRUMENTANDHEDGINGACTIVITY</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954501 - Disclosure - INVENTORIES - Schedule of inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INVENTORIESScheduleofinventoryDetails</Role>
      <ShortName>INVENTORIES - Schedule of inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954502 - Disclosure - INVENTORIES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INVENTORIESNarrativeDetails</Role>
      <ShortName>INVENTORIES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954503 - Disclosure - PROPERTY AND EQUIPMENT, NET - Schedule of property and equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/PROPERTYANDEQUIPMENTNETScheduleofpropertyandequipmentDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET - Schedule of property and equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954504 - Disclosure - PROPERTY AND EQUIPMENT, NET - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/PROPERTYANDEQUIPMENTNETNarrativeDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954505 - Disclosure - GOODWILL AND INTANGIBLE ASSETS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETSNarrativeDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954506 - Disclosure - GOODWILL AND INTANGIBLE ASSETS - Components (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETSComponentsDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS - Components (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954507 - Disclosure - GOODWILL AND INTANGIBLE ASSETS - Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/GOODWILLANDINTANGIBLEASSETSAmortizationDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS - Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954508 - Disclosure - FAIR VALUE - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/FAIRVALUENarrativeDetails</Role>
      <ShortName>FAIR VALUE - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9954509 - Disclosure - FAIR VALUE - Level 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/FAIRVALUELevel3Details</Role>
      <ShortName>FAIR VALUE - Level 3 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9954510 - Disclosure - FAIR VALUE - Hierarchy (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/FAIRVALUEHierarchyDetails</Role>
      <ShortName>FAIR VALUE - Hierarchy (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9954511 - Disclosure - FAIR VALUE - Acquired (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/FAIRVALUEAcquiredDetails</Role>
      <ShortName>FAIR VALUE - Acquired (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9954512 - Disclosure - MEZZANINE AND STOCKHOLDERS' EQUITY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/MEZZANINEANDSTOCKHOLDERSEQUITYDetails</Role>
      <ShortName>MEZZANINE AND STOCKHOLDERS' EQUITY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/MEZZANINEANDSTOCKHOLDERSEQUITY</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9954513 - Disclosure - EARNINGS (LOSS) PER SHARE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/EARNINGSLOSSPERSHAREDetails</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/EARNINGSLOSSPERSHARETables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9954514 - Disclosure - STOCK-BASED COMPENSATION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATIONNarrativeDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9954515 - Disclosure - STOCK-BASED COMPENSATION - Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATIONExpenseDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9954516 - Disclosure - STOCK-BASED COMPENSATION - Fair value options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATIONFairvalueoptionsDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Fair value options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9954517 - Disclosure - STOCK-BASED COMPENSATION - Stock option activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATIONStockoptionactivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Stock option activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9954518 - Disclosure - STOCK-BASED COMPENSATION - RSA activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATIONRSAactivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - RSA activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9954519 - Disclosure - STOCK-BASED COMPENSATION - Performance shares activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/STOCKBASEDCOMPENSATIONPerformancesharesactivityDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Performance shares activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9954520 - Disclosure - INCOME TAXES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INCOMETAXESNarrativeDetails</Role>
      <ShortName>INCOME TAXES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9954521 - Disclosure - INCOME TAXES - Provision (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INCOMETAXESProvisionDetails</Role>
      <ShortName>INCOME TAXES - Provision (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9954522 - Disclosure - INCOME TAXES - Effective rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INCOMETAXESEffectiverateDetails</Role>
      <ShortName>INCOME TAXES - Effective rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9954523 - Disclosure - INCOME TAXES - Deferred tax (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/INCOMETAXESDeferredtaxDetails</Role>
      <ShortName>INCOME TAXES - Deferred tax (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9954524 - Disclosure - COMMITMENTS AND CONTINGENCIES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/COMMITMENTSANDCONTINGENCIESNarrativeDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9954525 - Disclosure - COMMITMENTS AND CONTINGENCIES - Leases expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/COMMITMENTSANDCONTINGENCIESLeasesexpenseDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES - Leases expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9954526 - Disclosure - COMMITMENTS AND CONTINGENCIES - Lease maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/COMMITMENTSANDCONTINGENCIESLeasematurityDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES - Lease maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9954527 - Disclosure - PURIFIED CORTROPHIN GEL PRE-LAUNCH CHARGES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/PURIFIEDCORTROPHINGELPRELAUNCHCHARGESDetails</Role>
      <ShortName>PURIFIED CORTROPHIN GEL PRE-LAUNCH CHARGES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/PURIFIEDCORTROPHINGELPRELAUNCHCHARGES</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9954528 - Disclosure - RELATED PARTY TRANSACTIONS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails</Role>
      <ShortName>RELATED PARTY TRANSACTIONS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9954529 - Disclosure - RELATED PARTY TRANSACTIONS - Schedule of related parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/RELATEDPARTYTRANSACTIONSScheduleofrelatedpartiesDetails</Role>
      <ShortName>RELATED PARTY TRANSACTIONS - Schedule of related parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9954530 - Disclosure - SEGMENT REPORTING - Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/SEGMENTREPORTINGRevenueDetails</Role>
      <ShortName>SEGMENT REPORTING - Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9954531 - Disclosure - SEGMENT REPORTING - Geographic (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/SEGMENTREPORTINGGeographicDetails</Role>
      <ShortName>SEGMENT REPORTING - Geographic (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="anip-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9954532 - Disclosure - SUBSEQUENT EVENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.anipharmaceuticals.com/role/SUBSEQUENTEVENTSDetails</Role>
      <ShortName>SUBSEQUENT EVENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.anipharmaceuticals.com/role/SUBSEQUENTEVENTS</ParentRole>
      <Position>91</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="anip-20231231.htm">anip-20231231.htm</File>
    <File>anip-20231231.xsd</File>
    <File>anip-20231231_cal.xml</File>
    <File>anip-20231231_def.xml</File>
    <File>anip-20231231_lab.xml</File>
    <File>anip-20231231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>anip-20231231_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1358">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="39">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="14">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
