( model: TModel, apiKey: string, config?: Omit<GeminiImageConfig, 'apiKey'>, )
| 436 | * ``` |
| 437 | */ |
| 438 | export 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. |
no outgoing calls