{"product_id":"n8n-workflow-text-to-image-with-linkmodel-gpt-image-2","title":"n8n Workflow: Text-to-Image with LinkModel GPT Image 2","description":"\u003ch3\u003eGenerate Images From Text Prompts in n8n Using LinkModel gpt-image-2\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow lets you create images directly from a text prompt using LinkModel’s \u003cstrong\u003egpt-image-2\u003c\/strong\u003e endpoint—then it automatically polls for completion and downloads each generated image for you to view inside n8n.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cp\u003eBuilt for manual execution, the workflow runs end-to-end whenever you click \u003cstrong\u003eExecute workflow\u003c\/strong\u003e in n8n:\u003c\/p\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrepare inputs:\u003c\/strong\u003e sets image-generation parameters—\u003cstrong\u003eprompt\u003c\/strong\u003e, \u003cstrong\u003equality\u003c\/strong\u003e (low\/medium\/high), and \u003cstrong\u003esize\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreate an image task:\u003c\/strong\u003e sends the inputs to LinkModel’s image-generation API to start the job.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFail fast on request issues:\u003c\/strong\u003e stops with an error if LinkModel does not accept the task request.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePoll for status:\u003c\/strong\u003e waits briefly and then repeatedly queries LinkModel until the job succeeds, fails\/cancels, or hits a \u003cstrong\u003e15-minute deadline\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProcess results:\u003c\/strong\u003e extracts the output image URLs from the successful response and splits them into individual items.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDownload images:\u003c\/strong\u003e downloads each generated image from its URL and returns the files in the final workflow output (as binary files). If signed URLs expire, download promptly after completion.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrototype creatives quickly:\u003c\/strong\u003e iterate on prompts and quality\/size settings without leaving n8n.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS operator content testing:\u003c\/strong\u003e generate image variations for feature mockups or landing-page experiments.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers:\u003c\/strong\u003e validate asynchronous job handling (create → poll → download) against LinkModel’s API.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e LinkModel API (gpt-image-2) via HTTP requests using a Bearer \u003cstrong\u003eLinkModel API key\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes used (per workflow):\u003c\/strong\u003e \u003cem\u003eif\u003c\/em\u003e, \u003cem\u003eset\u003c\/em\u003e, \u003cem\u003ewait\u003c\/em\u003e, \u003cem\u003eswitch\u003c\/em\u003e, \u003cem\u003esplit out\u003c\/em\u003e, \u003cem\u003esticky note\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConfiguration steps:\u003c\/strong\u003e replace \u003ccode\u003eBearer YOUR_LINKMODEL_API_KEY\u003c\/code\u003e in both LinkModel HTTP requests, then update prompt\/quality\/size.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45916304375987,"sku":"N8N-18777","price":45.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/TDjmVh7QKDxDXKzX_T8EN_UQJNDjW5.png?v=1788019669","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-text-to-image-with-linkmodel-gpt-image-2","provider":"N8N Commerce","version":"1.0","type":"link"}