[GH-ISSUE #5699] [Issue]: Full-body sprite generation sends an invalid image size #3155

Closed
opened 2026-10-21 06:00:03 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Gunterlie on GitHub.

Summary

Full-body sprite generation fails with a 400 error because the request uses an image size unsupported by nano-banana-pro. Other image generation types work, and there is no apparent way to force a supported size such as 1024x1024 for full-body sprites.

Expected behavior

Full-body sprite generation should use a supported image size for the selected model, or provide a setting to choose a supported size.

Actual behavior

Full-body sprite generation fails with HTTP 400: "Invalid size for nano-banana-pro." The API reports supported sizes of 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, and 720x1280.

Steps to reproduce

  1. Run Marinara Engine 2.4.4 on the reported environment.
  2. Configure image generation through OpenRouter with the nano-banana-pro model.
  3. Attempt to generate a full-body sprite.
  4. Observe that sprite sheet generation fails with an invalid image size error.

Environment

  • Marinara Engine version: 2.4.4 (build 2.4.4+1a299369ac70, commit 1a299369ac)
  • Install type: Not provided
  • OS + version: Windows 10.0.26100 (x64); client OS Windows 10.0
  • Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0

Logs, screenshots, or video

Error: image generation failed (400): {"error":{"message":"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280","type":"error","param":null,"code":400}}. Server log reports: "OpenAI image generation failed (400)" and "Sprite sheet generation failed" in packages/server/dist/routes/sprites.routes.js. Discord attachments: https://cdn.discordapp.com/attachments/1543604444250251304/1543604444636119050/image.png?ex=6a96caaa&is=6a95792a&hm=58608dbd03884ef3eb514f4f2bb6ab22b323f3f4230977474ea660a699ecbfb5, https://cdn.discordapp.com/attachments/1543604444250251304/1543604445043228792/image.png?ex=6a96caaa&is=6a95792a&hm=de6c0072653fd765c6437dc7d2f19fdbaa636efc22159d58e5f08909be93f9cd, https://cdn.discordapp.com/attachments/1543604444250251304/1543604445533704262/image.png?ex=6a96caaa&is=6a95792a&hm=b83a6d0233414d7f61e90ca246af502cce05755688426a4b7f60e8d4566f14cd

Additional context

The reporter states that expressions, clips, card images, and storyboards work correctly; only full-body sprite generation fails. The issue was tested with nano-gpt, Electron Hub, OpenRouter, and different backend models. Local generation also reportedly fails for a similar reason. Gemini 3.1 Flash works, but is more expensive. Active connection in diagnostics was OpenRouter image generation with nano-banana-pro. GPU: ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0), or similar.

Discord thread: Fully Body sprite generation sizes?
Discord thread link: https://discord.com/channels/1417099416812392641/1543604444250251304
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord thread transcript (4 messages)
[2026-08-30T12:52:58.293Z] M-98 BLACKWIDOW: so all other size generation things work, but when using full body i get this error 
` ` `image generation failed (400): {"error":{"message":"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280","type":"error","param":null,"code":400}}` ` ` 

ive tested with nano-gpt, electron hub, and open router. as well as different back end models. I'm currently unsure how to force the use of 1024x1024(for example) as i have already done with other settings. 

expressions, clips, card images, storyboard and such all work fine. its just this one single thing that does not work. attempts at local generation also seem to fail. for much the same reason. 


Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+1a299369ac70
Commit: 1a299369ac70
Server OS: Windows 10.0.26100 (x64)
Server memory: heap 65 / 4288 MiB; RSS 143.4 MiB
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0
GPU: ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0), or similar
Active connection: openrouter image generation
Connection provider: image_generation
LLM model: nano-banana-pro

(idk why but marinara does not detect my specs correctly?) 

` ` `{"level":50,"time":1788093824203,"pid":10892,"hostname":"Sillytavern","err":{"type":"Error","message":"OpenAI image generation failed (400): {\"error\":{\"message\":\"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280\",\"type\":\"error\",\"param\":null,\"code\":400}}","stack":"Error: OpenAI image generation failed (400): {\"error\":{\"message\":\"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280\",\"type\":\"error\",\"param\":null,\"code\":400}}\n    at readOpenAIImageResult (file:///C:/Marinara-Engine/packages/server/dist/services/image/image-generation.js:789:15)\n    at async withConnectionAdmission (file:///C:/Marinara-Engine/packages/server/dist/services/generation/connection-admission.js:148:24)\n    at async generateImageUncapped (file:///C:/Marinara-Engine/packages/server/dist/services/image/image-generation.js:232:31)\n    at async runMediaGenerationRequest (file:///C:/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:212:20)\n    at async file:///C:/Marinara-Engine/packages/server/dist/routes/sprites.routes.js:1915:37\n    at async Object.<anonymous> (file:///C:/Marinara-Engine/packages/server/dist/routes/sprites.routes.js:1748:20)"},"msg":"Sprite sheet generation failed"}` ` `

[attached image 1: https://cdn.discordapp.com/attachments/1543604444250251304/1543604444636119050/image.png?ex=6a96caaa&is=6a95792a&hm=58608dbd03884ef3eb514f4f2bb6ab22b323f3f4230977474ea660a699ecbfb5&]
[attached image 2: https://cdn.discordapp.com/attachments/1543604444250251304/1543604445043228792/image.png?ex=6a96caaa&is=6a95792a&hm=de6c0072653fd765c6437dc7d2f19fdbaa636efc22159d58e5f08909be93f9cd&]
[attached image 3: https://cdn.discordapp.com/attachments/1543604444250251304/1543604445533704262/image.png?ex=6a96caaa&is=6a95792a&hm=b83a6d0233414d7f61e90ca246af502cce05755688426a4b7f60e8d4566f14cd&]
[Discord message: https://discord.com/channels/1417099416812392641/1543604444250251304/1543604444250251304]

[2026-08-30T12:52:59.609Z] 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/1543604444250251304/1543604449770078378]

[2026-08-30T12:57:23.509Z] M-98 BLACKWIDOW: Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+1a299369ac70
Commit: 1a299369ac70
Server OS: Windows 10.0.26100 (x64)
Server memory: heap 65 / 4288 MiB; RSS 143.4 MiB
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0
GPU: ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0), or similar
Active connection: openrouter image generation
Connection provider: image_generation
LLM model: nano-banana-pro
[Discord message: https://discord.com/channels/1417099416812392641/1543604444250251304/1543605556647039127]

[2026-08-30T13:41:20.192Z] M-98 BLACKWIDOW: Gemini 3.1 flash works. at 76c a sprite its a bit more expensive then the 4c for Gemini pro. :/

[attached image 1: https://cdn.discordapp.com/attachments/1543604444250251304/1543616615340449812/image.png?ex=6a96d600&is=6a958480&hm=3237b45c1f61147b630e7894b2b4c03f14306bb2fd4cd52c027e8a4902c9b777&]
[Discord message: https://discord.com/channels/1417099416812392641/1543604444250251304/1543616615696830504]

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 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5699 Originally assigned to: @Gunterlie on GitHub. ## Summary Full-body sprite generation fails with a 400 error because the request uses an image size unsupported by nano-banana-pro. Other image generation types work, and there is no apparent way to force a supported size such as 1024x1024 for full-body sprites. ## Expected behavior Full-body sprite generation should use a supported image size for the selected model, or provide a setting to choose a supported size. ## Actual behavior Full-body sprite generation fails with HTTP 400: "Invalid size for nano-banana-pro." The API reports supported sizes of 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, and 720x1280. ## Steps to reproduce 1. Run Marinara Engine 2.4.4 on the reported environment. 2. Configure image generation through OpenRouter with the nano-banana-pro model. 3. Attempt to generate a full-body sprite. 4. Observe that sprite sheet generation fails with an invalid image size error. ## Environment - Marinara Engine version: 2.4.4 (build 2.4.4+1a299369ac70, commit 1a299369ac70) - Install type: Not provided - OS + version: Windows 10.0.26100 (x64); client OS Windows 10.0 - Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0 ## Logs, screenshots, or video Error: image generation failed (400): {"error":{"message":"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280","type":"error","param":null,"code":400}}. Server log reports: "OpenAI image generation failed (400)" and "Sprite sheet generation failed" in packages/server/dist/routes/sprites.routes.js. Discord attachments: https://cdn.discordapp.com/attachments/1543604444250251304/1543604444636119050/image.png?ex=6a96caaa&is=6a95792a&hm=58608dbd03884ef3eb514f4f2bb6ab22b323f3f4230977474ea660a699ecbfb5, https://cdn.discordapp.com/attachments/1543604444250251304/1543604445043228792/image.png?ex=6a96caaa&is=6a95792a&hm=de6c0072653fd765c6437dc7d2f19fdbaa636efc22159d58e5f08909be93f9cd, https://cdn.discordapp.com/attachments/1543604444250251304/1543604445533704262/image.png?ex=6a96caaa&is=6a95792a&hm=b83a6d0233414d7f61e90ca246af502cce05755688426a4b7f60e8d4566f14cd ## Additional context The reporter states that expressions, clips, card images, and storyboards work correctly; only full-body sprite generation fails. The issue was tested with nano-gpt, Electron Hub, OpenRouter, and different backend models. Local generation also reportedly fails for a similar reason. Gemini 3.1 Flash works, but is more expensive. Active connection in diagnostics was OpenRouter image generation with nano-banana-pro. GPU: ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0), or similar. Discord thread: Fully Body sprite generation sizes? Discord thread link: https://discord.com/channels/1417099416812392641/1543604444250251304 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-08-30T12:52:58.293Z] M-98 BLACKWIDOW: so all other size generation things work, but when using full body i get this error ` ` `image generation failed (400): {"error":{"message":"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280","type":"error","param":null,"code":400}}` ` ` ive tested with nano-gpt, electron hub, and open router. as well as different back end models. I'm currently unsure how to force the use of 1024x1024(for example) as i have already done with other settings. expressions, clips, card images, storyboard and such all work fine. its just this one single thing that does not work. attempts at local generation also seem to fail. for much the same reason. Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+1a299369ac70 Commit: 1a299369ac70 Server OS: Windows 10.0.26100 (x64) Server memory: heap 65 / 4288 MiB; RSS 143.4 MiB Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0 GPU: ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0), or similar Active connection: openrouter image generation Connection provider: image_generation LLM model: nano-banana-pro (idk why but marinara does not detect my specs correctly?) ` ` `{"level":50,"time":1788093824203,"pid":10892,"hostname":"Sillytavern","err":{"type":"Error","message":"OpenAI image generation failed (400): {\"error\":{\"message\":\"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280\",\"type\":\"error\",\"param\":null,\"code\":400}}","stack":"Error: OpenAI image generation failed (400): {\"error\":{\"message\":\"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280\",\"type\":\"error\",\"param\":null,\"code\":400}}\n at readOpenAIImageResult (file:///C:/Marinara-Engine/packages/server/dist/services/image/image-generation.js:789:15)\n at async withConnectionAdmission (file:///C:/Marinara-Engine/packages/server/dist/services/generation/connection-admission.js:148:24)\n at async generateImageUncapped (file:///C:/Marinara-Engine/packages/server/dist/services/image/image-generation.js:232:31)\n at async runMediaGenerationRequest (file:///C:/Marinara-Engine/packages/server/dist/services/image/image-generation-queue.js:212:20)\n at async file:///C:/Marinara-Engine/packages/server/dist/routes/sprites.routes.js:1915:37\n at async Object.<anonymous> (file:///C:/Marinara-Engine/packages/server/dist/routes/sprites.routes.js:1748:20)"},"msg":"Sprite sheet generation failed"}` ` ` [attached image 1: https://cdn.discordapp.com/attachments/1543604444250251304/1543604444636119050/image.png?ex=6a96caaa&is=6a95792a&hm=58608dbd03884ef3eb514f4f2bb6ab22b323f3f4230977474ea660a699ecbfb5&] [attached image 2: https://cdn.discordapp.com/attachments/1543604444250251304/1543604445043228792/image.png?ex=6a96caaa&is=6a95792a&hm=de6c0072653fd765c6437dc7d2f19fdbaa636efc22159d58e5f08909be93f9cd&] [attached image 3: https://cdn.discordapp.com/attachments/1543604444250251304/1543604445533704262/image.png?ex=6a96caaa&is=6a95792a&hm=b83a6d0233414d7f61e90ca246af502cce05755688426a4b7f60e8d4566f14cd&] [Discord message: https://discord.com/channels/1417099416812392641/1543604444250251304/1543604444250251304] [2026-08-30T12:52:59.609Z] 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/1543604444250251304/1543604449770078378] [2026-08-30T12:57:23.509Z] M-98 BLACKWIDOW: Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+1a299369ac70 Commit: 1a299369ac70 Server OS: Windows 10.0.26100 (x64) Server memory: heap 65 / 4288 MiB; RSS 143.4 MiB Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0 GPU: ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0), or similar Active connection: openrouter image generation Connection provider: image_generation LLM model: nano-banana-pro [Discord message: https://discord.com/channels/1417099416812392641/1543604444250251304/1543605556647039127] [2026-08-30T13:41:20.192Z] M-98 BLACKWIDOW: Gemini 3.1 flash works. at 76c a sprite its a bit more expensive then the 4c for Gemini pro. :/ [attached image 1: https://cdn.discordapp.com/attachments/1543604444250251304/1543616615340449812/image.png?ex=6a96d600&is=6a958480&hm=3237b45c1f61147b630e7894b2b4c03f14306bb2fd4cd52c027e8a4902c9b777&] [Discord message: https://discord.com/channels/1417099416812392641/1543604444250251304/1543616615696830504] ``` </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 06:00:03 +07:00
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#3155
No description provided.