Open History to see the last commit
1---
2id: MediaInputMetadata
3title: MediaInputMetadata
4---
5
6Defined in: packages/ai/src/types.ts:2267
7
8Metadata convention for image / video / audio inputs to media generation.
9Carried on `ImagePart.metadata` / `VideoPart.metadata` / `AudioPart.metadata`
10when used as conditioning inputs to `generateImage()` or `generateVideo()`.
11
12## Properties
13
14### role?
15
16```ts
17optional role?: MediaInputRole;
18```
19
20Defined in: packages/ai/src/types.ts:2269
21
22Optional role hint disambiguating the part's intent for the adapter
23
24***
25
26### tag?
27
28```ts
29optional tag?: string;
30```
31
32Defined in: packages/ai/src/types.ts:2278
33
34Optional user-defined label for this input (e.g. `'woman-in-red-dress'`).
35**Informational only** — adapters never read it and the SDK never
36rewrites prompt text based on it. Use it to correlate parts with the
37references you write in your prompt using the provider's own syntax
38(fal's `@Image1`, OpenAI's "image 1", etc.), or for your own
39bookkeeping/logging.