SpyBara
Go Premium

Reference 2026-10-25 23:00 UTC to 2026-10-26 23:58 UTC

22 files changed +800 −188. View all changes and history on the product overview
2026
Sat 31 23:01 Fri 30 23:59 Thu 29 23:59 Wed 28 23:00 Tue 27 23:58 Mon 26 23:58 Sat 24 23:02 Fri 23 23:58 Thu 22 22:59 Wed 21 23:02 Tue 20 23:02 Sun 18 23:00 Sat 17 22:57 Fri 16 23:02 Thu 15 23:00 Wed 14 23:59 Tue 13 23:00 Fri 9 22:57 Thu 8 23:01 Wed 7 23:57 Tue 6 22:58 Mon 5 22:59 Sun 4 22:58 Sat 3 22:58 Fri 2 23:58 Thu 1 22:59
Details

48 48 

49 - `"input_text"`49 - `"input_text"`

50 50 

51 - `prompt_cache_breakpoint: optional object { mode }`51 - `prompt_cache_breakpoint: optional object { mode, ttl }`

52 52 

53 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.53 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 

91 - `prompt_cache_breakpoint: optional object { mode }`99 - `prompt_cache_breakpoint: optional object { mode, ttl }`

92 100 

93 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.101 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 

137 - `prompt_cache_breakpoint: optional object { mode }`153 - `prompt_cache_breakpoint: optional object { mode, ttl }`

138 154 

139 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.155 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 

1012 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.1036 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 

1052 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.1076 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 

1106 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.1130 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 

Details

96 96 

97 - `"input_text"`97 - `"input_text"`

98 98 

99 - `prompt_cache_breakpoint: optional object { mode }`99 - `prompt_cache_breakpoint: optional object { mode, ttl }`

100 100 

101 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.101 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.

102 102 

103 - `mode: "explicit"`103 - `mode: "explicit"`

104 104 


106 106 

107 - `"explicit"`107 - `"explicit"`

108 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 

109 - `ResponseOutputText object { annotations, logprobs, text, type }`117 - `ResponseOutputText object { annotations, logprobs, text, type }`

110 118 

111 A text output from the model.119 A text output from the model.


318 326 

319 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.327 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

320 328 

321 - `prompt_cache_breakpoint: optional object { mode }`329 - `prompt_cache_breakpoint: optional object { mode, ttl }`

322 330 

323 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.331 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.

324 332 

325 - `mode: "explicit"`333 - `mode: "explicit"`

326 334 


328 336 

329 - `"explicit"`337 - `"explicit"`

330 338 

339 - `ttl: optional "30m" or "12h"`

340 

341 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

342 

343 - `"30m"`

344 

345 - `"12h"`

346 

331 - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`347 - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`

332 348 

333 A screenshot of a computer.349 A screenshot of a computer.


350 366 

351 - `"computer_screenshot"`367 - `"computer_screenshot"`

352 368 

353 - `prompt_cache_breakpoint: optional object { mode }`369 - `prompt_cache_breakpoint: optional object { mode, ttl }`

354 370 

355 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.371 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.

356 372 

357 - `mode: "explicit"`373 - `mode: "explicit"`

358 374 


360 376 

361 - `"explicit"`377 - `"explicit"`

362 378 

379 - `ttl: optional "30m" or "12h"`

380 

381 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

382 

383 - `"30m"`

384 

385 - `"12h"`

386 

363 - `ResponseInputFile object { type, detail, file_data, 4 more }`387 - `ResponseInputFile object { type, detail, file_data, 4 more }`

364 388 

365 A file input to the model.389 A file input to the model.


396 420 

397 The name of the file to be sent to the model.421 The name of the file to be sent to the model.

398 422 

399 - `prompt_cache_breakpoint: optional object { mode }`423 - `prompt_cache_breakpoint: optional object { mode, ttl }`

400 424 

401 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.425 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.

402 426 

403 - `mode: "explicit"`427 - `mode: "explicit"`

404 428 


406 430 

407 - `"explicit"`431 - `"explicit"`

408 432 

433 - `ttl: optional "30m" or "12h"`

434 

435 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

436 

437 - `"30m"`

438 

439 - `"12h"`

440 

409 - `role: "unknown" or "user" or "assistant" or 5 more`441 - `role: "unknown" or "user" or "assistant" or 5 more`

410 442 

411 The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.443 The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.


4387 "text": "text",4419 "text": "text",

4388 "type": "input_text",4420 "type": "input_text",

4389 "prompt_cache_breakpoint": {4421 "prompt_cache_breakpoint": {

4390 "mode": "explicit"4422 "mode": "explicit",

4423 "ttl": "30m"

4391 }4424 }

4392 }4425 }

4393 ],4426 ],

Details

118 118 

119 - `"input_text"`119 - `"input_text"`

120 120 

121 - `prompt_cache_breakpoint: optional object { mode }`121 - `prompt_cache_breakpoint: optional object { mode, ttl }`

122 122 

123 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.123 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.

124 124 

125 - `mode: "explicit"`125 - `mode: "explicit"`

126 126 


128 128 

129 - `"explicit"`129 - `"explicit"`

130 130 

131 - `ttl: optional "30m" or "12h"`

132 

133 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

134 

135 - `"30m"`

136 

137 - `"12h"`

138 

131 - `OutputText object { text, type }`139 - `OutputText object { text, type }`

132 140 

133 A text output from the model.141 A text output from the model.


482 490 

483 - `"input_text"`491 - `"input_text"`

484 492 

485 - `prompt_cache_breakpoint: optional object { mode }`493 - `prompt_cache_breakpoint: optional object { mode, ttl }`

486 494 

487 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.495 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.

488 496 

489 - `mode: "explicit"`497 - `mode: "explicit"`

490 498 


492 500 

493 - `"explicit"`501 - `"explicit"`

494 502 

503 - `ttl: optional "30m" or "12h"`

504 

505 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

506 

507 - `"30m"`

508 

509 - `"12h"`

510 

495 - `OutputText object { text, type }`511 - `OutputText object { text, type }`

496 512 

497 A text output from the model.513 A text output from the model.

Details

173 173 

174 - `"input_text"`174 - `"input_text"`

175 175 

176 - `prompt_cache_breakpoint: optional object { mode }`176 - `prompt_cache_breakpoint: optional object { mode, ttl }`

177 177 

178 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.178 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.

179 179 

180 - `mode: "explicit"`180 - `mode: "explicit"`

181 181 


183 183 

184 - `"explicit"`184 - `"explicit"`

185 185 

186 - `ttl: optional "30m" or "12h"`

187 

188 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

189 

190 - `"30m"`

191 

192 - `"12h"`

193 

186 - `OutputText object { text, type }`194 - `OutputText object { text, type }`

187 195 

188 A text output from the model.196 A text output from the model.

Details

146 146 

147 - `"input_text"`147 - `"input_text"`

148 148 

149 - `prompt_cache_breakpoint: optional object { mode }`149 - `prompt_cache_breakpoint: optional object { mode, ttl }`

150 150 

151 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.151 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.

152 152 

153 - `mode: "explicit"`153 - `mode: "explicit"`

154 154 


156 156 

157 - `"explicit"`157 - `"explicit"`

158 158 

159 - `ttl: optional "30m" or "12h"`

160 

161 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

162 

163 - `"30m"`

164 

165 - `"12h"`

166 

159 - `OutputText object { text, type }`167 - `OutputText object { text, type }`

160 168 

161 A text output from the model.169 A text output from the model.

Details

161 161 

162 - `"input_text"`162 - `"input_text"`

163 163 

164 - `prompt_cache_breakpoint: optional object { mode }`164 - `prompt_cache_breakpoint: optional object { mode, ttl }`

165 165 

166 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.166 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.

167 167 

168 - `mode: "explicit"`168 - `mode: "explicit"`

169 169 


171 171 

172 - `"explicit"`172 - `"explicit"`

173 173 

174 - `ttl: optional "30m" or "12h"`

175 

176 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

177 

178 - `"30m"`

179 

180 - `"12h"`

181 

174 - `OutputText object { text, type }`182 - `OutputText object { text, type }`

175 183 

176 A text output from the model.184 A text output from the model.

Details

191 191 

192 - `"input_text"`192 - `"input_text"`

193 193 

194 - `prompt_cache_breakpoint: optional object { mode }`194 - `prompt_cache_breakpoint: optional object { mode, ttl }`

195 195 

196 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.196 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.

197 197 

198 - `mode: "explicit"`198 - `mode: "explicit"`

199 199 


201 201 

202 - `"explicit"`202 - `"explicit"`

203 203 

204 - `ttl: optional "30m" or "12h"`

205 

206 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

207 

208 - `"30m"`

209 

210 - `"12h"`

211 

204 - `ResponseInputImage object { detail, type, file_id, 2 more }`212 - `ResponseInputImage object { detail, type, file_id, 2 more }`

205 213 

206 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).214 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


231 239 

232 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.240 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

233 241 

234 - `prompt_cache_breakpoint: optional object { mode }`242 - `prompt_cache_breakpoint: optional object { mode, ttl }`

235 243 

236 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.244 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.

237 245 

238 - `mode: "explicit"`246 - `mode: "explicit"`

239 247 


241 249 

242 - `"explicit"`250 - `"explicit"`

243 251 

252 - `ttl: optional "30m" or "12h"`

253 

254 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

255 

256 - `"30m"`

257 

258 - `"12h"`

259 

244 - `ResponseInputFile object { type, detail, file_data, 4 more }`260 - `ResponseInputFile object { type, detail, file_data, 4 more }`

245 261 

246 A file input to the model.262 A file input to the model.


277 293 

278 The name of the file to be sent to the model.294 The name of the file to be sent to the model.

279 295 

280 - `prompt_cache_breakpoint: optional object { mode }`296 - `prompt_cache_breakpoint: optional object { mode, ttl }`

281 297 

282 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.298 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.

283 299 

284 - `mode: "explicit"`300 - `mode: "explicit"`

285 301 


287 303 

288 - `"explicit"`304 - `"explicit"`

289 305 

306 - `ttl: optional "30m" or "12h"`

307 

308 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

309 

310 - `"30m"`

311 

312 - `"12h"`

313 

290 - `role: "user" or "assistant" or "system" or "developer"`314 - `role: "user" or "assistant" or "system" or "developer"`

291 315 

292 The role of the message input. One of `user`, `assistant`, `system`, or316 The role of the message input. One of `user`, `assistant`, `system`, or

Details

407 407 

408 - `"input_text"`408 - `"input_text"`

409 409 

410 - `prompt_cache_breakpoint: optional object { mode }`410 - `prompt_cache_breakpoint: optional object { mode, ttl }`

411 411 

412 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.412 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.

413 413 

414 - `mode: "explicit"`414 - `mode: "explicit"`

415 415 


417 417 

418 - `"explicit"`418 - `"explicit"`

419 419 

420 - `ttl: optional "30m" or "12h"`

421 

422 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

423 

424 - `"30m"`

425 

426 - `"12h"`

427 

420 - `OutputText object { text, type }`428 - `OutputText object { text, type }`

421 429 

422 A text output from the model.430 A text output from the model.

Details

31 31 

32 - `"input_text"`32 - `"input_text"`

33 33 

34 - `prompt_cache_breakpoint: optional object { mode }`34 - `prompt_cache_breakpoint: optional object { mode, ttl }`

35 35 

36 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.36 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.

37 37 

38 - `mode: "explicit"`38 - `mode: "explicit"`

39 39 


41 41 

42 - `"explicit"`42 - `"explicit"`

43 43 

44 - `ttl: optional "30m" or "12h"`

45 

46 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

47 

48 - `"30m"`

49 

50 - `"12h"`

51 

44 - `OutputText object { text, type }`52 - `OutputText object { text, type }`

45 53 

46 A text output from the model.54 A text output from the model.


129 137 

130 - `"input_text"`138 - `"input_text"`

131 139 

132 - `prompt_cache_breakpoint: optional object { mode }`140 - `prompt_cache_breakpoint: optional object { mode, ttl }`

133 141 

134 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.142 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.

135 143 

136 - `mode: "explicit"`144 - `mode: "explicit"`

137 145 


139 147 

140 - `"explicit"`148 - `"explicit"`

141 149 

150 - `ttl: optional "30m" or "12h"`

151 

152 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

153 

154 - `"30m"`

155 

156 - `"12h"`

157 

142 - `OutputText object { text, type }`158 - `OutputText object { text, type }`

143 159 

144 A text output from the model.160 A text output from the model.


434 450 

435 - `"input_text"`451 - `"input_text"`

436 452 

437 - `prompt_cache_breakpoint: optional object { mode }`453 - `prompt_cache_breakpoint: optional object { mode, ttl }`

438 454 

439 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.455 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.

440 456 

441 - `mode: "explicit"`457 - `mode: "explicit"`

442 458 


444 460 

445 - `"explicit"`461 - `"explicit"`

446 462 

463 - `ttl: optional "30m" or "12h"`

464 

465 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

466 

467 - `"30m"`

468 

469 - `"12h"`

470 

447 - `OutputText object { text, type }`471 - `OutputText object { text, type }`

448 472 

449 A text output from the model.473 A text output from the model.


798 822 

799 - `"input_text"`823 - `"input_text"`

800 824 

801 - `prompt_cache_breakpoint: optional object { mode }`825 - `prompt_cache_breakpoint: optional object { mode, ttl }`

802 826 

803 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.827 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.

804 828 

805 - `mode: "explicit"`829 - `mode: "explicit"`

806 830 


808 832 

809 - `"explicit"`833 - `"explicit"`

810 834 

835 - `ttl: optional "30m" or "12h"`

836 

837 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

838 

839 - `"30m"`

840 

841 - `"12h"`

842 

811 - `OutputText object { text, type }`843 - `OutputText object { text, type }`

812 844 

813 A text output from the model.845 A text output from the model.

Details

2443 2443 

2444 - `"input_text"`2444 - `"input_text"`

2445 2445 

2446 - `prompt_cache_breakpoint: optional object { mode }`2446 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2447 2447 

2448 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.2448 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.

2449 2449 

2450 - `mode: "explicit"`2450 - `mode: "explicit"`

2451 2451 


2453 2453 

2454 - `"explicit"`2454 - `"explicit"`

2455 2455 

2456 - `ttl: optional "30m" or "12h"`

2457 

2458 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

2459 

2460 - `"30m"`

2461 

2462 - `"12h"`

2463 

2456 - `ResponseInputImage object { detail, type, file_id, 2 more }`2464 - `ResponseInputImage object { detail, type, file_id, 2 more }`

2457 2465 

2458 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).2466 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).


2483 2491 

2484 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.2492 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

2485 2493 

2486 - `prompt_cache_breakpoint: optional object { mode }`2494 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2487 2495 

2488 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.2496 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.

2489 2497 

2490 - `mode: "explicit"`2498 - `mode: "explicit"`

2491 2499 


2493 2501 

2494 - `"explicit"`2502 - `"explicit"`

2495 2503 

2504 - `ttl: optional "30m" or "12h"`

2505 

2506 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

2507 

2508 - `"30m"`

2509 

2510 - `"12h"`

2511 

2496 - `ResponseInputFile object { type, detail, file_data, 4 more }`2512 - `ResponseInputFile object { type, detail, file_data, 4 more }`

2497 2513 

2498 A file input to the model.2514 A file input to the model.


2529 2545 

2530 The name of the file to be sent to the model.2546 The name of the file to be sent to the model.

2531 2547 

2532 - `prompt_cache_breakpoint: optional object { mode }`2548 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2533 2549 

2534 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.2550 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.

2535 2551 

2536 - `mode: "explicit"`2552 - `mode: "explicit"`

2537 2553 


2539 2555 

2540 - `"explicit"`2556 - `"explicit"`

2541 2557 

2558 - `ttl: optional "30m" or "12h"`

2559 

2560 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

2561 

2562 - `"30m"`

2563 

2564 - `"12h"`

2565 

2542 - `role: "user" or "assistant" or "system" or "developer"`2566 - `role: "user" or "assistant" or "system" or "developer"`

2543 2567 

2544 The role of the message input. One of `user`, `assistant`, `system`, or2568 The role of the message input. One of `user`, `assistant`, `system`, or


3404 3428 

3405 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`3429 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

3406 3430 

3407 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.3431 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.

3408 3432 

3409 - `mode: "explicit"`3433 - `mode: "explicit"`

3410 3434 


3444 3468 

3445 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`3469 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

3446 3470 

3447 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.3471 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.

3448 3472 

3449 - `mode: "explicit"`3473 - `mode: "explicit"`

3450 3474 


3498 3522 

3499 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`3523 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

3500 3524 

3501 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.3525 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.

3502 3526 

3503 - `mode: "explicit"`3527 - `mode: "explicit"`

3504 3528 

Details

2955 2955 

2956 - `"input_text"`2956 - `"input_text"`

2957 2957 

2958 - `prompt_cache_breakpoint: optional object { mode }`2958 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2959 2959 

2960 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.2960 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.

2961 2961 

2962 - `mode: "explicit"`2962 - `mode: "explicit"`

2963 2963 


2965 2965 

2966 - `"explicit"`2966 - `"explicit"`

2967 2967 

2968 - `ttl: optional "30m" or "12h"`

2969 

2970 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

2971 

2972 - `"30m"`

2973 

2974 - `"12h"`

2975 

2968 - `ResponseInputImage object { detail, type, file_id, 2 more }`2976 - `ResponseInputImage object { detail, type, file_id, 2 more }`

2969 2977 

2970 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).2978 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).


2995 3003 

2996 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.3004 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

2997 3005 

2998 - `prompt_cache_breakpoint: optional object { mode }`3006 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2999 3007 

3000 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.3008 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.

3001 3009 

3002 - `mode: "explicit"`3010 - `mode: "explicit"`

3003 3011 


3005 3013 

3006 - `"explicit"`3014 - `"explicit"`

3007 3015 

3016 - `ttl: optional "30m" or "12h"`

3017 

3018 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

3019 

3020 - `"30m"`

3021 

3022 - `"12h"`

3023 

3008 - `ResponseInputFile object { type, detail, file_data, 4 more }`3024 - `ResponseInputFile object { type, detail, file_data, 4 more }`

3009 3025 

3010 A file input to the model.3026 A file input to the model.


3041 3057 

3042 The name of the file to be sent to the model.3058 The name of the file to be sent to the model.

3043 3059 

3044 - `prompt_cache_breakpoint: optional object { mode }`3060 - `prompt_cache_breakpoint: optional object { mode, ttl }`

3045 3061 

3046 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.3062 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.

3047 3063 

3048 - `mode: "explicit"`3064 - `mode: "explicit"`

3049 3065 


3051 3067 

3052 - `"explicit"`3068 - `"explicit"`

3053 3069 

3070 - `ttl: optional "30m" or "12h"`

3071 

3072 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

3073 

3074 - `"30m"`

3075 

3076 - `"12h"`

3077 

3054 - `role: "user" or "assistant" or "system" or "developer"`3078 - `role: "user" or "assistant" or "system" or "developer"`

3055 3079 

3056 The role of the message input. One of `user`, `assistant`, `system`, or3080 The role of the message input. One of `user`, `assistant`, `system`, or


3916 3940 

3917 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`3941 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

3918 3942 

3919 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.3943 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.

3920 3944 

3921 - `mode: "explicit"`3945 - `mode: "explicit"`

3922 3946 


3956 3980 

3957 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`3981 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

3958 3982 

3959 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.3983 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.

3960 3984 

3961 - `mode: "explicit"`3985 - `mode: "explicit"`

3962 3986 


4010 4034 

4011 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`4035 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

4012 4036 

4013 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.4037 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.

4014 4038 

4015 - `mode: "explicit"`4039 - `mode: "explicit"`

4016 4040 

Details

1682 1682 

1683 - `"input_text"`1683 - `"input_text"`

1684 1684 

1685 - `prompt_cache_breakpoint: optional object { mode }`1685 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1686 1686 

1687 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.1687 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.

1688 1688 

1689 - `mode: "explicit"`1689 - `mode: "explicit"`

1690 1690 


1692 1692 

1693 - `"explicit"`1693 - `"explicit"`

1694 1694 

1695 - `ttl: optional "30m" or "12h"`

1696 

1697 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1698 

1699 - `"30m"`

1700 

1701 - `"12h"`

1702 

1695 - `ResponseInputImage object { detail, type, file_id, 2 more }`1703 - `ResponseInputImage object { detail, type, file_id, 2 more }`

1696 1704 

1697 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).1705 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).


1722 1730 

1723 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.1731 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

1724 1732 

1725 - `prompt_cache_breakpoint: optional object { mode }`1733 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1726 1734 

1727 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.1735 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.

1728 1736 

1729 - `mode: "explicit"`1737 - `mode: "explicit"`

1730 1738 


1732 1740 

1733 - `"explicit"`1741 - `"explicit"`

1734 1742 

1743 - `ttl: optional "30m" or "12h"`

1744 

1745 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1746 

1747 - `"30m"`

1748 

1749 - `"12h"`

1750 

1735 - `ResponseInputFile object { type, detail, file_data, 4 more }`1751 - `ResponseInputFile object { type, detail, file_data, 4 more }`

1736 1752 

1737 A file input to the model.1753 A file input to the model.


1768 1784 

1769 The name of the file to be sent to the model.1785 The name of the file to be sent to the model.

1770 1786 

1771 - `prompt_cache_breakpoint: optional object { mode }`1787 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1772 1788 

1773 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.1789 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.

1774 1790 

1775 - `mode: "explicit"`1791 - `mode: "explicit"`

1776 1792 


1778 1794 

1779 - `"explicit"`1795 - `"explicit"`

1780 1796 

1797 - `ttl: optional "30m" or "12h"`

1798 

1799 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1800 

1801 - `"30m"`

1802 

1803 - `"12h"`

1804 

1781 - `role: "user" or "assistant" or "system" or "developer"`1805 - `role: "user" or "assistant" or "system" or "developer"`

1782 1806 

1783 The role of the message input. One of `user`, `assistant`, `system`, or1807 The role of the message input. One of `user`, `assistant`, `system`, or


2643 2667 

2644 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`2668 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

2645 2669 

2646 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.2670 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.

2647 2671 

2648 - `mode: "explicit"`2672 - `mode: "explicit"`

2649 2673 


2683 2707 

2684 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`2708 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

2685 2709 

2686 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.2710 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.

2687 2711 

2688 - `mode: "explicit"`2712 - `mode: "explicit"`

2689 2713 


2737 2761 

2738 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`2762 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

2739 2763 

2740 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.2764 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.

2741 2765 

2742 - `mode: "explicit"`2766 - `mode: "explicit"`

2743 2767 

Details

447 447 

448 - `"input_text"`448 - `"input_text"`

449 449 

450 - `prompt_cache_breakpoint: optional object { mode }`450 - `prompt_cache_breakpoint: optional object { mode, ttl }`

451 451 

452 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.452 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.

453 453 

454 - `mode: "explicit"`454 - `mode: "explicit"`

455 455 


457 457 

458 - `"explicit"`458 - `"explicit"`

459 459 

460 - `ttl: optional "30m" or "12h"`

461 

462 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

463 

464 - `"30m"`

465 

466 - `"12h"`

467 

460 - `ResponseInputImage object { detail, type, file_id, 2 more }`468 - `ResponseInputImage object { detail, type, file_id, 2 more }`

461 469 

462 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).470 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).


487 495 

488 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.496 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

489 497 

490 - `prompt_cache_breakpoint: optional object { mode }`498 - `prompt_cache_breakpoint: optional object { mode, ttl }`

491 499 

492 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.500 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.

493 501 

494 - `mode: "explicit"`502 - `mode: "explicit"`

495 503 


497 505 

498 - `"explicit"`506 - `"explicit"`

499 507 

508 - `ttl: optional "30m" or "12h"`

509 

510 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

511 

512 - `"30m"`

513 

514 - `"12h"`

515 

500 - `ResponseInputFile object { type, detail, file_data, 4 more }`516 - `ResponseInputFile object { type, detail, file_data, 4 more }`

501 517 

502 A file input to the model.518 A file input to the model.


533 549 

534 The name of the file to be sent to the model.550 The name of the file to be sent to the model.

535 551 

536 - `prompt_cache_breakpoint: optional object { mode }`552 - `prompt_cache_breakpoint: optional object { mode, ttl }`

537 553 

538 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.554 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.

539 555 

540 - `mode: "explicit"`556 - `mode: "explicit"`

541 557 


543 559 

544 - `"explicit"`560 - `"explicit"`

545 561 

562 - `ttl: optional "30m" or "12h"`

563 

564 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

565 

566 - `"30m"`

567 

568 - `"12h"`

569 

546 - `version: optional string or null`570 - `version: optional string or null`

547 571 

548 Optional version of the prompt template.572 Optional version of the prompt template.


2446 2470 

2447 - `"input_text"`2471 - `"input_text"`

2448 2472 

2449 - `prompt_cache_breakpoint: optional object { mode }`2473 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2450 2474 

2451 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.2475 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.

2452 2476 

2453 - `mode: "explicit"`2477 - `mode: "explicit"`

2454 2478 


2456 2480 

2457 - `"explicit"`2481 - `"explicit"`

2458 2482 

2483 - `ttl: optional "30m" or "12h"`

2484 

2485 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

2486 

2487 - `"30m"`

2488 

2489 - `"12h"`

2490 

2459 - `ResponseInputImage object { detail, type, file_id, 2 more }`2491 - `ResponseInputImage object { detail, type, file_id, 2 more }`

2460 2492 

2461 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).2493 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).


2486 2518 

2487 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.2519 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

2488 2520 

2489 - `prompt_cache_breakpoint: optional object { mode }`2521 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2490 2522 

2491 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.2523 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.

2492 2524 

2493 - `mode: "explicit"`2525 - `mode: "explicit"`

2494 2526 


2496 2528 

2497 - `"explicit"`2529 - `"explicit"`

2498 2530 

2531 - `ttl: optional "30m" or "12h"`

2532 

2533 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

2534 

2535 - `"30m"`

2536 

2537 - `"12h"`

2538 

2499 - `ResponseInputFile object { type, detail, file_data, 4 more }`2539 - `ResponseInputFile object { type, detail, file_data, 4 more }`

2500 2540 

2501 A file input to the model.2541 A file input to the model.


2532 2572 

2533 The name of the file to be sent to the model.2573 The name of the file to be sent to the model.

2534 2574 

2535 - `prompt_cache_breakpoint: optional object { mode }`2575 - `prompt_cache_breakpoint: optional object { mode, ttl }`

2536 2576 

2537 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.2577 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.

2538 2578 

2539 - `mode: "explicit"`2579 - `mode: "explicit"`

2540 2580 


2542 2582 

2543 - `"explicit"`2583 - `"explicit"`

2544 2584 

2585 - `ttl: optional "30m" or "12h"`

2586 

2587 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

2588 

2589 - `"30m"`

2590 

2591 - `"12h"`

2592 

2545 - `version: optional string or null`2593 - `version: optional string or null`

2546 2594 

2547 Optional version of the prompt template.2595 Optional version of the prompt template.

Details

476 476 

477 - `"input_text"`477 - `"input_text"`

478 478 

479 - `prompt_cache_breakpoint: optional object { mode }`479 - `prompt_cache_breakpoint: optional object { mode, ttl }`

480 480 

481 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.481 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.

482 482 

483 - `mode: "explicit"`483 - `mode: "explicit"`

484 484 


486 486 

487 - `"explicit"`487 - `"explicit"`

488 488 

489 - `ttl: optional "30m" or "12h"`

490 

491 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

492 

493 - `"30m"`

494 

495 - `"12h"`

496 

489 - `ResponseInputImage object { detail, type, file_id, 2 more }`497 - `ResponseInputImage object { detail, type, file_id, 2 more }`

490 498 

491 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).499 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).


516 524 

517 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.525 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

518 526 

519 - `prompt_cache_breakpoint: optional object { mode }`527 - `prompt_cache_breakpoint: optional object { mode, ttl }`

520 528 

521 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.529 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.

522 530 

523 - `mode: "explicit"`531 - `mode: "explicit"`

524 532 


526 534 

527 - `"explicit"`535 - `"explicit"`

528 536 

537 - `ttl: optional "30m" or "12h"`

538 

539 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

540 

541 - `"30m"`

542 

543 - `"12h"`

544 

529 - `ResponseInputFile object { type, detail, file_data, 4 more }`545 - `ResponseInputFile object { type, detail, file_data, 4 more }`

530 546 

531 A file input to the model.547 A file input to the model.


562 578 

563 The name of the file to be sent to the model.579 The name of the file to be sent to the model.

564 580 

565 - `prompt_cache_breakpoint: optional object { mode }`581 - `prompt_cache_breakpoint: optional object { mode, ttl }`

566 582 

567 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.583 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.

568 584 

569 - `mode: "explicit"`585 - `mode: "explicit"`

570 586 


572 588 

573 - `"explicit"`589 - `"explicit"`

574 590 

591 - `ttl: optional "30m" or "12h"`

592 

593 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

594 

595 - `"30m"`

596 

597 - `"12h"`

598 

575 - `version: optional string or null`599 - `version: optional string or null`

576 600 

577 Optional version of the prompt template.601 Optional version of the prompt template.


1492 1516 

1493 - `"input_text"`1517 - `"input_text"`

1494 1518 

1495 - `prompt_cache_breakpoint: optional object { mode }`1519 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1496 1520 

1497 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.1521 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.

1498 1522 

1499 - `mode: "explicit"`1523 - `mode: "explicit"`

1500 1524 


1502 1526 

1503 - `"explicit"`1527 - `"explicit"`

1504 1528 

1529 - `ttl: optional "30m" or "12h"`

1530 

1531 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1532 

1533 - `"30m"`

1534 

1535 - `"12h"`

1536 

1505 - `ResponseInputImage object { detail, type, file_id, 2 more }`1537 - `ResponseInputImage object { detail, type, file_id, 2 more }`

1506 1538 

1507 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).1539 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).


1532 1564 

1533 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.1565 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

1534 1566 

1535 - `prompt_cache_breakpoint: optional object { mode }`1567 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1536 1568 

1537 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.1569 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.

1538 1570 

1539 - `mode: "explicit"`1571 - `mode: "explicit"`

1540 1572 


1542 1574 

1543 - `"explicit"`1575 - `"explicit"`

1544 1576 

1577 - `ttl: optional "30m" or "12h"`

1578 

1579 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1580 

1581 - `"30m"`

1582 

1583 - `"12h"`

1584 

1545 - `ResponseInputFile object { type, detail, file_data, 4 more }`1585 - `ResponseInputFile object { type, detail, file_data, 4 more }`

1546 1586 

1547 A file input to the model.1587 A file input to the model.


1578 1618 

1579 The name of the file to be sent to the model.1619 The name of the file to be sent to the model.

1580 1620 

1581 - `prompt_cache_breakpoint: optional object { mode }`1621 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1582 1622 

1583 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.1623 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.

1584 1624 

1585 - `mode: "explicit"`1625 - `mode: "explicit"`

1586 1626 


1588 1628 

1589 - `"explicit"`1629 - `"explicit"`

1590 1630 

1631 - `ttl: optional "30m" or "12h"`

1632 

1633 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1634 

1635 - `"30m"`

1636 

1637 - `"12h"`

1638 

1591 - `version: optional string or null`1639 - `version: optional string or null`

1592 1640 

1593 Optional version of the prompt template.1641 Optional version of the prompt template.

Details

420 420 

421 - `"input_text"`421 - `"input_text"`

422 422 

423 - `prompt_cache_breakpoint: optional object { mode }`423 - `prompt_cache_breakpoint: optional object { mode, ttl }`

424 424 

425 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.425 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.

426 426 

427 - `mode: "explicit"`427 - `mode: "explicit"`

428 428 


430 430 

431 - `"explicit"`431 - `"explicit"`

432 432 

433 - `ttl: optional "30m" or "12h"`

434 

435 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

436 

437 - `"30m"`

438 

439 - `"12h"`

440 

433 - `ResponseInputImage object { detail, type, file_id, 2 more }`441 - `ResponseInputImage object { detail, type, file_id, 2 more }`

434 442 

435 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).443 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


460 468 

461 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.469 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

462 470 

463 - `prompt_cache_breakpoint: optional object { mode }`471 - `prompt_cache_breakpoint: optional object { mode, ttl }`

464 472 

465 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.473 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.

466 474 

467 - `mode: "explicit"`475 - `mode: "explicit"`

468 476 


470 478 

471 - `"explicit"`479 - `"explicit"`

472 480 

481 - `ttl: optional "30m" or "12h"`

482 

483 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

484 

485 - `"30m"`

486 

487 - `"12h"`

488 

473 - `ResponseInputFile object { type, detail, file_data, 4 more }`489 - `ResponseInputFile object { type, detail, file_data, 4 more }`

474 490 

475 A file input to the model.491 A file input to the model.


506 522 

507 The name of the file to be sent to the model.523 The name of the file to be sent to the model.

508 524 

509 - `prompt_cache_breakpoint: optional object { mode }`525 - `prompt_cache_breakpoint: optional object { mode, ttl }`

510 526 

511 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.527 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.

512 528 

513 - `mode: "explicit"`529 - `mode: "explicit"`

514 530 


516 532 

517 - `"explicit"`533 - `"explicit"`

518 534 

535 - `ttl: optional "30m" or "12h"`

536 

537 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

538 

539 - `"30m"`

540 

541 - `"12h"`

542 

519 - `version: optional string or null`543 - `version: optional string or null`

520 544 

521 Optional version of the prompt template.545 Optional version of the prompt template.

Details

453 453 

454 - `"input_text"`454 - `"input_text"`

455 455 

456 - `prompt_cache_breakpoint: optional object { mode }`456 - `prompt_cache_breakpoint: optional object { mode, ttl }`

457 457 

458 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.458 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.

459 459 

460 - `mode: "explicit"`460 - `mode: "explicit"`

461 461 


463 463 

464 - `"explicit"`464 - `"explicit"`

465 465 

466 - `ttl: optional "30m" or "12h"`

467 

468 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

469 

470 - `"30m"`

471 

472 - `"12h"`

473 

466 - `ResponseInputImage object { detail, type, file_id, 2 more }`474 - `ResponseInputImage object { detail, type, file_id, 2 more }`

467 475 

468 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).476 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


493 501 

494 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.502 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

495 503 

496 - `prompt_cache_breakpoint: optional object { mode }`504 - `prompt_cache_breakpoint: optional object { mode, ttl }`

497 505 

498 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.506 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.

499 507 

500 - `mode: "explicit"`508 - `mode: "explicit"`

501 509 


503 511 

504 - `"explicit"`512 - `"explicit"`

505 513 

514 - `ttl: optional "30m" or "12h"`

515 

516 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

517 

518 - `"30m"`

519 

520 - `"12h"`

521 

506 - `ResponseInputFile object { type, detail, file_data, 4 more }`522 - `ResponseInputFile object { type, detail, file_data, 4 more }`

507 523 

508 A file input to the model.524 A file input to the model.


539 555 

540 The name of the file to be sent to the model.556 The name of the file to be sent to the model.

541 557 

542 - `prompt_cache_breakpoint: optional object { mode }`558 - `prompt_cache_breakpoint: optional object { mode, ttl }`

543 559 

544 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.560 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.

545 561 

546 - `mode: "explicit"`562 - `mode: "explicit"`

547 563 


549 565 

550 - `"explicit"`566 - `"explicit"`

551 567 

568 - `ttl: optional "30m" or "12h"`

569 

570 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

571 

572 - `"30m"`

573 

574 - `"12h"`

575 

552 - `version: optional string or null`576 - `version: optional string or null`

553 577 

554 Optional version of the prompt template.578 Optional version of the prompt template.


1422 1446 

1423 - `"input_text"`1447 - `"input_text"`

1424 1448 

1425 - `prompt_cache_breakpoint: optional object { mode }`1449 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1426 1450 

1427 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.1451 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.

1428 1452 

1429 - `mode: "explicit"`1453 - `mode: "explicit"`

1430 1454 


1432 1456 

1433 - `"explicit"`1457 - `"explicit"`

1434 1458 

1459 - `ttl: optional "30m" or "12h"`

1460 

1461 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1462 

1463 - `"30m"`

1464 

1465 - `"12h"`

1466 

1435 - `ResponseInputImage object { detail, type, file_id, 2 more }`1467 - `ResponseInputImage object { detail, type, file_id, 2 more }`

1436 1468 

1437 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).1469 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


1462 1494 

1463 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.1495 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

1464 1496 

1465 - `prompt_cache_breakpoint: optional object { mode }`1497 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1466 1498 

1467 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.1499 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.

1468 1500 

1469 - `mode: "explicit"`1501 - `mode: "explicit"`

1470 1502 


1472 1504 

1473 - `"explicit"`1505 - `"explicit"`

1474 1506 

1507 - `ttl: optional "30m" or "12h"`

1508 

1509 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1510 

1511 - `"30m"`

1512 

1513 - `"12h"`

1514 

1475 - `ResponseInputFile object { type, detail, file_data, 4 more }`1515 - `ResponseInputFile object { type, detail, file_data, 4 more }`

1476 1516 

1477 A file input to the model.1517 A file input to the model.


1508 1548 

1509 The name of the file to be sent to the model.1549 The name of the file to be sent to the model.

1510 1550 

1511 - `prompt_cache_breakpoint: optional object { mode }`1551 - `prompt_cache_breakpoint: optional object { mode, ttl }`

1512 1552 

1513 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.1553 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.

1514 1554 

1515 - `mode: "explicit"`1555 - `mode: "explicit"`

1516 1556 


1518 1558 

1519 - `"explicit"`1559 - `"explicit"`

1520 1560 

1561 - `ttl: optional "30m" or "12h"`

1562 

1563 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

1564 

1565 - `"30m"`

1566 

1567 - `"12h"`

1568 

1521 - `version: optional string or null`1569 - `version: optional string or null`

1522 1570 

1523 Optional version of the prompt template.1571 Optional version of the prompt template.

Details

207 207 

208 - `"input_text"`208 - `"input_text"`

209 209 

210 - `prompt_cache_breakpoint: optional object { mode }`210 - `prompt_cache_breakpoint: optional object { mode, ttl }`

211 211 

212 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.212 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.

213 213 

214 - `mode: "explicit"`214 - `mode: "explicit"`

215 215 


217 217 

218 - `"explicit"`218 - `"explicit"`

219 219 

220 - `ttl: optional "30m" or "12h"`

221 

222 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

223 

224 - `"30m"`

225 

226 - `"12h"`

227 

220 - `ResponseInputImage object { detail, type, file_id, 2 more }`228 - `ResponseInputImage object { detail, type, file_id, 2 more }`

221 229 

222 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).230 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


247 255 

248 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.256 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

249 257 

250 - `prompt_cache_breakpoint: optional object { mode }`258 - `prompt_cache_breakpoint: optional object { mode, ttl }`

251 259 

252 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.260 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.

253 261 

254 - `mode: "explicit"`262 - `mode: "explicit"`

255 263 


257 265 

258 - `"explicit"`266 - `"explicit"`

259 267 

268 - `ttl: optional "30m" or "12h"`

269 

270 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

271 

272 - `"30m"`

273 

274 - `"12h"`

275 

260 - `ResponseInputFile object { type, detail, file_data, 4 more }`276 - `ResponseInputFile object { type, detail, file_data, 4 more }`

261 277 

262 A file input to the model.278 A file input to the model.


293 309 

294 The name of the file to be sent to the model.310 The name of the file to be sent to the model.

295 311 

296 - `prompt_cache_breakpoint: optional object { mode }`312 - `prompt_cache_breakpoint: optional object { mode, ttl }`

297 313 

298 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.314 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.

299 315 

300 - `mode: "explicit"`316 - `mode: "explicit"`

301 317 


303 319 

304 - `"explicit"`320 - `"explicit"`

305 321 

322 - `ttl: optional "30m" or "12h"`

323 

324 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

325 

326 - `"30m"`

327 

328 - `"12h"`

329 

306 - `role: "user" or "assistant" or "system" or "developer"`330 - `role: "user" or "assistant" or "system" or "developer"`

307 331 

308 The role of the message input. One of `user`, `assistant`, `system`, or332 The role of the message input. One of `user`, `assistant`, `system`, or


1168 1192 

1169 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1193 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1170 1194 

1171 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.1195 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.

1172 1196 

1173 - `mode: "explicit"`1197 - `mode: "explicit"`

1174 1198 


1208 1232 

1209 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1233 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1210 1234 

1211 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.1235 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.

1212 1236 

1213 - `mode: "explicit"`1237 - `mode: "explicit"`

1214 1238 


1262 1286 

1263 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1287 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1264 1288 

1265 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.1289 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.

1266 1290 

1267 - `mode: "explicit"`1291 - `mode: "explicit"`

1268 1292 


4567 4591 

4568 - `string`4592 - `string`

4569 4593 

4570 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6-sol" or 86 more`4594 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more`

4571 4595 

4572 - `"gpt-6-astra"`4596 - `"gpt-6-astra"`

4573 4597 

4574 - `"gpt-6.1-sol"`4598 - `"gpt-6.1-sol"`

4575 4599 

4600 - `"gpt-6.1-terra"`

4601 

4576 - `"gpt-6-sol"`4602 - `"gpt-6-sol"`

4577 4603 

4578 - `"gpt-6-luna"`4604 - `"gpt-6-luna"`

Details

10 10 

11### Body Parameters11### Body Parameters

12 12 

13- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6-sol" or 106 more or string or null`13- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 107 more or string or null`

14 14 

15 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.15 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

16 16 

17 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6-sol" or 106 more`17 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 107 more`

18 18 

19 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.19 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

20 20 


22 22 

23 - `"gpt-6.1-sol"`23 - `"gpt-6.1-sol"`

24 24 

25 - `"gpt-6.1-terra"`

26 

25 - `"gpt-6-sol"`27 - `"gpt-6-sol"`

26 28 

27 - `"gpt-6-luna"`29 - `"gpt-6-luna"`


286 288 

287 - `"input_text"`289 - `"input_text"`

288 290 

289 - `prompt_cache_breakpoint: optional object { mode }`291 - `prompt_cache_breakpoint: optional object { mode, ttl }`

290 292 

291 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.293 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.

292 294 

293 - `mode: "explicit"`295 - `mode: "explicit"`

294 296 


296 298 

297 - `"explicit"`299 - `"explicit"`

298 300 

301 - `ttl: optional "30m" or "12h"`

302 

303 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

304 

305 - `"30m"`

306 

307 - `"12h"`

308 

299 - `ResponseInputImage object { detail, type, file_id, 2 more }`309 - `ResponseInputImage object { detail, type, file_id, 2 more }`

300 310 

301 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).311 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


326 336 

327 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.337 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

328 338 

329 - `prompt_cache_breakpoint: optional object { mode }`339 - `prompt_cache_breakpoint: optional object { mode, ttl }`

330 340 

331 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.341 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.

332 342 

333 - `mode: "explicit"`343 - `mode: "explicit"`

334 344 


336 346 

337 - `"explicit"`347 - `"explicit"`

338 348 

349 - `ttl: optional "30m" or "12h"`

350 

351 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

352 

353 - `"30m"`

354 

355 - `"12h"`

356 

339 - `ResponseInputFile object { type, detail, file_data, 4 more }`357 - `ResponseInputFile object { type, detail, file_data, 4 more }`

340 358 

341 A file input to the model.359 A file input to the model.


372 390 

373 The name of the file to be sent to the model.391 The name of the file to be sent to the model.

374 392 

375 - `prompt_cache_breakpoint: optional object { mode }`393 - `prompt_cache_breakpoint: optional object { mode, ttl }`

376 394 

377 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.395 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.

378 396 

379 - `mode: "explicit"`397 - `mode: "explicit"`

380 398 


382 400 

383 - `"explicit"`401 - `"explicit"`

384 402 

403 - `ttl: optional "30m" or "12h"`

404 

405 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

406 

407 - `"30m"`

408 

409 - `"12h"`

410 

385 - `role: "user" or "assistant" or "system" or "developer"`411 - `role: "user" or "assistant" or "system" or "developer"`

386 412 

387 The role of the message input. One of `user`, `assistant`, `system`, or413 The role of the message input. One of `user`, `assistant`, `system`, or


1247 1273 

1248 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1274 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1249 1275 

1250 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.1276 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.

1251 1277 

1252 - `mode: "explicit"`1278 - `mode: "explicit"`

1253 1279 


1287 1313 

1288 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1314 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1289 1315 

1290 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.1316 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.

1291 1317 

1292 - `mode: "explicit"`1318 - `mode: "explicit"`

1293 1319 


1341 1367 

1342 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1368 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1343 1369 

1344 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.1370 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.

1345 1371 

1346 - `mode: "explicit"`1372 - `mode: "explicit"`

1347 1373 


4730 4756 

4731 - `"input_text"`4757 - `"input_text"`

4732 4758 

4733 - `prompt_cache_breakpoint: optional object { mode }`4759 - `prompt_cache_breakpoint: optional object { mode, ttl }`

4734 4760 

4735 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.4761 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.

4736 4762 

4737 - `mode: "explicit"`4763 - `mode: "explicit"`

4738 4764 


4740 4766 

4741 - `"explicit"`4767 - `"explicit"`

4742 4768 

4769 - `ttl: optional "30m" or "12h"`

4770 

4771 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

4772 

4773 - `"30m"`

4774 

4775 - `"12h"`

4776 

4743 - `ResponseOutputText object { annotations, logprobs, text, type }`4777 - `ResponseOutputText object { annotations, logprobs, text, type }`

4744 4778 

4745 A text output from the model.4779 A text output from the model.


4952 4986 

4953 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.4987 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

4954 4988 

4955 - `prompt_cache_breakpoint: optional object { mode }`4989 - `prompt_cache_breakpoint: optional object { mode, ttl }`

4956 4990 

4957 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.4991 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.

4958 4992 

4959 - `mode: "explicit"`4993 - `mode: "explicit"`

4960 4994 


4962 4996 

4963 - `"explicit"`4997 - `"explicit"`

4964 4998 

4999 - `ttl: optional "30m" or "12h"`

5000 

5001 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

5002 

5003 - `"30m"`

5004 

5005 - `"12h"`

5006 

4965 - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`5007 - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`

4966 5008 

4967 A screenshot of a computer.5009 A screenshot of a computer.


4984 5026 

4985 - `"computer_screenshot"`5027 - `"computer_screenshot"`

4986 5028 

4987 - `prompt_cache_breakpoint: optional object { mode }`5029 - `prompt_cache_breakpoint: optional object { mode, ttl }`

4988 5030 

4989 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.5031 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.

4990 5032 

4991 - `mode: "explicit"`5033 - `mode: "explicit"`

4992 5034 


4994 5036 

4995 - `"explicit"`5037 - `"explicit"`

4996 5038 

5039 - `ttl: optional "30m" or "12h"`

5040 

5041 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

5042 

5043 - `"30m"`

5044 

5045 - `"12h"`

5046 

4997 - `ResponseInputFile object { type, detail, file_data, 4 more }`5047 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4998 5048 

4999 A file input to the model.5049 A file input to the model.


5030 5080 

5031 The name of the file to be sent to the model.5081 The name of the file to be sent to the model.

5032 5082 

5033 - `prompt_cache_breakpoint: optional object { mode }`5083 - `prompt_cache_breakpoint: optional object { mode, ttl }`

5034 5084 

5035 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.5085 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.

5036 5086 

5037 - `mode: "explicit"`5087 - `mode: "explicit"`

5038 5088 


5040 5090 

5041 - `"explicit"`5091 - `"explicit"`

5042 5092 

5093 - `ttl: optional "30m" or "12h"`

5094 

5095 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

5096 

5097 - `"30m"`

5098 

5099 - `"12h"`

5100 

5043 - `role: "unknown" or "user" or "assistant" or 5 more`5101 - `role: "unknown" or "user" or "assistant" or 5 more`

5044 5102 

5045 The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.5103 The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.

Details

148 148 

149 - `"input_text"`149 - `"input_text"`

150 150 

151 - `prompt_cache_breakpoint: optional object { mode }`151 - `prompt_cache_breakpoint: optional object { mode, ttl }`

152 152 

153 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.153 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.

154 154 

155 - `mode: "explicit"`155 - `mode: "explicit"`

156 156 


158 158 

159 - `"explicit"`159 - `"explicit"`

160 160 

161 - `ttl: optional "30m" or "12h"`

162 

163 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

164 

165 - `"30m"`

166 

167 - `"12h"`

168 

161 - `ResponseInputImage object { detail, type, file_id, 2 more }`169 - `ResponseInputImage object { detail, type, file_id, 2 more }`

162 170 

163 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).171 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


188 196 

189 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.197 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

190 198 

191 - `prompt_cache_breakpoint: optional object { mode }`199 - `prompt_cache_breakpoint: optional object { mode, ttl }`

192 200 

193 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.201 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.

194 202 

195 - `mode: "explicit"`203 - `mode: "explicit"`

196 204 


198 206 

199 - `"explicit"`207 - `"explicit"`

200 208 

209 - `ttl: optional "30m" or "12h"`

210 

211 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

212 

213 - `"30m"`

214 

215 - `"12h"`

216 

201 - `ResponseInputFile object { type, detail, file_data, 4 more }`217 - `ResponseInputFile object { type, detail, file_data, 4 more }`

202 218 

203 A file input to the model.219 A file input to the model.


234 250 

235 The name of the file to be sent to the model.251 The name of the file to be sent to the model.

236 252 

237 - `prompt_cache_breakpoint: optional object { mode }`253 - `prompt_cache_breakpoint: optional object { mode, ttl }`

238 254 

239 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.255 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.

240 256 

241 - `mode: "explicit"`257 - `mode: "explicit"`

242 258 


244 260 

245 - `"explicit"`261 - `"explicit"`

246 262 

263 - `ttl: optional "30m" or "12h"`

264 

265 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

266 

267 - `"30m"`

268 

269 - `"12h"`

270 

247 - `role: "user" or "assistant" or "system" or "developer"`271 - `role: "user" or "assistant" or "system" or "developer"`

248 272 

249 The role of the message input. One of `user`, `assistant`, `system`, or273 The role of the message input. One of `user`, `assistant`, `system`, or


1109 1133 

1110 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1134 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1111 1135 

1112 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.1136 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.

1113 1137 

1114 - `mode: "explicit"`1138 - `mode: "explicit"`

1115 1139 


1149 1173 

1150 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1174 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1151 1175 

1152 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.1176 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.

1153 1177 

1154 - `mode: "explicit"`1178 - `mode: "explicit"`

1155 1179 


1203 1227 

1204 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1228 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1205 1229 

1206 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.1230 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.

1207 1231 

1208 - `mode: "explicit"`1232 - `mode: "explicit"`

1209 1233 


4524 4548 

4525 - `string`4549 - `string`

4526 4550 

4527 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6-sol" or 86 more`4551 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more`

4528 4552 

4529 - `"gpt-6-astra"`4553 - `"gpt-6-astra"`

4530 4554 

4531 - `"gpt-6.1-sol"`4555 - `"gpt-6.1-sol"`

4532 4556 

4557 - `"gpt-6.1-terra"`

4558 

4533 - `"gpt-6-sol"`4559 - `"gpt-6-sol"`

4534 4560 

4535 - `"gpt-6-luna"`4561 - `"gpt-6-luna"`


6399 6425 

6400 - `"input_text"`6426 - `"input_text"`

6401 6427 

6402 - `prompt_cache_breakpoint: optional object { mode }`6428 - `prompt_cache_breakpoint: optional object { mode, ttl }`

6403 6429 

6404 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.6430 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.

6405 6431 

6406 - `mode: "explicit"`6432 - `mode: "explicit"`

6407 6433 


6409 6435 

6410 - `"explicit"`6436 - `"explicit"`

6411 6437 

6438 - `ttl: optional "30m" or "12h"`

6439 

6440 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

6441 

6442 - `"30m"`

6443 

6444 - `"12h"`

6445 

6412 - `ResponseInputImage object { detail, type, file_id, 2 more }`6446 - `ResponseInputImage object { detail, type, file_id, 2 more }`

6413 6447 

6414 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).6448 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


6439 6473 

6440 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.6474 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

6441 6475 

6442 - `prompt_cache_breakpoint: optional object { mode }`6476 - `prompt_cache_breakpoint: optional object { mode, ttl }`

6443 6477 

6444 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.6478 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.

6445 6479 

6446 - `mode: "explicit"`6480 - `mode: "explicit"`

6447 6481 


6449 6483 

6450 - `"explicit"`6484 - `"explicit"`

6451 6485 

6486 - `ttl: optional "30m" or "12h"`

6487 

6488 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

6489 

6490 - `"30m"`

6491 

6492 - `"12h"`

6493 

6452 - `ResponseInputFile object { type, detail, file_data, 4 more }`6494 - `ResponseInputFile object { type, detail, file_data, 4 more }`

6453 6495 

6454 A file input to the model.6496 A file input to the model.


6485 6527 

6486 The name of the file to be sent to the model.6528 The name of the file to be sent to the model.

6487 6529 

6488 - `prompt_cache_breakpoint: optional object { mode }`6530 - `prompt_cache_breakpoint: optional object { mode, ttl }`

6489 6531 

6490 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.6532 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.

6491 6533 

6492 - `mode: "explicit"`6534 - `mode: "explicit"`

6493 6535 


6495 6537 

6496 - `"explicit"`6538 - `"explicit"`

6497 6539 

6540 - `ttl: optional "30m" or "12h"`

6541 

6542 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

6543 

6544 - `"30m"`

6545 

6546 - `"12h"`

6547 

6498 - `role: "user" or "assistant" or "system" or "developer"`6548 - `role: "user" or "assistant" or "system" or "developer"`

6499 6549 

6500 The role of the message input. One of `user`, `assistant`, `system`, or6550 The role of the message input. One of `user`, `assistant`, `system`, or


7360 7410 

7361 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`7411 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

7362 7412 

7363 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.7413 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.

7364 7414 

7365 - `mode: "explicit"`7415 - `mode: "explicit"`

7366 7416 


7400 7450 

7401 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`7451 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

7402 7452 

7403 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.7453 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.

7404 7454 

7405 - `mode: "explicit"`7455 - `mode: "explicit"`

7406 7456 


7454 7504 

7455 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`7505 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

7456 7506 

7457 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.7507 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.

7458 7508 

7459 - `mode: "explicit"`7509 - `mode: "explicit"`

7460 7510 


10759 10809 

10760 - `string`10810 - `string`

10761 10811 

10762 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6-sol" or 86 more`10812 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more`

10763 10813 

10764 - `"gpt-6-astra"`10814 - `"gpt-6-astra"`

10765 10815 

10766 - `"gpt-6.1-sol"`10816 - `"gpt-6.1-sol"`

10767 10817 

10818 - `"gpt-6.1-terra"`

10819 

10768 - `"gpt-6-sol"`10820 - `"gpt-6-sol"`

10769 10821 

10770 - `"gpt-6-luna"`10822 - `"gpt-6-luna"`

Details

251 251 

252 - `"input_text"`252 - `"input_text"`

253 253 

254 - `prompt_cache_breakpoint: optional object { mode }`254 - `prompt_cache_breakpoint: optional object { mode, ttl }`

255 255 

256 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.256 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.

257 257 

258 - `mode: "explicit"`258 - `mode: "explicit"`

259 259 


261 261 

262 - `"explicit"`262 - `"explicit"`

263 263 

264 - `ttl: optional "30m" or "12h"`

265 

266 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

267 

268 - `"30m"`

269 

270 - `"12h"`

271 

264 - `ResponseInputImage object { detail, type, file_id, 2 more }`272 - `ResponseInputImage object { detail, type, file_id, 2 more }`

265 273 

266 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).274 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


291 299 

292 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.300 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

293 301 

294 - `prompt_cache_breakpoint: optional object { mode }`302 - `prompt_cache_breakpoint: optional object { mode, ttl }`

295 303 

296 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.304 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.

297 305 

298 - `mode: "explicit"`306 - `mode: "explicit"`

299 307 


301 309 

302 - `"explicit"`310 - `"explicit"`

303 311 

312 - `ttl: optional "30m" or "12h"`

313 

314 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

315 

316 - `"30m"`

317 

318 - `"12h"`

319 

304 - `ResponseInputFile object { type, detail, file_data, 4 more }`320 - `ResponseInputFile object { type, detail, file_data, 4 more }`

305 321 

306 A file input to the model.322 A file input to the model.


337 353 

338 The name of the file to be sent to the model.354 The name of the file to be sent to the model.

339 355 

340 - `prompt_cache_breakpoint: optional object { mode }`356 - `prompt_cache_breakpoint: optional object { mode, ttl }`

341 357 

342 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.358 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.

343 359 

344 - `mode: "explicit"`360 - `mode: "explicit"`

345 361 


347 363 

348 - `"explicit"`364 - `"explicit"`

349 365 

366 - `ttl: optional "30m" or "12h"`

367 

368 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

369 

370 - `"30m"`

371 

372 - `"12h"`

373 

350 - `role: "user" or "assistant" or "system" or "developer"`374 - `role: "user" or "assistant" or "system" or "developer"`

351 375 

352 The role of the message input. One of `user`, `assistant`, `system`, or376 The role of the message input. One of `user`, `assistant`, `system`, or


1212 1236 

1213 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1237 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1214 1238 

1215 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.1239 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.

1216 1240 

1217 - `mode: "explicit"`1241 - `mode: "explicit"`

1218 1242 


1252 1276 

1253 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1277 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1254 1278 

1255 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.1279 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.

1256 1280 

1257 - `mode: "explicit"`1281 - `mode: "explicit"`

1258 1282 


1306 1330 

1307 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1331 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1308 1332 

1309 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.1333 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.

1310 1334 

1311 - `mode: "explicit"`1335 - `mode: "explicit"`

1312 1336 


4611 4635 

4612 - `string`4636 - `string`

4613 4637 

4614 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6-sol" or 86 more`4638 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more`

4615 4639 

4616 - `"gpt-6-astra"`4640 - `"gpt-6-astra"`

4617 4641 

4618 - `"gpt-6.1-sol"`4642 - `"gpt-6.1-sol"`

4619 4643 

4644 - `"gpt-6.1-terra"`

4645 

4620 - `"gpt-6-sol"`4646 - `"gpt-6-sol"`

4621 4647 

4622 - `"gpt-6-luna"`4648 - `"gpt-6-luna"`

Details

88 88 

89 - `"input_text"`89 - `"input_text"`

90 90 

91 - `prompt_cache_breakpoint: optional object { mode }`91 - `prompt_cache_breakpoint: optional object { mode, ttl }`

92 92 

93 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.93 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 94 

95 - `mode: "explicit"`95 - `mode: "explicit"`

96 96 


98 98 

99 - `"explicit"`99 - `"explicit"`

100 100 

101 - `ttl: optional "30m" or "12h"`

102 

103 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

104 

105 - `"30m"`

106 

107 - `"12h"`

108 

101 - `ResponseInputImage object { detail, type, file_id, 2 more }`109 - `ResponseInputImage object { detail, type, file_id, 2 more }`

102 110 

103 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).111 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


128 136 

129 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.137 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

130 138 

131 - `prompt_cache_breakpoint: optional object { mode }`139 - `prompt_cache_breakpoint: optional object { mode, ttl }`

132 140 

133 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.141 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.

134 142 

135 - `mode: "explicit"`143 - `mode: "explicit"`

136 144 


138 146 

139 - `"explicit"`147 - `"explicit"`

140 148 

149 - `ttl: optional "30m" or "12h"`

150 

151 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

152 

153 - `"30m"`

154 

155 - `"12h"`

156 

141 - `ResponseInputFile object { type, detail, file_data, 4 more }`157 - `ResponseInputFile object { type, detail, file_data, 4 more }`

142 158 

143 A file input to the model.159 A file input to the model.


174 190 

175 The name of the file to be sent to the model.191 The name of the file to be sent to the model.

176 192 

177 - `prompt_cache_breakpoint: optional object { mode }`193 - `prompt_cache_breakpoint: optional object { mode, ttl }`

178 194 

179 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.195 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.

180 196 

181 - `mode: "explicit"`197 - `mode: "explicit"`

182 198 


184 200 

185 - `"explicit"`201 - `"explicit"`

186 202 

203 - `ttl: optional "30m" or "12h"`

204 

205 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

206 

207 - `"30m"`

208 

209 - `"12h"`

210 

187 - `role: "user" or "system" or "developer"`211 - `role: "user" or "system" or "developer"`

188 212 

189 The role of the message input. One of `user`, `system`, or `developer`.213 The role of the message input. One of `user`, `system`, or `developer`.


4365 "text": "text",4389 "text": "text",

4366 "type": "input_text",4390 "type": "input_text",

4367 "prompt_cache_breakpoint": {4391 "prompt_cache_breakpoint": {

4368 "mode": "explicit"4392 "mode": "explicit",

4393 "ttl": "30m"

4369 }4394 }

4370 }4395 }

4371 ],4396 ],

Details

77 77 

78 - `"input_text"`78 - `"input_text"`

79 79 

80 - `prompt_cache_breakpoint: optional object { mode }`80 - `prompt_cache_breakpoint: optional object { mode, ttl }`

81 81 

82 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.82 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.

83 83 

84 - `mode: "explicit"`84 - `mode: "explicit"`

85 85 


87 87 

88 - `"explicit"`88 - `"explicit"`

89 89 

90 - `ttl: optional "30m" or "12h"`

91 

92 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

93 

94 - `"30m"`

95 

96 - `"12h"`

97 

90 - `ResponseInputImage object { detail, type, file_id, 2 more }`98 - `ResponseInputImage object { detail, type, file_id, 2 more }`

91 99 

92 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).100 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).


117 125 

118 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.126 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.

119 127 

120 - `prompt_cache_breakpoint: optional object { mode }`128 - `prompt_cache_breakpoint: optional object { mode, ttl }`

121 129 

122 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.130 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.

123 131 

124 - `mode: "explicit"`132 - `mode: "explicit"`

125 133 


127 135 

128 - `"explicit"`136 - `"explicit"`

129 137 

138 - `ttl: optional "30m" or "12h"`

139 

140 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

141 

142 - `"30m"`

143 

144 - `"12h"`

145 

130 - `ResponseInputFile object { type, detail, file_data, 4 more }`146 - `ResponseInputFile object { type, detail, file_data, 4 more }`

131 147 

132 A file input to the model.148 A file input to the model.


163 179 

164 The name of the file to be sent to the model.180 The name of the file to be sent to the model.

165 181 

166 - `prompt_cache_breakpoint: optional object { mode }`182 - `prompt_cache_breakpoint: optional object { mode, ttl }`

167 183 

168 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.184 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.

169 185 

170 - `mode: "explicit"`186 - `mode: "explicit"`

171 187 


173 189 

174 - `"explicit"`190 - `"explicit"`

175 191 

192 - `ttl: optional "30m" or "12h"`

193 

194 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.

195 

196 - `"30m"`

197 

198 - `"12h"`

199 

176 - `role: "user" or "assistant" or "system" or "developer"`200 - `role: "user" or "assistant" or "system" or "developer"`

177 201 

178 The role of the message input. One of `user`, `assistant`, `system`, or202 The role of the message input. One of `user`, `assistant`, `system`, or


1038 1062 

1039 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1063 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1040 1064 

1041 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.1065 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.

1042 1066 

1043 - `mode: "explicit"`1067 - `mode: "explicit"`

1044 1068 


1078 1102 

1079 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1103 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1080 1104 

1081 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.1105 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.

1082 1106 

1083 - `mode: "explicit"`1107 - `mode: "explicit"`

1084 1108 


1132 1156 

1133 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`1157 - `prompt_cache_breakpoint: optional object { mode, ttl } or null`

1134 1158 

1135 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.1159 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.

1136 1160 

1137 - `mode: "explicit"`1161 - `mode: "explicit"`

1138 1162