AiOptions
AiOptions =
object
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6655
Properties
Section titled “Properties”extraHeaders?
Section titled “extraHeaders?”
optionalextraHeaders:object
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6668
gateway?
Section titled “gateway?”
optionalgateway:GatewayOptions
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6665
prefix?
Section titled “prefix?”
optionalprefix:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6667
queueRequest?
Section titled “queueRequest?”
optionalqueueRequest:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6660
Send requests as an asynchronous batch job, only works for supported models https://developers.cloudflare.com/workers-ai/features/batch-api
returnRawResponse?
Section titled “returnRawResponse?”
optionalreturnRawResponse:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6666
websocket?
Section titled “websocket?”
optionalwebsocket:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:6664
Establish websocket connections, only works for supported models