Associating additional data when creating a lead programmatically

Associating additional data when creating a lead programmatically

When creating leads via the record APIs, is it possible to add an attachment? I've got data that can be, say, up to a MB to be associated with a lead.

I see that the UI permits attachments, which feel ideal.