u/YouKnowABK

▲ 2 r/GoogleGeminiAI+1 crossposts

Gemini API (@google/genai) ignoring image generation Aspect Ratio and Resolution settings? Always stuck on defaults

Hey everyone,

I'm building a text-to-image feature using the new official google/genai SDK (^2.3.0) and trying to implement dynamic aspect ratios and resolutions.

While the images are successfully generating, the models seem to completely ignore my dimensional constraints and fall back to their system defaults:

  • gemini-3.1-flash-image-preview always outputs a 16:9 landscape image.
  • gemini-2.5-flash-image always outputs a 1:1 square image.

Here is the configuration payload I am sending down via my service layer:

{
  "serviceTier": "standard",
  "responseModalities": [
    "TEXT",
    "IMAGE"
  ],
  "responseFormat": {
    "image": {
      "aspectRatio": "9:16",
      "imageSize": "2K"
    }
  }
}

Any help or working code blocks using the standard google/genai package for setting custom ratios dynamically would be highly appreciated!

reddit.com
u/YouKnowABK — 5 days ago
▲ 3 r/IPhoneApps+2 crossposts

I built a subscription-free Invoice Maker for iOS

Hi all, I wanted to share my latest project: Invoice Maker & Bill: SmartIQ.

I built this using SwiftUI and MVVM with a focus on speed and a "local-first" approach. I got tired of every utility app moving to a $10+/month subscription model, so I wanted to create something professional that stays simple.

It’s designed for users who want to:

  • Manage Multiple Businesses: Switch between different business profiles seamlessly within one app.
  • Per-Business Currencies: Assign different currencies to different profiles—perfect for international freelancers.
  • Subscription-Free: Focused on a free-to-use model rather than recurring monthly fees.
  • Professional PDF Engine: Generate and share clean, professional invoices with your own branding/logo in seconds.
  • Dark Mode & iPad Support: Fully native UI that looks great on both iPhone and iPad, including support for system dark mode.
  • Performance: Optimized for "speed to invoice"—get from app launch to sent PDF in under a minute.

It's live on the App Store now. I'm actively looking for feature requests, UI critiques, or any feedback on the PDF generation logic from the community!

App Store Link: https://apps.apple.com/app/apple-store/id6754511446?pt=128076648&ct=rd&mt=8

apps.apple.com
u/YouKnowABK — 6 days ago