[GH-ISSUE #4672] [Issue]: Add Authorization headers to Arli.ai image generation requests #2558

Closed
opened 2026-10-21 05:50:06 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4672

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Arli.ai image models require the API key to be sent in an HTTP Authorization header. Marinara's image-generation request does not appear to include an equivalent header, preventing Arli.ai image models from authenticating.

Expected behavior

Image-generation requests for Arli.ai models should include the configured API key in an HTTP header, such as Authorization: Bearer API_KEY_HERE, along with the appropriate content type.

Actual behavior

The current image-generation request does not appear to send the API key through an HTTP header, so Arli.ai image models cannot authenticate.

Steps to reproduce

  1. Configure an Arli.ai image model in Marinara Engine with an API key.
  2. Attempt to generate an image using the configured Arli.ai model.
  3. Observe that the image request does not provide the required Authorization header and authentication cannot succeed.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Attached image: https://cdn.discordapp.com/attachments/1534872720863662090/1534872721052270684/image.png?ex=6a75b51d&is=6a74639d&hm=bccb73df2898762ce1bb013646bd692b9b8fb2fe3f2e8766084add104c84d531&. No logs, screenshots, or video beyond this attachment were provided.

Additional context

The provided text-request example uses Authorization: Bearer API_KEY_HERE and Content-Type: application/json. Arli.ai API documentation: https://www.arliai.com/docs/api?lang=en

Discord thread: Image api headers not there for arli.ai image integration
Discord thread link: https://discord.com/channels/1417099416812392641/1534872720863662090
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-08-06T10:36:13.210Z] Luka: Hallo. 
I hope that you could implement the required headers for the image integration so that the image models from arli.ai also work.
I post this with permission from owen the owner, as he would file it later anyway.

The image is the detailed example of what is missing currently. I hope there is a way to have this implemented so that I could enjoy image gen inside marinara engine.

Thank you.

[attached image 1: https://cdn.discordapp.com/attachments/1534872720863662090/1534872721052270684/image.png?ex=6a75b51d&is=6a74639d&hm=bccb73df2898762ce1bb013646bd692b9b8fb2fe3f2e8766084add104c84d531&]
[Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534872720863662090]

[2026-08-06T10:41:59.546Z] Marinara: @Professor Mari rewrite what's on the image
[Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534874173501870214]

[2026-08-06T10:42:16.538Z] Professor Mari [bot]: Here’s a cleaner rewrite of the text shown in the image:

> Arli.ai image models need the API key to be sent through an HTTP header. For example, a text API request includes:
>
> ` ` `bash
> curl --request POST \
>   --url http://192.168.20.104:8000/v1/chat/completions \
>   --header 'Authorization: Bearer API_KEY_HERE' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "model": "MiMo-V2.5",
>     "messages": [
>       {
>         "role": "system",
>         "content": "You are a helpful assistant."
>       },
>       {
>         "role": "user",
>         "content": "Hello!"
>       }
>     ],
>     "max_tokens": 100,
>     "stream": true
>   }'
> ` ` `
>
> The text API request uses an `Authorization` header containing the bearer API key. The image-generation request currently does not appear to provide an equivalent header, which prevents Arli.ai’s image models from authenticating.

The retrieved repo snippets did not contain a direct match for the image-generation request or header implementation, so I can’t confirm from the code whether custom headers are currently supported there. I’m still an LLM and may misread details, so don’t trust my judgment too blindly.
[Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534874244771479613]

[2026-08-06T10:43:50.442Z] Marinara: https://www.arliai.com/docs/api?lang=en
API Docs
Explore the Arli AI API documentation.
[Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534874638633406484]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4672 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Arli.ai image models require the API key to be sent in an HTTP Authorization header. Marinara's image-generation request does not appear to include an equivalent header, preventing Arli.ai image models from authenticating. ## Expected behavior Image-generation requests for Arli.ai models should include the configured API key in an HTTP header, such as `Authorization: Bearer API_KEY_HERE`, along with the appropriate content type. ## Actual behavior The current image-generation request does not appear to send the API key through an HTTP header, so Arli.ai image models cannot authenticate. ## Steps to reproduce 1. Configure an Arli.ai image model in Marinara Engine with an API key. 2. Attempt to generate an image using the configured Arli.ai model. 3. Observe that the image request does not provide the required Authorization header and authentication cannot succeed. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Attached image: https://cdn.discordapp.com/attachments/1534872720863662090/1534872721052270684/image.png?ex=6a75b51d&is=6a74639d&hm=bccb73df2898762ce1bb013646bd692b9b8fb2fe3f2e8766084add104c84d531&. No logs, screenshots, or video beyond this attachment were provided. ## Additional context The provided text-request example uses `Authorization: Bearer API_KEY_HERE` and `Content-Type: application/json`. Arli.ai API documentation: https://www.arliai.com/docs/api?lang=en Discord thread: Image api headers not there for arli.ai image integration Discord thread link: https://discord.com/channels/1417099416812392641/1534872720863662090 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-08-06T10:36:13.210Z] Luka: Hallo. I hope that you could implement the required headers for the image integration so that the image models from arli.ai also work. I post this with permission from owen the owner, as he would file it later anyway. The image is the detailed example of what is missing currently. I hope there is a way to have this implemented so that I could enjoy image gen inside marinara engine. Thank you. [attached image 1: https://cdn.discordapp.com/attachments/1534872720863662090/1534872721052270684/image.png?ex=6a75b51d&is=6a74639d&hm=bccb73df2898762ce1bb013646bd692b9b8fb2fe3f2e8766084add104c84d531&] [Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534872720863662090] [2026-08-06T10:41:59.546Z] Marinara: @Professor Mari rewrite what's on the image [Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534874173501870214] [2026-08-06T10:42:16.538Z] Professor Mari [bot]: Here’s a cleaner rewrite of the text shown in the image: > Arli.ai image models need the API key to be sent through an HTTP header. For example, a text API request includes: > > ` ` `bash > curl --request POST \ > --url http://192.168.20.104:8000/v1/chat/completions \ > --header 'Authorization: Bearer API_KEY_HERE' \ > --header 'Content-Type: application/json' \ > --data '{ > "model": "MiMo-V2.5", > "messages": [ > { > "role": "system", > "content": "You are a helpful assistant." > }, > { > "role": "user", > "content": "Hello!" > } > ], > "max_tokens": 100, > "stream": true > }' > ` ` ` > > The text API request uses an `Authorization` header containing the bearer API key. The image-generation request currently does not appear to provide an equivalent header, which prevents Arli.ai’s image models from authenticating. The retrieved repo snippets did not contain a direct match for the image-generation request or header implementation, so I can’t confirm from the code whether custom headers are currently supported there. I’m still an LLM and may misread details, so don’t trust my judgment too blindly. [Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534874244771479613] [2026-08-06T10:43:50.442Z] Marinara: https://www.arliai.com/docs/api?lang=en API Docs Explore the Arli AI API documentation. [Discord message: https://discord.com/channels/1417099416812392641/1534872720863662090/1534874638633406484] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:50:06 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 6, 2026):

I’m taking this as SpicyMarinara and including the fix in draft PR #4671 so the work is visible and coordinated.

<!-- gh-comment-id:5203690463 --> @SpicyMarinara commented on GitHub (Aug 6, 2026): I’m taking this as SpicyMarinara and including the fix in draft PR #4671 so the work is visible and coordinated.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2558
No description provided.