SpaceX is preparing a debt financing of about $40 billion to purchase artificial-intelligence chips, with Goldman Sachs and Apollo Management serving as underwriters. The transaction could begin marketing as soon as this week. An Apollo-backed AtlasSP-managed special-purpose entity would buy Nvidia chips and issue asset-backed securities, keeping the related debt outside SpaceX’s balance sheet and helping the company maintain its investment-grade credit rating. Earlier market reports described the deal as $40.2 billion and identified it with the ticker SPCX.O.