Don't get OpenAI image into Airtable Attachment field using n8n

I am using n8n and don’t manage to get the image generated by the OpenAI Generate image node into my Airtable field of type Attachment.

  • Setting the Option Respond with Image URL in the OpenAI node and using the URL returned by OpenAI in the Airtable update record node gives error 422 INVALID_ATTACHMENT_OBJECT.
  • Uploading the file in my Google Drive, setting permissions Reader Anyone and using the URL of the Google drive file in the Airtable update record node I get error 422 INVALID_ATTACHMENT_OBJECT.
  • ChatGPT recommends me to use Imgur to obtain a real direct image URL

My workflow

Does anyone know how I could get it working? Any help, idea, suggestion is welcome. Thank you!

I think Airtable expects a directly accessible image file but both the open AI node and Google drive gives a preview link or a temporary link which Airtable rejects as INVALID_ATTACHMENT_OBJECT. I think it recommends Imgur so that when you use Imgur Node it gives you a directl URL that you can pass to Airtable attachment field