Skip to content

sampleImageSize 2K on model imagen-4.0-ultra-generate-001 doesn't seem to work #935

@ringodotnl

Description

@ringodotnl

Environment details

  • "typescript": "~5.8.3",
  • WSL
  • Package version: "@google/genai": "^1.16.0"

Steps to reproduce

  const apiConfig = {
    model: "imagen-4.0-ultra-generate-001",
    prompt: enhancedPrompt,
    config: {
      numberOfImages: numberOfImages,
      aspectRatio: aspectRatio,
      sampleImageSize: sampleImageSize,
    },
  };

const response = await this.genAI.models.generateImages(apiConfig);

All config params are working expect sampleImageSize, when settings it on 2K it still used the 1K default.

Any ideas?

Cheers.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions