SpyBara
Go Premium

Reference 2026-10-01 22:59 UTC to 2026-10-02 23:58 UTC

36 files changed +5,294 −63. View all changes and history on the product overview
2026
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

1146 1146 

1147 A customer-safe error. Non-null only for a failed turn.1147 A customer-safe error. Non-null only for a failed turn.

1148 1148 

1149 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 16 more`1149 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 19 more`

1150 1150 

1151 A stable, machine-readable failure category.1151 A stable, machine-readable failure category.

1152 1152 


1162 1162 

1163 The organization has reached a usage, plan, or billing limit.1163 The organization has reached a usage, plan, or billing limit.

1164 1164 

1165 - `"project_spend_limit_exceeded"`

1166 

1167 The project has reached its enforced spend limit.

1168 

1169 - `"organization_spend_limit_exceeded"`

1170 

1171 The organization has reached its enforced spend limit.

1172 

1173 - `"organization_usage_limit_exceeded"`

1174 

1175 The organization has reached its OpenAI-assigned usage limit.

1176 

1165 - `"credit_balance_exhausted"`1177 - `"credit_balance_exhausted"`

1166 1178 

1167 The organization has no API credits remaining.1179 The organization has no API credits remaining.


1397 1409 

1398 A customer-safe error. Non-null only for a failed turn.1410 A customer-safe error. Non-null only for a failed turn.

1399 1411 

1400 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 16 more`1412 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 19 more`

1401 1413 

1402 A stable, machine-readable failure category.1414 A stable, machine-readable failure category.

1403 1415 


1413 1425 

1414 The organization has reached a usage, plan, or billing limit.1426 The organization has reached a usage, plan, or billing limit.

1415 1427 

1428 - `"project_spend_limit_exceeded"`

1429 

1430 The project has reached its enforced spend limit.

1431 

1432 - `"organization_spend_limit_exceeded"`

1433 

1434 The organization has reached its enforced spend limit.

1435 

1436 - `"organization_usage_limit_exceeded"`

1437 

1438 The organization has reached its OpenAI-assigned usage limit.

1439 

1416 - `"credit_balance_exhausted"`1440 - `"credit_balance_exhausted"`

1417 1441 

1418 The organization has no API credits remaining.1442 The organization has no API credits remaining.


1648 1672 

1649 A customer-safe error. Non-null only for a failed turn.1673 A customer-safe error. Non-null only for a failed turn.

1650 1674 

1651 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 16 more`1675 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 19 more`

1652 1676 

1653 A stable, machine-readable failure category.1677 A stable, machine-readable failure category.

1654 1678 


1664 1688 

1665 The organization has reached a usage, plan, or billing limit.1689 The organization has reached a usage, plan, or billing limit.

1666 1690 

1691 - `"project_spend_limit_exceeded"`

1692 

1693 The project has reached its enforced spend limit.

1694 

1695 - `"organization_spend_limit_exceeded"`

1696 

1697 The organization has reached its enforced spend limit.

1698 

1699 - `"organization_usage_limit_exceeded"`

1700 

1701 The organization has reached its OpenAI-assigned usage limit.

1702 

1667 - `"credit_balance_exhausted"`1703 - `"credit_balance_exhausted"`

1668 1704 

1669 The organization has no API credits remaining.1705 The organization has no API credits remaining.


1914 1950 

1915 A customer-safe error. Non-null only for a failed turn.1951 A customer-safe error. Non-null only for a failed turn.

1916 1952 

1917 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 16 more`1953 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 19 more`

1918 1954 

1919 A stable, machine-readable failure category.1955 A stable, machine-readable failure category.

1920 1956 


1930 1966 

1931 The organization has reached a usage, plan, or billing limit.1967 The organization has reached a usage, plan, or billing limit.

1932 1968 

1969 - `"project_spend_limit_exceeded"`

1970 

1971 The project has reached its enforced spend limit.

1972 

1973 - `"organization_spend_limit_exceeded"`

1974 

1975 The organization has reached its enforced spend limit.

1976 

1977 - `"organization_usage_limit_exceeded"`

1978 

1979 The organization has reached its OpenAI-assigned usage limit.

1980 

1933 - `"credit_balance_exhausted"`1981 - `"credit_balance_exhausted"`

1934 1982 

1935 The organization has no API credits remaining.1983 The organization has no API credits remaining.


2180 2228 

2181 A customer-safe error. Non-null only for a failed turn.2229 A customer-safe error. Non-null only for a failed turn.

2182 2230 

2183 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 16 more`2231 - `code: "context_length_exceeded" or "session_budget_exceeded" or "usage_limit_exceeded" or 19 more`

2184 2232 

2185 A stable, machine-readable failure category.2233 A stable, machine-readable failure category.

2186 2234 


2196 2244 

2197 The organization has reached a usage, plan, or billing limit.2245 The organization has reached a usage, plan, or billing limit.

2198 2246 

2247 - `"project_spend_limit_exceeded"`

2248 

2249 The project has reached its enforced spend limit.

2250 

2251 - `"organization_spend_limit_exceeded"`

2252 

2253 The organization has reached its enforced spend limit.

2254 

2255 - `"organization_usage_limit_exceeded"`

2256 

2257 The organization has reached its OpenAI-assigned usage limit.

2258 

2199 - `"credit_balance_exhausted"`2259 - `"credit_balance_exhausted"`

2200 2260 

2201 The organization has no API credits remaining.2261 The organization has no API credits remaining.

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

85 85 

86#### Python86#### Python

87 87 

88 

89 

90#### Thread object

91 

92```python

93thread = openai.beta.threads.create(

94 messages=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

95 metadata={"user_id": "peter_le_fleur"},

96)

97```

98 

99#### Conversation object

100 

101```python

102conversation = openai.conversations.create(

103 items=[{"role": "user", "content": "what are the 5 Ds of dodgeball?"}],

104 metadata={"user_id": "peter_le_fleur"},

105)

106```

107 

108 

109 

88#### Go110#### Go

89 111 

112 

113 

114#### Thread object (Go)

115 

116```go

117thread, err := client.Beta.Threads.New(context.Background(), openai.BetaThreadNewParams{

118 Messages: []openai.BetaThreadNewParamsMessage{{

119 Role: "user",

120 Content: openai.BetaThreadNewParamsMessageContentUnion{

121 OfString: openai.String("what are the 5 Ds of dodgeball?"),

122 },

123 }},

124 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

125})

126if err != nil {

127 panic(err)

128}

129```

130 

131#### Conversation object (Go)

132 

133```go

134conversation, err := client.Conversations.New(context.Background(), conversations.ConversationNewParams{

135 Items: []responses.ResponseInputItemUnionParam{

136 responses.ResponseInputItemParamOfMessage("what are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

137 },

138 Metadata: shared.Metadata{"user_id": "peter_le_fleur"},

139})

140if err != nil {

141 panic(err)

142}

143```

144 

145 

146 

147#### JavaScript

148 

149 

150 

151#### Thread object (JavaScript)

152 

153```javascript

154import OpenAI from "openai";

155 

156const client = new OpenAI();

157const thread = await client.beta.threads.create({

158 messages: [{ role: "user", content: "what are the 5 Ds of dodgeball?" }],

159 metadata: { user_id: "peter_le_fleur" },

160});

161console.log(thread.id);

162```

163 

164#### Conversation object (JavaScript)

165 

166```javascript

167import OpenAI from "openai";

168 

169const client = new OpenAI();

170 

171const conversation = await client.conversations.create({

172 items: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

173 metadata: { user_id: "peter_le_fleur" },

174});

175 

176console.log(conversation.id);

177```

178 

179 

180 

90### Response example181### Response example

91 182 

92 183 


132 223 

133#### Python224#### Python

134 225 

226 

227 

228#### Run object

229 

230```python

231# Replace the illustrative IDs and URLs below with your own resource values.

232import time

233 

234from openai import OpenAI

235 

236openai = OpenAI()

237thread_id = "thread_123"

238assistant_id = "asst_123"

239 

240run = openai.beta.threads.runs.create(

241 thread_id=thread_id,

242 assistant_id=assistant_id,

243)

244 

245while run.status in ("queued", "in_progress"):

246 time.sleep(1)

247 run = openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run.id)

248```

249 

250#### Response object

251 

252```python

253# Replace the illustrative IDs and URLs below with your own resource values.

254 

255from openai import OpenAI

256 

257openai = OpenAI()

258conversation_id = "conv_123"

259 

260response = openai.responses.create(

261 model="gpt-6-astra",

262 input=[{"role": "user", "content": "What are the 5 Ds of dodgeball?"}],

263 conversation=conversation_id,

264)

265```

266 

267 

268 

135#### Go269#### Go

136 270 

271 

272 

273#### Run object (Go)

274 

275```go

276run, err := client.Beta.Threads.Runs.New(context.Background(), "thread_abc123", openai.BetaThreadRunNewParams{

277 AssistantID: "asst_abc123",

278})

279if err != nil {

280 panic(err)

281}

282for run.Status == openai.RunStatusQueued || run.Status == openai.RunStatusInProgress {

283 time.Sleep(time.Second)

284 run, err = client.Beta.Threads.Runs.Get(context.Background(), "thread_abc123", run.ID)

285 if err != nil {

286 panic(err)

287 }

288}

289```

290 

291#### Response object (Go)

292 

293```go

294_, err := client.Responses.New(context.Background(), responses.ResponseNewParams{

295 Model: "gpt-6-astra",

296 Input: responses.ResponseNewParamsInputUnion{OfInputItemList: responses.ResponseInputParam{

297 responses.ResponseInputItemParamOfMessage("What are the 5 Ds of dodgeball?", responses.EasyInputMessageRoleUser),

298 }},

299 Conversation: responses.ResponseNewParamsConversationUnion{OfString: openai.String("conv_abc123")},

300})

301if err != nil {

302 panic(err)

303}

304```

305 

306 

307 

308#### JavaScript

309 

310 

311 

312#### Run object (JavaScript)

313 

314```javascript

315import { setTimeout } from "node:timers/promises";

316import OpenAI from "openai";

317 

318const client = new OpenAI();

319// Replace these illustrative IDs with your own resources.

320const threadId = "thread_123";

321const assistantId = "asst_123";

322let run = await client.beta.threads.runs.create(threadId, {

323 assistant_id: assistantId,

324});

325while (run.status === "queued" || run.status === "in_progress") {

326 await setTimeout(1000);

327 run = await client.beta.threads.runs.retrieve(run.id, {

328 thread_id: threadId,

329 });

330}

331console.log(run.status);

332```

333 

334#### Response object (JavaScript)

335 

336```javascript

337// Replace the illustrative IDs and URLs below with your own resource values.

338import OpenAI from "openai";

339 

340const client = new OpenAI();

341const conversationId = "conv_123";

342 

343const response = await client.responses.create({

344 model: "gpt-6-astra",

345 input: [{ role: "user", content: "What are the five Ds of dodgeball?" }],

346 conversation: conversationId,

347});

348 

349console.log(response.output_text);

350```

351 

352 

353 

137### Response example354### Response example

138 355 

139 356 

Details

1773 1773 

1774 - `input_fidelity: optional "high" or "low" or null`1774 - `input_fidelity: optional "high" or "low" or null`

1775 1775 

1776 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1776 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1777 1777 

1778 - `"high"`1778 - `"high"`

1779 1779 


2833 2833 

2834 - `input_fidelity: optional "high" or "low" or null`2834 - `input_fidelity: optional "high" or "low" or null`

2835 2835 

2836 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2836 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2837 2837 

2838 - `"high"`2838 - `"high"`

2839 2839 

Details

1870 1870 

1871 - `input_fidelity: optional "high" or "low" or null`1871 - `input_fidelity: optional "high" or "low" or null`

1872 1872 

1873 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1873 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1874 1874 

1875 - `"high"`1875 - `"high"`

1876 1876 


2926 2926 

2927 - `input_fidelity: optional "high" or "low" or null`2927 - `input_fidelity: optional "high" or "low" or null`

2928 2928 

2929 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2929 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2930 2930 

2931 - `"high"`2931 - `"high"`

2932 2932 

Details

1535 1535 

1536 - `input_fidelity: optional "high" or "low" or null`1536 - `input_fidelity: optional "high" or "low" or null`

1537 1537 

1538 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1538 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1539 1539 

1540 - `"high"`1540 - `"high"`

1541 1541 

Details

2544 2544 

2545 - `input_fidelity: optional "high" or "low" or null`2545 - `input_fidelity: optional "high" or "low" or null`

2546 2546 

2547 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2547 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2548 2548 

2549 - `"high"`2549 - `"high"`

2550 2550 


3604 3604 

3605 - `input_fidelity: optional "high" or "low" or null`3605 - `input_fidelity: optional "high" or "low" or null`

3606 3606 

3607 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.3607 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

3608 3608 

3609 - `"high"`3609 - `"high"`

3610 3610 


5390 5390 

5391 The voice used for speech generated by the Live model.5391 The voice used for speech generated by the Live model.

5392 5392 

5393 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`5393 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

5394 5394 

5395 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5395 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5396 5396 

5397 - `string`5397 - `string`

5398 5398 

5399 - `"alloy" or "ash" or "ballad" or 19 more`5399 - `"alloy" or "ash" or "ballad" or 28 more`

5400 5400 

5401 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5401 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5402 5402 


5410 5410 

5411 - `"bossa"`5411 - `"bossa"`

5412 5412 

5413 - `"brise"`

5414 

5413 - `"cedar"`5415 - `"cedar"`

5414 5416 

5415 - `"cinder"`5417 - `"cinder"`


5420 5422 

5421 - `"echo"`5423 - `"echo"`

5422 5424 

5425 - `"flitz"`

5426 

5423 - `"gleam"`5427 - `"gleam"`

5424 5428 

5429 - `"harema"`

5430 

5431 - `"juni"`

5432 

5425 - `"marin"`5433 - `"marin"`

5426 5434 

5427 - `"meridian"`5435 - `"meridian"`

5428 5436 

5437 - `"nira"`

5438 

5439 - `"noeul"`

5440 

5441 - `"nuri"`

5442 

5429 - `"quartz"`5443 - `"quartz"`

5430 5444 

5431 - `"ripple"`5445 - `"ripple"`


5434 5448 

5435 - `"shimmer"`5449 - `"shimmer"`

5436 5450 

5451 - `"shitan"`

5452 

5453 - `"sillage"`

5454 

5437 - `"stone"`5455 - `"stone"`

5438 5456 

5439 - `"tempo"`5457 - `"tempo"`


5956 5974 

5957 The voice used for speech generated by the Live model.5975 The voice used for speech generated by the Live model.

5958 5976 

5959 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`5977 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

5960 5978 

5961 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5979 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5962 5980 

5963 - `string`5981 - `string`

5964 5982 

5965 - `"alloy" or "ash" or "ballad" or 19 more`5983 - `"alloy" or "ash" or "ballad" or 28 more`

5966 5984 

5967 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5985 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5968 5986 


5976 5994 

5977 - `"bossa"`5995 - `"bossa"`

5978 5996 

5997 - `"brise"`

5998 

5979 - `"cedar"`5999 - `"cedar"`

5980 6000 

5981 - `"cinder"`6001 - `"cinder"`


5986 6006 

5987 - `"echo"`6007 - `"echo"`

5988 6008 

6009 - `"flitz"`

6010 

5989 - `"gleam"`6011 - `"gleam"`

5990 6012 

6013 - `"harema"`

6014 

6015 - `"juni"`

6016 

5991 - `"marin"`6017 - `"marin"`

5992 6018 

5993 - `"meridian"`6019 - `"meridian"`

5994 6020 

6021 - `"nira"`

6022 

6023 - `"noeul"`

6024 

6025 - `"nuri"`

6026 

5995 - `"quartz"`6027 - `"quartz"`

5996 6028 

5997 - `"ripple"`6029 - `"ripple"`


6000 6032 

6001 - `"shimmer"`6033 - `"shimmer"`

6002 6034 

6035 - `"shitan"`

6036 

6037 - `"sillage"`

6038 

6003 - `"stone"`6039 - `"stone"`

6004 6040 

6005 - `"tempo"`6041 - `"tempo"`


7060 7096 

7061 The voice used for speech generated by the Live model.7097 The voice used for speech generated by the Live model.

7062 7098 

7063 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`7099 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

7064 7100 

7065 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.7101 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

7066 7102 

7067 - `string`7103 - `string`

7068 7104 

7069 - `"alloy" or "ash" or "ballad" or 19 more`7105 - `"alloy" or "ash" or "ballad" or 28 more`

7070 7106 

7071 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.7107 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

7072 7108 


7080 7116 

7081 - `"bossa"`7117 - `"bossa"`

7082 7118 

7119 - `"brise"`

7120 

7083 - `"cedar"`7121 - `"cedar"`

7084 7122 

7085 - `"cinder"`7123 - `"cinder"`


7090 7128 

7091 - `"echo"`7129 - `"echo"`

7092 7130 

7131 - `"flitz"`

7132 

7093 - `"gleam"`7133 - `"gleam"`

7094 7134 

7135 - `"harema"`

7136 

7137 - `"juni"`

7138 

7095 - `"marin"`7139 - `"marin"`

7096 7140 

7097 - `"meridian"`7141 - `"meridian"`

7098 7142 

7143 - `"nira"`

7144 

7145 - `"noeul"`

7146 

7147 - `"nuri"`

7148 

7099 - `"quartz"`7149 - `"quartz"`

7100 7150 

7101 - `"ripple"`7151 - `"ripple"`


7104 7154 

7105 - `"shimmer"`7155 - `"shimmer"`

7106 7156 

7157 - `"shitan"`

7158 

7159 - `"sillage"`

7160 

7107 - `"stone"`7161 - `"stone"`

7108 7162 

7109 - `"tempo"`7163 - `"tempo"`

Details

156 156 

157 The voice used for speech generated by the Live model.157 The voice used for speech generated by the Live model.

158 158 

159 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`159 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

160 160 

161 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.161 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

162 162 

163 - `string`163 - `string`

164 164 

165 - `"alloy" or "ash" or "ballad" or 19 more`165 - `"alloy" or "ash" or "ballad" or 28 more`

166 166 

167 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.167 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

168 168 


176 176 

177 - `"bossa"`177 - `"bossa"`

178 178 

179 - `"brise"`

180 

179 - `"cedar"`181 - `"cedar"`

180 182 

181 - `"cinder"`183 - `"cinder"`


186 188 

187 - `"echo"`189 - `"echo"`

188 190 

191 - `"flitz"`

192 

189 - `"gleam"`193 - `"gleam"`

190 194 

195 - `"harema"`

196 

197 - `"juni"`

198 

191 - `"marin"`199 - `"marin"`

192 200 

193 - `"meridian"`201 - `"meridian"`

194 202 

203 - `"nira"`

204 

205 - `"noeul"`

206 

207 - `"nuri"`

208 

195 - `"quartz"`209 - `"quartz"`

196 210 

197 - `"ripple"`211 - `"ripple"`


200 214 

201 - `"shimmer"`215 - `"shimmer"`

202 216 

217 - `"shitan"`

218 

219 - `"sillage"`

220 

203 - `"stone"`221 - `"stone"`

204 222 

205 - `"tempo"`223 - `"tempo"`


2814 2832 

2815 - `input_fidelity: optional "high" or "low" or null`2833 - `input_fidelity: optional "high" or "low" or null`

2816 2834 

2817 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2835 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2818 2836 

2819 - `"high"`2837 - `"high"`

2820 2838 


3874 3892 

3875 - `input_fidelity: optional "high" or "low" or null`3893 - `input_fidelity: optional "high" or "low" or null`

3876 3894 

3877 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.3895 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

3878 3896 

3879 - `"high"`3897 - `"high"`

3880 3898 


5660 5678 

5661 The voice used for speech generated by the Live model.5679 The voice used for speech generated by the Live model.

5662 5680 

5663 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`5681 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

5664 5682 

5665 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5683 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5666 5684 

5667 - `string`5685 - `string`

5668 5686 

5669 - `"alloy" or "ash" or "ballad" or 19 more`5687 - `"alloy" or "ash" or "ballad" or 28 more`

5670 5688 

5671 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5689 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5672 5690 


5680 5698 

5681 - `"bossa"`5699 - `"bossa"`

5682 5700 

5701 - `"brise"`

5702 

5683 - `"cedar"`5703 - `"cedar"`

5684 5704 

5685 - `"cinder"`5705 - `"cinder"`


5690 5710 

5691 - `"echo"`5711 - `"echo"`

5692 5712 

5713 - `"flitz"`

5714 

5693 - `"gleam"`5715 - `"gleam"`

5694 5716 

5717 - `"harema"`

5718 

5719 - `"juni"`

5720 

5695 - `"marin"`5721 - `"marin"`

5696 5722 

5697 - `"meridian"`5723 - `"meridian"`

5698 5724 

5725 - `"nira"`

5726 

5727 - `"noeul"`

5728 

5729 - `"nuri"`

5730 

5699 - `"quartz"`5731 - `"quartz"`

5700 5732 

5701 - `"ripple"`5733 - `"ripple"`


5704 5736 

5705 - `"shimmer"`5737 - `"shimmer"`

5706 5738 

5739 - `"shitan"`

5740 

5741 - `"sillage"`

5742 

5707 - `"stone"`5743 - `"stone"`

5708 5744 

5709 - `"tempo"`5745 - `"tempo"`


6226 6262 

6227 The voice used for speech generated by the Live model.6263 The voice used for speech generated by the Live model.

6228 6264 

6229 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`6265 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

6230 6266 

6231 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.6267 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

6232 6268 

6233 - `string`6269 - `string`

6234 6270 

6235 - `"alloy" or "ash" or "ballad" or 19 more`6271 - `"alloy" or "ash" or "ballad" or 28 more`

6236 6272 

6237 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.6273 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

6238 6274 


6246 6282 

6247 - `"bossa"`6283 - `"bossa"`

6248 6284 

6285 - `"brise"`

6286 

6249 - `"cedar"`6287 - `"cedar"`

6250 6288 

6251 - `"cinder"`6289 - `"cinder"`


6256 6294 

6257 - `"echo"`6295 - `"echo"`

6258 6296 

6297 - `"flitz"`

6298 

6259 - `"gleam"`6299 - `"gleam"`

6260 6300 

6301 - `"harema"`

6302 

6303 - `"juni"`

6304 

6261 - `"marin"`6305 - `"marin"`

6262 6306 

6263 - `"meridian"`6307 - `"meridian"`

6264 6308 

6309 - `"nira"`

6310 

6311 - `"noeul"`

6312 

6313 - `"nuri"`

6314 

6265 - `"quartz"`6315 - `"quartz"`

6266 6316 

6267 - `"ripple"`6317 - `"ripple"`


6270 6320 

6271 - `"shimmer"`6321 - `"shimmer"`

6272 6322 

6323 - `"shitan"`

6324 

6325 - `"sillage"`

6326 

6273 - `"stone"`6327 - `"stone"`

6274 6328 

6275 - `"tempo"`6329 - `"tempo"`


7330 7384 

7331 The voice used for speech generated by the Live model.7385 The voice used for speech generated by the Live model.

7332 7386 

7333 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`7387 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

7334 7388 

7335 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.7389 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

7336 7390 

7337 - `string`7391 - `string`

7338 7392 

7339 - `"alloy" or "ash" or "ballad" or 19 more`7393 - `"alloy" or "ash" or "ballad" or 28 more`

7340 7394 

7341 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.7395 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

7342 7396 


7350 7404 

7351 - `"bossa"`7405 - `"bossa"`

7352 7406 

7407 - `"brise"`

7408 

7353 - `"cedar"`7409 - `"cedar"`

7354 7410 

7355 - `"cinder"`7411 - `"cinder"`


7360 7416 

7361 - `"echo"`7417 - `"echo"`

7362 7418 

7419 - `"flitz"`

7420 

7363 - `"gleam"`7421 - `"gleam"`

7364 7422 

7423 - `"harema"`

7424 

7425 - `"juni"`

7426 

7365 - `"marin"`7427 - `"marin"`

7366 7428 

7367 - `"meridian"`7429 - `"meridian"`

7368 7430 

7431 - `"nira"`

7432 

7433 - `"noeul"`

7434 

7435 - `"nuri"`

7436 

7369 - `"quartz"`7437 - `"quartz"`

7370 7438 

7371 - `"ripple"`7439 - `"ripple"`


7374 7442 

7375 - `"shimmer"`7443 - `"shimmer"`

7376 7444 

7445 - `"shitan"`

7446 

7447 - `"sillage"`

7448 

7377 - `"stone"`7449 - `"stone"`

7378 7450 

7379 - `"tempo"`7451 - `"tempo"`

Details

2233 2233 

2234 - `input_fidelity: optional "high" or "low" or null`2234 - `input_fidelity: optional "high" or "low" or null`

2235 2235 

2236 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2236 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2237 2237 

2238 - `"high"`2238 - `"high"`

2239 2239 


3293 3293 

3294 - `input_fidelity: optional "high" or "low" or null`3294 - `input_fidelity: optional "high" or "low" or null`

3295 3295 

3296 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.3296 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

3297 3297 

3298 - `"high"`3298 - `"high"`

3299 3299 


5079 5079 

5080 The voice used for speech generated by the Live model.5080 The voice used for speech generated by the Live model.

5081 5081 

5082 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`5082 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

5083 5083 

5084 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5084 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5085 5085 

5086 - `string`5086 - `string`

5087 5087 

5088 - `"alloy" or "ash" or "ballad" or 19 more`5088 - `"alloy" or "ash" or "ballad" or 28 more`

5089 5089 

5090 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5090 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5091 5091 


5099 5099 

5100 - `"bossa"`5100 - `"bossa"`

5101 5101 

5102 - `"brise"`

5103 

5102 - `"cedar"`5104 - `"cedar"`

5103 5105 

5104 - `"cinder"`5106 - `"cinder"`


5109 5111 

5110 - `"echo"`5112 - `"echo"`

5111 5113 

5114 - `"flitz"`

5115 

5112 - `"gleam"`5116 - `"gleam"`

5113 5117 

5118 - `"harema"`

5119 

5120 - `"juni"`

5121 

5114 - `"marin"`5122 - `"marin"`

5115 5123 

5116 - `"meridian"`5124 - `"meridian"`

5117 5125 

5126 - `"nira"`

5127 

5128 - `"noeul"`

5129 

5130 - `"nuri"`

5131 

5118 - `"quartz"`5132 - `"quartz"`

5119 5133 

5120 - `"ripple"`5134 - `"ripple"`


5123 5137 

5124 - `"shimmer"`5138 - `"shimmer"`

5125 5139 

5140 - `"shitan"`

5141 

5142 - `"sillage"`

5143 

5126 - `"stone"`5144 - `"stone"`

5127 5145 

5128 - `"tempo"`5146 - `"tempo"`


5645 5663 

5646 The voice used for speech generated by the Live model.5664 The voice used for speech generated by the Live model.

5647 5665 

5648 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`5666 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

5649 5667 

5650 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5668 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5651 5669 

5652 - `string`5670 - `string`

5653 5671 

5654 - `"alloy" or "ash" or "ballad" or 19 more`5672 - `"alloy" or "ash" or "ballad" or 28 more`

5655 5673 

5656 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.5674 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

5657 5675 


5665 5683 

5666 - `"bossa"`5684 - `"bossa"`

5667 5685 

5686 - `"brise"`

5687 

5668 - `"cedar"`5688 - `"cedar"`

5669 5689 

5670 - `"cinder"`5690 - `"cinder"`


5675 5695 

5676 - `"echo"`5696 - `"echo"`

5677 5697 

5698 - `"flitz"`

5699 

5678 - `"gleam"`5700 - `"gleam"`

5679 5701 

5702 - `"harema"`

5703 

5704 - `"juni"`

5705 

5680 - `"marin"`5706 - `"marin"`

5681 5707 

5682 - `"meridian"`5708 - `"meridian"`

5683 5709 

5710 - `"nira"`

5711 

5712 - `"noeul"`

5713 

5714 - `"nuri"`

5715 

5684 - `"quartz"`5716 - `"quartz"`

5685 5717 

5686 - `"ripple"`5718 - `"ripple"`


5689 5721 

5690 - `"shimmer"`5722 - `"shimmer"`

5691 5723 

5724 - `"shitan"`

5725 

5726 - `"sillage"`

5727 

5692 - `"stone"`5728 - `"stone"`

5693 5729 

5694 - `"tempo"`5730 - `"tempo"`


6749 6785 

6750 The voice used for speech generated by the Live model.6786 The voice used for speech generated by the Live model.

6751 6787 

6752 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`6788 - `voice: optional string or "alloy" or "ash" or "ballad" or 28 more or CustomVoice`

6753 6789 

6754 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.6790 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

6755 6791 

6756 - `string`6792 - `string`

6757 6793 

6758 - `"alloy" or "ash" or "ballad" or 19 more`6794 - `"alloy" or "ash" or "ballad" or 28 more`

6759 6795 

6760 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.6796 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

6761 6797 


6769 6805 

6770 - `"bossa"`6806 - `"bossa"`

6771 6807 

6808 - `"brise"`

6809 

6772 - `"cedar"`6810 - `"cedar"`

6773 6811 

6774 - `"cinder"`6812 - `"cinder"`


6779 6817 

6780 - `"echo"`6818 - `"echo"`

6781 6819 

6820 - `"flitz"`

6821 

6782 - `"gleam"`6822 - `"gleam"`

6783 6823 

6824 - `"harema"`

6825 

6826 - `"juni"`

6827 

6784 - `"marin"`6828 - `"marin"`

6785 6829 

6786 - `"meridian"`6830 - `"meridian"`

6787 6831 

6832 - `"nira"`

6833 

6834 - `"noeul"`

6835 

6836 - `"nuri"`

6837 

6788 - `"quartz"`6838 - `"quartz"`

6789 6839 

6790 - `"ripple"`6840 - `"ripple"`


6793 6843 

6794 - `"shimmer"`6844 - `"shimmer"`

6795 6845 

6846 - `"shitan"`

6847 

6848 - `"sillage"`

6849 

6796 - `"stone"`6850 - `"stone"`

6797 6851 

6798 - `"tempo"`6852 - `"tempo"`

Details

1920 1920 

1921 - `input_fidelity: optional "high" or "low" or null`1921 - `input_fidelity: optional "high" or "low" or null`

1922 1922 

1923 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1923 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1924 1924 

1925 - `"high"`1925 - `"high"`

1926 1926 


2980 2980 

2981 - `input_fidelity: optional "high" or "low" or null`2981 - `input_fidelity: optional "high" or "low" or null`

2982 2982 

2983 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2983 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2984 2984 

2985 - `"high"`2985 - `"high"`

2986 2986 


5820 5820 

5821 - `input_fidelity: optional "high" or "low" or null`5821 - `input_fidelity: optional "high" or "low" or null`

5822 5822 

5823 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.5823 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

5824 5824 

5825 - `"high"`5825 - `"high"`

5826 5826 


6726 6726 

6727 - `input_fidelity: optional "high" or "low" or null`6727 - `input_fidelity: optional "high" or "low" or null`

6728 6728 

6729 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.6729 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

6730 6730 

6731 - `"high"`6731 - `"high"`

6732 6732 


8701 8701 

8702 - `input_fidelity: optional "high" or "low" or null`8702 - `input_fidelity: optional "high" or "low" or null`

8703 8703 

8704 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.8704 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

8705 8705 

8706 - `"high"`8706 - `"high"`

8707 8707 

Details

2011 2011 

2012 - `input_fidelity: optional "high" or "low" or null`2012 - `input_fidelity: optional "high" or "low" or null`

2013 2013 

2014 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2014 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2015 2015 

2016 - `"high"`2016 - `"high"`

2017 2017 


3071 3071 

3072 - `input_fidelity: optional "high" or "low" or null`3072 - `input_fidelity: optional "high" or "low" or null`

3073 3073 

3074 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.3074 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

3075 3075 

3076 - `"high"`3076 - `"high"`

3077 3077 


5778 5778 

5779 - `input_fidelity: optional "high" or "low" or null`5779 - `input_fidelity: optional "high" or "low" or null`

5780 5780 

5781 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.5781 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

5782 5782 

5783 - `"high"`5783 - `"high"`

5784 5784 


6834 6834 

6835 - `input_fidelity: optional "high" or "low" or null`6835 - `input_fidelity: optional "high" or "low" or null`

6836 6836 

6837 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.6837 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

6838 6838 

6839 - `"high"`6839 - `"high"`

6840 6840 

Details

1873 1873 

1874 - `input_fidelity: optional "high" or "low" or null`1874 - `input_fidelity: optional "high" or "low" or null`

1875 1875 

1876 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1876 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1877 1877 

1878 - `"high"`1878 - `"high"`

1879 1879 


2933 2933 

2934 - `input_fidelity: optional "high" or "low" or null`2934 - `input_fidelity: optional "high" or "low" or null`

2935 2935 

2936 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2936 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2937 2937 

2938 - `"high"`2938 - `"high"`

2939 2939 


5697 5697 

5698 - `input_fidelity: optional "high" or "low" or null`5698 - `input_fidelity: optional "high" or "low" or null`

5699 5699 

5700 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.5700 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

5701 5701 

5702 - `"high"`5702 - `"high"`

5703 5703 


8030 8030 

8031 - `input_fidelity: optional "high" or "low" or null`8031 - `input_fidelity: optional "high" or "low" or null`

8032 8032 

8033 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.8033 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

8034 8034 

8035 - `"high"`8035 - `"high"`

8036 8036 


9090 9090 

9091 - `input_fidelity: optional "high" or "low" or null`9091 - `input_fidelity: optional "high" or "low" or null`

9092 9092 

9093 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.9093 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

9094 9094 

9095 - `"high"`9095 - `"high"`

9096 9096 


11930 11930 

11931 - `input_fidelity: optional "high" or "low" or null`11931 - `input_fidelity: optional "high" or "low" or null`

11932 11932 

11933 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.11933 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

11934 11934 

11935 - `"high"`11935 - `"high"`

11936 11936 


12836 12836 

12837 - `input_fidelity: optional "high" or "low" or null`12837 - `input_fidelity: optional "high" or "low" or null`

12838 12838 

12839 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.12839 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

12840 12840 

12841 - `"high"`12841 - `"high"`

12842 12842 


14811 14811 

14812 - `input_fidelity: optional "high" or "low" or null`14812 - `input_fidelity: optional "high" or "low" or null`

14813 14813 

14814 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.14814 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

14815 14815 

14816 - `"high"`14816 - `"high"`

14817 14817 

Details

1964 1964 

1965 - `input_fidelity: optional "high" or "low" or null`1965 - `input_fidelity: optional "high" or "low" or null`

1966 1966 

1967 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1967 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1968 1968 

1969 - `"high"`1969 - `"high"`

1970 1970 


3024 3024 

3025 - `input_fidelity: optional "high" or "low" or null`3025 - `input_fidelity: optional "high" or "low" or null`

3026 3026 

3027 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.3027 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

3028 3028 

3029 - `"high"`3029 - `"high"`

3030 3030 


5864 5864 

5865 - `input_fidelity: optional "high" or "low" or null`5865 - `input_fidelity: optional "high" or "low" or null`

5866 5866 

5867 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.5867 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

5868 5868 

5869 - `"high"`5869 - `"high"`

5870 5870 


6770 6770 

6771 - `input_fidelity: optional "high" or "low" or null`6771 - `input_fidelity: optional "high" or "low" or null`

6772 6772 

6773 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.6773 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

6774 6774 

6775 - `"high"`6775 - `"high"`

6776 6776 


8745 8745 

8746 - `input_fidelity: optional "high" or "low" or null`8746 - `input_fidelity: optional "high" or "low" or null`

8747 8747 

8748 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.8748 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

8749 8749 

8750 - `"high"`8750 - `"high"`

8751 8751 

Details

1724 1724 

1725 - `input_fidelity: optional "high" or "low" or null`1725 - `input_fidelity: optional "high" or "low" or null`

1726 1726 

1727 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1727 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1728 1728 

1729 - `"high"`1729 - `"high"`

1730 1730 


2780 2780 

2781 - `input_fidelity: optional "high" or "low" or null`2781 - `input_fidelity: optional "high" or "low" or null`

2782 2782 

2783 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2783 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2784 2784 

2785 - `"high"`2785 - `"high"`

2786 2786 

Details

1802 1802 

1803 - `input_fidelity: optional "high" or "low" or null`1803 - `input_fidelity: optional "high" or "low" or null`

1804 1804 

1805 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.1805 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

1806 1806 

1807 - `"high"`1807 - `"high"`

1808 1808 


2862 2862 

2863 - `input_fidelity: optional "high" or "low" or null`2863 - `input_fidelity: optional "high" or "low" or null`

2864 2864 

2865 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.2865 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

2866 2866 

2867 - `"high"`2867 - `"high"`

2868 2868 


5193 5193 

5194 - `input_fidelity: optional "high" or "low" or null`5194 - `input_fidelity: optional "high" or "low" or null`

5195 5195 

5196 Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.5196 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.

5197 5197 

5198 - `"high"`5198 - `"high"`

5199 5199