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

Function createOpenRouterImage

packages/ai-openrouter/src/adapters/image.ts:223–229  ·  view source on GitHub ↗
(
  model: TModel,
  apiKey: string,
  config?: Omit<OpenRouterImageConfig, 'apiKey'>,
)

Source from the content-addressed store, hash-verified

221}
222
223export function createOpenRouterImage<TModel extends OpenRouterImageModel>(
224 model: TModel,
225 apiKey: string,
226 config?: Omit<OpenRouterImageConfig, 'apiKey'>,
227): OpenRouterImageAdapter<TModel> {
228 return new OpenRouterImageAdapter({ apiKey, ...config }, model)
229}
230
231export function openRouterImage<TModel extends OpenRouterImageModel>(
232 model: TModel,

Callers 2

createAdapterFunction · 0.90
openRouterImageFunction · 0.85

Calls

no outgoing calls

Tested by 1

createAdapterFunction · 0.72