ADP:ATP antiporter that mediates import of ADP into the mitochondrial matrix for ATP synthesis, and export of ATP out to fuel the cell (By similarity) (PubMed:15670820). Cycles between the cytoplasmic-open state (c-state) and the matrix-open state (m-state): operates by the alternating access mechanism with a single substrate- binding site intermittently exposed to either the cytosolic (c-state) or matrix (m-state) side of the inner mitochondrial membrane (By similarity). Specifically required during spermatogenesis, probably to mediate ADP:ATP exchange in spermatocytes (PubMed:17137571). Large ATP supplies from mitochondria may be critical for normal progression of spermatogenesis during early stages of meiotic prophase I, including DNA double-strand break repair and chromosomal synapsis (By similarity). In addition to its ADP:ATP antiporter activity, also involved in mitochondrial uncoupling and mitochondrial permeability transition pore (mPTP) activity (By similarity). Plays a role in mitochondrial uncoupling by acting as a proton transporter: proton transport uncouples the proton flows via the electron transport chain and ATP synthase to reduce the efficiency of ATP production and cause mitochondrial thermogenesis (By similarity). Proton transporter activity is inhibited by ADP:ATP antiporter activity, suggesting that SLC25A31/ANT4 acts as a master regulator of mitochondrial energy output by maintaining a delicate balance between ATP production (ADP:ATP antiporter activity) and thermogenesis (proton transporter activity) (By similarity). Proton transporter activity requires free fatty acids as cofactor, but does not transport it (By similarity). Among nucleotides, may also exchange ADP for dATP and dADP (PubMed:15670820). Also plays a key role in mPTP opening, a non-specific pore that enables free passage of the mitochondrial membranes to solutes of up to 1.5 kDa, and which contributes to cell death (By similarity). It is however unclear if SLC25A31/ANT4 constitutes a pore-forming component of mPTP or regulates it (By similarity). {ECO:0000250|UniProtKB:G2QNH0, ECO:0000250|UniProtKB:P48962, ECO:0000250|UniProtKB:Q3V132, ECO:0000269|PubMed:15670820, ECO:0000269|PubMed:17137571}. This is the function of ENSG00000151475 (SLC25A31, solute carrier family 25 member 31).