Header HTTP Faliure when connecting to Replicate

I am currently trying to connect my replicate account to a workflow but im getting an authorizaiton faliure request. Where does the Replicator Token go?

Node:

{
“nodes”: [
{
“parameters”: {
“method”: “POST”,
“url”: “https://api.replicate.com/v1/models/black-forest-labs/flux-1.1-pro-ultra/predictions”,
“authentication”: “genericCredentialType”,
“genericAuthType”: “httpHeaderAuth”,
“sendHeaders”: true,
“headerParameters”: {
“parameters”: [
{}
]
},
“sendBody”: true,
“specifyBody”: “json”,
“jsonBody”: “={\n "input": {\n "raw": false,\n "prompt": "{{ $(‘3b. Generate Image Prompt Options (Gemini)’).item.json.output.prompt_options[0].prompts[0] }}",\n "aspect_ratio": "1:1",\n "output_format": "jpg",\n "safety_tolerance": 6\n }\n}”,
“options”: {}
},
“id”: “a8d38be7-85b5-4a39-bd39-7f765699d471”,
“name”: “4. Generate Image using Prompt 1 (Replicate Flux)”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
4500,
300
],
“typeVersion”: 4.2,
“credentials”: {
“httpHeaderAuth”: {
“id”: “SwLtdx6Q2g6gRgSs”,
“name”: “Header Auth account”
},
“githubApi”: {
“id”: “o3Y7L3PU2ObNl1Jo”,
“name”: “GitHub account”
}
}
}
],
“connections”: {
“4. Generate Image using Prompt 1 (Replicate Flux)”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“templateId”: “3840”,
“instanceId”: “eb93da6a17138b746d10d5c028f55aa797d9327fe06c248a95d709a1d45681f7”
}
}

Workflow:

https://metabology.app.n8n.cloud/workflow/YdahgTCCE7MWvixB

Hi you can share your workflow by this way:

Select all the related nodes in your workflow that you want to share, and copy them (Ctrl+C).

Then you can click this button and paste (ctrl+v)

Result:

I actually got it working for 10 seconds but stupidly changed the header auth name, and now its getting the unauthorized error again. What should the header name be?

Get your token on replicate account setting

Heres my examples:

You can specify the header like your setting, but here’s a simpler one. Then, to get your generated images, you must make a GET request to the URL marked “get”

The fastest way to make an HTTP request from replicate to n8n is to simply copy the HTTP examples for each model from the Replicate API menu.

Then, you can import it by pasting it into this option in the n8n HTTP Request node.

More advice is you can explore to learn HTTP Request on n8n docs

Thanks it worked by removing the $ from the value field