[GH-ISSUE #8022] [Issue]: NanoBanana 2.1 avatar generation fails with HTTP 400 #7524

Closed
opened 2026-10-24 04:03:50 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Generating an avatar on Marinara staging with NanoGPT's NanoBanana 2.1 fails because the request uses an unsupported size format and omits the aspect ratio.

Expected behavior

Marinara should send a size of "1k" or "2k" and an aspect_ratio derived from the requested dimensions, allowing NanoBanana 2.1 to generate the avatar.

Actual behavior

The request sends size: "1024x1024" without aspect_ratio, and the provider returns HTTP 400: “Nano Banana 2.1 supports 1K or 2K resolution.”

Steps to reproduce

  1. On Marinara staging, select NanoGPT's NanoBanana 2.1 model for avatar generation.
  2. Generate an avatar using the default square dimensions.

Environment

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

Logs, screenshots, or video

HTTP 400: “Nano Banana 2.1 supports 1K or 2K resolution.”

Additional context

The reporter tested a change using size: "1k" and aspect_ratio: "1:1", which succeeded. The issue was tested only with NanoGPT; support or behavior with other providers is unknown. Marinara staff noted that the model does not have official support.

Discord thread: Can't generate avatars with NanoBanana 2.1
Discord thread link: https://discord.com/channels/1417099416812392641/1562553600217976882
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-10-21T19:50:09.134Z] kociol21: Problem: Avatar generation on Marinara staging with NanoGPT’s nano-banana-2.1 fails with HTTP 400: “Nano Banana 2.1 supports 1K or 2K resolution.”

Cause: Marinara sends size: "1024x1024" without aspect_ratio and Nanobanana 2.1 needs either "1K" or "2k" and aspect_ratio 

So for this model only, would need sending size: "1k" or "2k" and  aspect_ratio parameter derived from the requested dimensions. 

I did a test with this change and  with "1k" and "1:1" it succeeded.

(kinda low priority, because one can always just generate somewhere else and import to ME, but since nanobanana is my favorite model, it would be nice to be able to generate in ME. Also I only tested it on NanoGPT, idk if other providers have same issues)
[Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562553600217976882]

[2026-10-21T19:50:09.846Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562553603204321341]

[2026-10-21T21:00:02.133Z] Marinara: We haven't added official support for that model.
[Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562571186930716812]

[2026-10-21T21:00:07.272Z] Marinara: So that's why.
[Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562571208485109932]

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 (Oct 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8022 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Generating an avatar on Marinara staging with NanoGPT's NanoBanana 2.1 fails because the request uses an unsupported size format and omits the aspect ratio. ## Expected behavior Marinara should send a size of "1k" or "2k" and an aspect_ratio derived from the requested dimensions, allowing NanoBanana 2.1 to generate the avatar. ## Actual behavior The request sends size: "1024x1024" without aspect_ratio, and the provider returns HTTP 400: “Nano Banana 2.1 supports 1K or 2K resolution.” ## Steps to reproduce 1. On Marinara staging, select NanoGPT's NanoBanana 2.1 model for avatar generation. 2. Generate an avatar using the default square dimensions. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video HTTP 400: “Nano Banana 2.1 supports 1K or 2K resolution.” ## Additional context The reporter tested a change using size: "1k" and aspect_ratio: "1:1", which succeeded. The issue was tested only with NanoGPT; support or behavior with other providers is unknown. Marinara staff noted that the model does not have official support. Discord thread: Can't generate avatars with NanoBanana 2.1 Discord thread link: https://discord.com/channels/1417099416812392641/1562553600217976882 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-10-21T19:50:09.134Z] kociol21: Problem: Avatar generation on Marinara staging with NanoGPT’s nano-banana-2.1 fails with HTTP 400: “Nano Banana 2.1 supports 1K or 2K resolution.” Cause: Marinara sends size: "1024x1024" without aspect_ratio and Nanobanana 2.1 needs either "1K" or "2k" and aspect_ratio So for this model only, would need sending size: "1k" or "2k" and aspect_ratio parameter derived from the requested dimensions. I did a test with this change and with "1k" and "1:1" it succeeded. (kinda low priority, because one can always just generate somewhere else and import to ME, but since nanobanana is my favorite model, it would be nice to be able to generate in ME. Also I only tested it on NanoGPT, idk if other providers have same issues) [Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562553600217976882] [2026-10-21T19:50:09.846Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562553603204321341] [2026-10-21T21:00:02.133Z] Marinara: We haven't added official support for that model. [Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562571186930716812] [2026-10-21T21:00:07.272Z] Marinara: So that's why. [Discord message: https://discord.com/channels/1417099416812392641/1562553600217976882/1562571208485109932] ``` </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-24 04:03:50 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 21, 2026):

Codex is handling this issue in the maintainer's assigned-issue sweep, on fix/assigned-issue-sweep-20261022, targeting staging. Existing contributor PRs are excluded from this sweep. Ownership: @SpicyMarinara, assisted by Codex.

<!-- gh-comment-id:6327667478 --> @SpicyMarinara commented on GitHub (Oct 21, 2026): Codex is handling this issue in the maintainer's assigned-issue sweep, on `fix/assigned-issue-sweep-20261022`, targeting `staging`. Existing contributor PRs are excluded from this sweep. Ownership: @SpicyMarinara, assisted by Codex.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 21, 2026):

Implemented in #8027 and merged into staging at 4d67fe75b3. Reviewed-head and merge ancestry are verified.

NanoGPT’s advertised nano-banana-2.1 model now receives supported 1k/2k tiers and an aspect ratio derived from the requested dimensions. The transport regression reproduces the old HTTP 400 and passes with the fix, including controls for other models/providers and explicit custom overrides. No paid live generation is claimed.

Final PR-head validation passed all eight required checks, 973/973 Node regressions and all ten platform checks; review findings were fixed or resolved with documented reasons. Closing as completed.

<!-- gh-comment-id:6328921920 --> @SpicyMarinara commented on GitHub (Oct 21, 2026): Implemented in #8027 and merged into `staging` at [4d67fe75b3](https://github.com/Pasta-Devs/Marinara-Engine/commit/4d67fe75b31b5fc97649ba340cb69832822395de). Reviewed-head and merge ancestry are verified. NanoGPT’s advertised `nano-banana-2.1` model now receives supported `1k`/`2k` tiers and an aspect ratio derived from the requested dimensions. The transport regression reproduces the old HTTP 400 and passes with the fix, including controls for other models/providers and explicit custom overrides. No paid live generation is claimed. Final PR-head validation passed all eight required checks, 973/973 Node regressions and all ten platform checks; review findings were fixed or resolved with documented reasons. Closing as completed.
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#7524
No description provided.