MCPcopy Create free account
hub / github.com/TanStack/ai / createGeminiImage

Function createGeminiImage

packages/ai-gemini/src/adapters/image.ts:438–444  ·  view source on GitHub ↗
(
  model: TModel,
  apiKey: string,
  config?: Omit<GeminiImageConfig, 'apiKey'>,
)

Source from the content-addressed store, hash-verified

436 * ```
437 */
438export function createGeminiImage<TModel extends GeminiImageModel>(
439 model: TModel,
440 apiKey: string,
441 config?: Omit<GeminiImageConfig, 'apiKey'>,
442): GeminiImageAdapter<TModel> {
443 return new GeminiImageAdapter({ apiKey, ...config }, model)
444}
445
446/**
447 * Creates a Gemini image adapter with automatic API key detection from environment variables.

Callers 4

mockedNativeAdapterFunction · 0.90
createImageAdapterFunction · 0.90
geminiImageFunction · 0.85

Calls

no outgoing calls

Tested by 1

mockedNativeAdapterFunction · 0.72