Skip to content

Interface: BoundImageModel

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / BoundImageModel

Defined in: src/types/image.ts:304

Bound image model - full definition.

Represents an image model bound to a specific provider and model ID, ready to execute generation requests.

TParams = unknown

Provider-specific parameter type

readonly capabilities: ImageCapabilities

Defined in: src/types/image.ts:312

Model capabilities


readonly modelId: string

Defined in: src/types/image.ts:306

The model identifier


readonly provider: ImageProvider<TParams>

Defined in: src/types/image.ts:309

Reference to the parent provider

optional edit(request): Promise<ImageResponse>

Defined in: src/types/image.ts:336

Edit an image (optional).

ImageEditRequest<TParams>

The edit request

Promise<ImageResponse>

Promise resolving to the response


generate(request): Promise<ImageResponse>

Defined in: src/types/image.ts:320

Generate images from a prompt.

ImageRequest<TParams>

The generation request

Promise<ImageResponse>

Promise resolving to the response


optional stream(request): ImageProviderStreamResult

Defined in: src/types/image.ts:328

Stream image generation (optional).

ImageRequest<TParams>

The generation request

ImageProviderStreamResult

Stream result with events and final response