Connect ideogram using HTTP request

Hello,
I am trying to connect ideogram to generate ads with an HTTP request.

I have the API key from ideogram.

When I try to run the node, I get this error:

I’ve checked the API key and It’s correct.

I put the structure like this:

Bearer

This is the structure of my node.

What might be the issue?

Thanks.

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Ricki_Barnahor,

According to the documentation for ideogram, you need to use the Api-Key header name and NOT Authorization.

So simply renaming your Header Auth Name should fix the problem

Hey @Wouter_Nigrini ,

Thanks!

I tried that, now I have new error:

What am I doing wrong?

Can you share the body of the http node. Even better if you can share the workflow in a code block. Bad request usually means the data you sent to the rest api is faulty.

In the error it states that “Negative prompts are not supported for the chosen model”.

It looks like you’re trying to use the model V_2A_TURBO which according to the documentation is not supported for negative prompts. Either take the negative prompt out, or change the model to V_2_TURBO and NOT V_2A_TURBO

If you’re using version 3, then you should be ok

Yes! it worked!

I removed the negative prompt and now it works perferct.

I was also able to sent the API key as a Header Auth to make is safer.

Thank you very much!

1 Like

That is awesome! Glad it is all working now. Please shout if you need more help. In the meantime if you can mark my answer as the solution so other’s with the same issue can also benefit

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.