{"record":{"id":"61331142e47be3c7","repo":"vercel/ai","slug":"google-image-models-other-than-gemini-are-no-longe","errorCode":null,"errorMessage":"Google image models other than Gemini are no longer supported. Use a model ID that starts with `gemini-`.","messagePattern":"Google image models other than Gemini are no longer supported\\. Use a model ID that starts with `gemini-`\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/google-vertex/src/google-vertex-image-model.ts","lineNumber":61,"sourceCode":"    return new GoogleVertexImageModel(options.modelId, options.config);\n  }\n\n  readonly maxImagesPerCall = 10;\n\n  get provider(): string {\n    return this.config.provider;\n  }\n\n  constructor(\n    readonly modelId: GoogleVertexImageModelId,\n    private config: GoogleVertexImageModelConfig,\n  ) {}\n\n  async doGenerate(\n    options: Parameters<ImageModelV4['doGenerate']>[0],\n  ): Promise<Awaited<ReturnType<ImageModelV4['doGenerate']>>> {\n    if (!this.modelId.startsWith('gemini-')) {\n      throw new Error(\n        'Google image models other than Gemini are no longer supported. Use a model ID that starts with `gemini-`.',\n      );\n    }\n\n    const {\n      prompt,\n      n,\n      size,\n      aspectRatio,\n      seed,\n      providerOptions,\n      headers,\n      abortSignal,\n      files,\n      mask,\n    } = options;\n    const warnings: Array<SharedV4Warning> = [];\n","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/google-vertex/src/google-vertex-image-model.ts#L43-L79","documentation":"Error \"Google image models other than Gemini are no longer supported. Use a model ID that starts with `gemini-`.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/google-vertex/src/google-vertex-image-model.ts:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}