48 48
49 - `"input_text"`49 - `"input_text"`
50 50
5151 - `prompt_cache_breakpoint: optional object { mode }` - `prompt_cache_breakpoint: optional object { mode, ttl }`
52 52
5353 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
54 54
55 - `mode: "explicit"`55 - `mode: "explicit"`
56 56
58 58
59 - `"explicit"`59 - `"explicit"`
60 60
61 - `ttl: optional "30m" or "12h"`
62
63 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
64
65 - `"30m"`
66
67 - `"12h"`
68
61 - `ResponseInputImage object { detail, type, file_id, 2 more }`69 - `ResponseInputImage object { detail, type, file_id, 2 more }`
62 70
63 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).71 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
88 96
89 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.97 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
90 98
9199 - `prompt_cache_breakpoint: optional object { mode }` - `prompt_cache_breakpoint: optional object { mode, ttl }`
92 100
93101 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
94 102
95 - `mode: "explicit"`103 - `mode: "explicit"`
96 104
98 106
99 - `"explicit"`107 - `"explicit"`
100 108
109 - `ttl: optional "30m" or "12h"`
110
111 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
112
113 - `"30m"`
114
115 - `"12h"`
116
101 - `ResponseInputFile object { type, detail, file_data, 4 more }`117 - `ResponseInputFile object { type, detail, file_data, 4 more }`
102 118
103 A file input to the model.119 A file input to the model.
134 150
135 The name of the file to be sent to the model.151 The name of the file to be sent to the model.
136 152
137153 - `prompt_cache_breakpoint: optional object { mode }` - `prompt_cache_breakpoint: optional object { mode, ttl }`
138 154
139155 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
140 156
141 - `mode: "explicit"`157 - `mode: "explicit"`
142 158
144 160
145 - `"explicit"`161 - `"explicit"`
146 162
163 - `ttl: optional "30m" or "12h"`
164
165 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
166
167 - `"30m"`
168
169 - `"12h"`
170
147 - `role: "user" or "assistant" or "system" or "developer"`171 - `role: "user" or "assistant" or "system" or "developer"`
148 172
149 The role of the message input. One of `user`, `assistant`, `system`, or173 The role of the message input. One of `user`, `assistant`, `system`, or
1009 1033
1010 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1034 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`
1011 1035
10121036 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
1013 1037
1014 - `mode: "explicit"`1038 - `mode: "explicit"`
1015 1039
1049 1073
1050 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1074 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`
1051 1075
10521076 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
1053 1077
1054 - `mode: "explicit"`1078 - `mode: "explicit"`
1055 1079
1103 1127
1104 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1128 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`
1105 1129
11061130 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block. Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
1107 1131
1108 - `mode: "explicit"`1132 - `mode: "explicit"`
1109 1133