Docs
Cloudflare
CodeRabbit
Railway
SerpAPI
Netlify
AG Grid
OpenRouter
WorkOS
Clerk
Sentry
Electric
Prisma
Unkey
Cloudflare
CodeRabbit
Railway
SerpAPI
Netlify
AG Grid
OpenRouter
WorkOS
Clerk
Sentry
Electric
Prisma
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

ImagePart

Interface: ImagePart<TMetadata>

Defined in: packages/ai/src/types.ts:226

Image content part for multimodal messages.

Type Parameters

TMetadata

TMetadata = unknown

Provider-specific metadata type (e.g., OpenAI's detail level)

Properties

metadata?

ts
optional metadata: TMetadata;
optional metadata: TMetadata;

Defined in: packages/ai/src/types.ts:231

Provider-specific metadata (e.g., OpenAI's detail: 'auto' | 'low' | 'high')


source

ts
source: ContentPartSource;
source: ContentPartSource;

Defined in: packages/ai/src/types.ts:229

Source of the image content


type

ts
type: "image";
type: "image";

Defined in: packages/ai/src/types.ts:227