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

Function createGrokImage

packages/ai-grok/src/adapters/image.ts:327–333  ·  view source on GitHub ↗
(
  model: TModel,
  apiKey: string,
  config?: Omit<GrokImageConfig, 'apiKey'>,
)

Source from the content-addressed store, hash-verified

325 * ```
326 */
327export function createGrokImage<TModel extends GrokImageModel>(
328 model: TModel,
329 apiKey: string,
330 config?: Omit<GrokImageConfig, 'apiKey'>,
331): GrokImageAdapter<TModel> {
332 return new GrokImageAdapter({ apiKey, ...config }, model)
333}
334
335/**
336 * Creates a Grok image adapter with automatic API key detection from environment variables.

Callers 3

createImageAdapterFunction · 0.90
grokImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected