Create a response
POST /v1/responses
Creates a response using the Bkper Open Responses 2026-04-24 profile. Bkper AI is stateless: send explicit prior input and output items to continue a conversation. Model IDs, reasoning levels, structured-output support, limits, and inline file types are published by GET /v1/models. Some request controls are model-dependent and return a 400 error when unavailable. Set stream to true to receive semantic server-sent events ending with data: [DONE].
Authorizations
Parameters
Header Parameters
Stable lowercase client or application identifier used for usage attribution. Invalid values are recorded as unknown.
Request Body required
object
A model ID returned by GET /v1/models.
object
The item type. Always reasoning.
Reasoning summary content associated with this item.
object
The content type. Always summary_text.
The reasoning summary text.
object
The item type. Always message.
The message role. Always user.
A text input to the model.
object
The type of the input item. Always input_text.
The text input to the model.
An image input to the model. Learn about image inputs
object
The type of the input item. Always input_image.
An HTTP(S) URL or supported base64 image data URL. Remote URL availability depends on the selected model.
A file input to the model.
object
The type of the input item. Always input_file.
The name of the file to be sent to the model.
The base64-encoded data of the file to be sent to the model.
The message content, as a single string.
object
The item type. Always message.
The message role. Always system.
A text input to the model.
object
The type of the input item. Always input_text.
The text input to the model.
The message content, as a single string.
object
The item type. Always message.
The message role. Always developer.
A text input to the model.
object
The type of the input item. Always input_text.
The text input to the model.
The message content, as a single string.
object
The item type. Always message.
The role of the message author. Always assistant.
object
The content type. Always output_text.
The text content.
object
The citation type. Always url_citation.
The index of the first character of the citation in the message.
The index of the last character of the citation in the message.
The URL of the cited resource.
The title of the cited resource.
The log probability of a token.
object
The top log probability of a token.
object
object
The content type. Always refusal.
The refusal text.
The message content, as a single string.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
object
The unique ID of the function tool call generated by the model.
The item type. Always function_call.
The name of the function to call.
The function arguments as a JSON string.
The output of a function tool call. Inline file content is accepted only when the selected model supports that file type in function outputs.
object
The unique ID of the function tool call generated by the model.
The type of the function tool call output. Always function_call_output.
A JSON string of the output of the function tool call.
An array of content outputs (text, image, file) for the function tool call.
A text input to the model.
object
The type of the input item. Always input_text.
The text input to the model.
An image input to the model. Learn about image inputs
object
The type of the input item. Always input_image.
An HTTP(S) URL or supported base64 image data URL. Remote URL availability depends on the selected model.
A file input to the model.
object
The type of the input item. Always input_file.
The name of the file to be sent to the model.
The base64-encoded data of the file to be sent to the model.
A list of tools that the model may call while generating the response.
Defines a function tool. See Open Responses function tools.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
Whether to stream response events as server-sent events.
Bkper AI is stateless. The only supported value is false.
Examples
Complete response
{ "model": "openai/gpt-5.6-luna", "input": "Reply with exactly: connected", "store": false}Streaming response
{ "model": "openai/gpt-5.6-luna", "input": "Explain Bkper in one sentence.", "stream": true, "store": false}Structured JSON response
{ "model": "openai/gpt-5.6-luna", "input": "Return the invoice number.", "text": { "format": { "type": "json_schema", "name": "invoice", "schema": { "type": "object", "properties": { "invoice_number": { "type": "string" } }, "required": [ "invoice_number" ], "additionalProperties": false }, "strict": true } }, "store": false}Responses
200
Success
The complete response object that was returned by the Responses API.
object
The unique ID of the response that was created.
The object type, which was always response.
The Unix timestamp (in seconds) for when the response was created.
The status that was set for the response.
The model that generated this response.
Always null because Bkper AI does not persist response state.
The output items that were generated by the model.
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
The tools that were available to the model during response generation.
Defines a function in your own code the model can choose to call. Learn more about function calling.
object
The type of the function tool. Always function.
The name of the function to call.
The effective strictness applied to this function tool.
Always disabled. Requests that exceed the context window fail explicitly.
Whether the model was allowed to call multiple tools in parallel.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
The nucleus sampling parameter that was used for this response.
The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
The sampling temperature that was used for this response.
object
The number of input tokens that were used to generate the response.
The number of output tokens that were generated by the model.
The total number of tokens that were used.
object
The number of input tokens that were served from cache.
The number of input tokens written to a provider prompt cache.
object
The number of output tokens that were attributed to reasoning.
Always false because Bkper AI is stateless.
Always false because background responses are not supported.
object
Example
{ "id": "resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41", "object": "response", "created_at": 1741476777, "status": "completed", "completed_at": 1741476778, "model": "gpt-4o-2024-08-06", "output": [ { "type": "message", "id": "msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41", "status": "completed", "role": "assistant", "content": [ { "type": "output_text", "text": "The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.", "annotations": [] } ] } ], "parallel_tool_calls": true, "reasoning": {}, "store": true, "background": false, "temperature": 1, "presence_penalty": 0, "frequency_penalty": 0, "text": { "format": { "type": "text" } }, "tool_choice": "auto", "tools": [], "top_p": 1, "truncation": "disabled", "usage": { "input_tokens": 328, "input_tokens_details": { "cached_tokens": 0 }, "output_tokens": 52, "output_tokens_details": { "reasoning_tokens": 0 }, "total_tokens": 380 }, "metadata": {}, "service_tier": "default", "top_logprobs": 0}- Response created event
- Response queued event
- Response in progress event
- Response completed event
- Response failed event
- Response incomplete event
- Response output item added event
- Response output item done event
- Response reasoning summary part added event
- Response reasoning summary part done event
- Response content part added event
- Response content part done event
- Response output text delta event
- Response output text done event
- Response refusal delta event
- Response refusal done event
- Response reasoning delta event
- Response reasoning done event
- Response reasoning summary delta event
- Response reasoning summary done event
- Response output text annotation added event
- Response function call arguments delta event
- Response function call arguments done event
- Error event
A streaming event that indicated the response was created.
object
The type of the event, always response.created.
The sequence number of the event that was emitted.
object
The unique ID of the response that was created.
The object type, which was always response.
The Unix timestamp (in seconds) for when the response was created.
The status that was set for the response.
The model that generated this response.
Always null because Bkper AI does not persist response state.
The output items that were generated by the model.
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
The tools that were available to the model during response generation.
Defines a function in your own code the model can choose to call. Learn more about function calling.
object
The type of the function tool. Always function.
The name of the function to call.
The effective strictness applied to this function tool.
Always disabled. Requests that exceed the context window fail explicitly.
Whether the model was allowed to call multiple tools in parallel.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
The nucleus sampling parameter that was used for this response.
The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
The sampling temperature that was used for this response.
object
The number of input tokens that were used to generate the response.
The number of output tokens that were generated by the model.
The total number of tokens that were used.
object
The number of input tokens that were served from cache.
The number of input tokens written to a provider prompt cache.
object
The number of output tokens that were attributed to reasoning.
Always false because Bkper AI is stateless.
Always false because background responses are not supported.
object
A streaming event that indicated the response was queued.
object
The type of the event, always response.queued.
The sequence number of the event that was emitted.
object
The unique ID of the response that was created.
The object type, which was always response.
The Unix timestamp (in seconds) for when the response was created.
The status that was set for the response.
The model that generated this response.
Always null because Bkper AI does not persist response state.
The output items that were generated by the model.
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
The tools that were available to the model during response generation.
Defines a function in your own code the model can choose to call. Learn more about function calling.
object
The type of the function tool. Always function.
The name of the function to call.
The effective strictness applied to this function tool.
Always disabled. Requests that exceed the context window fail explicitly.
Whether the model was allowed to call multiple tools in parallel.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
The nucleus sampling parameter that was used for this response.
The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
The sampling temperature that was used for this response.
object
The number of input tokens that were used to generate the response.
The number of output tokens that were generated by the model.
The total number of tokens that were used.
object
The number of input tokens that were served from cache.
The number of input tokens written to a provider prompt cache.
object
The number of output tokens that were attributed to reasoning.
Always false because Bkper AI is stateless.
Always false because background responses are not supported.
object
A streaming event that indicated the response was in progress.
object
The type of the event, always response.in_progress.
The sequence number of the event that was emitted.
object
The unique ID of the response that was created.
The object type, which was always response.
The Unix timestamp (in seconds) for when the response was created.
The status that was set for the response.
The model that generated this response.
Always null because Bkper AI does not persist response state.
The output items that were generated by the model.
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
The tools that were available to the model during response generation.
Defines a function in your own code the model can choose to call. Learn more about function calling.
object
The type of the function tool. Always function.
The name of the function to call.
The effective strictness applied to this function tool.
Always disabled. Requests that exceed the context window fail explicitly.
Whether the model was allowed to call multiple tools in parallel.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
The nucleus sampling parameter that was used for this response.
The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
The sampling temperature that was used for this response.
object
The number of input tokens that were used to generate the response.
The number of output tokens that were generated by the model.
The total number of tokens that were used.
object
The number of input tokens that were served from cache.
The number of input tokens written to a provider prompt cache.
object
The number of output tokens that were attributed to reasoning.
Always false because Bkper AI is stateless.
Always false because background responses are not supported.
object
A streaming event that indicated the response was completed.
object
The type of the event, always response.completed.
The sequence number of the event that was emitted.
object
The unique ID of the response that was created.
The object type, which was always response.
The Unix timestamp (in seconds) for when the response was created.
The status that was set for the response.
The model that generated this response.
Always null because Bkper AI does not persist response state.
The output items that were generated by the model.
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
The tools that were available to the model during response generation.
Defines a function in your own code the model can choose to call. Learn more about function calling.
object
The type of the function tool. Always function.
The name of the function to call.
The effective strictness applied to this function tool.
Always disabled. Requests that exceed the context window fail explicitly.
Whether the model was allowed to call multiple tools in parallel.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
The nucleus sampling parameter that was used for this response.
The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
The sampling temperature that was used for this response.
object
The number of input tokens that were used to generate the response.
The number of output tokens that were generated by the model.
The total number of tokens that were used.
object
The number of input tokens that were served from cache.
The number of input tokens written to a provider prompt cache.
object
The number of output tokens that were attributed to reasoning.
Always false because Bkper AI is stateless.
Always false because background responses are not supported.
object
A streaming event that indicated the response had failed.
object
The type of the event, always response.failed.
The sequence number of the event that was emitted.
object
The unique ID of the response that was created.
The object type, which was always response.
The Unix timestamp (in seconds) for when the response was created.
The status that was set for the response.
The model that generated this response.
Always null because Bkper AI does not persist response state.
The output items that were generated by the model.
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
The tools that were available to the model during response generation.
Defines a function in your own code the model can choose to call. Learn more about function calling.
object
The type of the function tool. Always function.
The name of the function to call.
The effective strictness applied to this function tool.
Always disabled. Requests that exceed the context window fail explicitly.
Whether the model was allowed to call multiple tools in parallel.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
The nucleus sampling parameter that was used for this response.
The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
The sampling temperature that was used for this response.
object
The number of input tokens that were used to generate the response.
The number of output tokens that were generated by the model.
The total number of tokens that were used.
object
The number of input tokens that were served from cache.
The number of input tokens written to a provider prompt cache.
object
The number of output tokens that were attributed to reasoning.
Always false because Bkper AI is stateless.
Always false because background responses are not supported.
object
A streaming event that indicated the response was incomplete.
object
The type of the event, always response.incomplete.
The sequence number of the event that was emitted.
object
The unique ID of the response that was created.
The object type, which was always response.
The Unix timestamp (in seconds) for when the response was created.
The status that was set for the response.
The model that generated this response.
Always null because Bkper AI does not persist response state.
The output items that were generated by the model.
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
The tools that were available to the model during response generation.
Defines a function in your own code the model can choose to call. Learn more about function calling.
object
The type of the function tool. Always function.
The name of the function to call.
The effective strictness applied to this function tool.
Always disabled. Requests that exceed the context window fail explicitly.
Whether the model was allowed to call multiple tools in parallel.
object
object
object
The type of response format being defined. Always json_schema.
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
The JSON Schema for the response. Bkper validates type, properties, required, additionalProperties, items, composition, enum, references, string constraints, numeric bounds, and array bounds before dispatch. With strict true, every object property must be required and additionalProperties must be false.
object
Whether to enforce exact schema adherence. The selected model must publish structured_output.strict as true.
The nucleus sampling parameter that was used for this response.
The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
The sampling temperature that was used for this response.
object
The number of input tokens that were used to generate the response.
The number of output tokens that were generated by the model.
The total number of tokens that were used.
object
The number of input tokens that were served from cache.
The number of input tokens written to a provider prompt cache.
object
The number of output tokens that were attributed to reasoning.
Always false because Bkper AI is stateless.
Always false because background responses are not supported.
object
A streaming event that indicated an output item was added to the response.
object
The type of the event, always response.output_item.added.
The sequence number of the event that was emitted.
The index of the output item that was added.
object
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
A streaming event that indicated an output item was completed.
object
The type of the event, always response.output_item.done.
The sequence number of the event that was emitted.
The index of the output item that was completed.
object
A message to or from the model.
object
The type of the message. Always set to message.
The unique ID of the message.
The response message role. Always assistant.
The content of the message
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
Labels an assistant message as intermediate commentary (commentary) or the final answer (final_answer). when sending follow-up requests, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
A function tool call that was generated by the model.
object
The type of the item. Always function_call.
The unique ID of the function call item.
The unique ID of the function tool call that was generated.
The name of the function that was called.
The arguments JSON string that was generated.
A reasoning item that was generated by the model.
object
The type of the item. Always reasoning.
The unique ID of the reasoning item.
Reasoning text from the model.
object
The type of the reasoning text. Always reasoning_text.
The reasoning text from the model.
Readable reasoning summary content.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
A streaming event that indicated a reasoning summary part was added.
object
The type of the event, always response.reasoning_summary_part.added.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the summary part that was added.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
A streaming event that indicated a reasoning summary part was completed.
object
The type of the event, always response.reasoning_summary_part.done.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the summary part that was completed.
A summary text from the model.
object
The type of the object. Always summary_text.
A summary of the reasoning output from the model so far.
A streaming event that indicated a content part was added.
object
The type of the event, always response.content_part.added.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the content part that was added.
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
A streaming event that indicated a content part was completed.
object
The type of the event, always response.content_part.done.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the content part that was completed.
A text output from the model.
object
The type of the output text. Always output_text.
The text output from the model.
The annotations of the text output.
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
The log probability of a token.
object
The top log probability of a token.
object
A refusal from the model.
object
The type of the refusal. Always refusal.
The refusal explanation from the model.
A streaming event that indicated output text was incrementally added.
object
The type of the event, always response.output_text.delta.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the content part that was updated.
The text delta that was appended.
The token log probabilities that were emitted with the delta, if any.
The log probability of a token.
object
The top log probability of a token.
object
An obfuscation string that was added to pad the event payload.
A streaming event that indicated output text was completed.
object
The type of the event, always response.output_text.done.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the content part that was completed.
The final text that was emitted.
The token log probabilities that were emitted with the final text, if any.
The log probability of a token.
object
The top log probability of a token.
object
A streaming event that indicated refusal text was incrementally added.
object
The type of the event, always response.refusal.delta.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the refusal content that was updated.
The refusal text delta that was appended.
A streaming event that indicated refusal text was completed.
object
The type of the event, always response.refusal.done.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the refusal content that was completed.
The final refusal text that was emitted.
A streaming event that indicated reasoning text was incrementally added.
object
The type of the event, always response.reasoning.delta.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the reasoning content that was updated.
The reasoning text delta that was appended.
An obfuscation string that was added to pad the event payload.
A streaming event that indicated reasoning text was completed.
object
The type of the event, always response.reasoning.done.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the reasoning content that was completed.
The final reasoning text that was emitted.
A streaming event that indicated a reasoning summary was incrementally added.
object
The type of the event, always response.reasoning_summary.delta.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the summary content that was updated.
The summary text delta that was appended.
An obfuscation string that was added to pad the event payload.
A streaming event that indicated a reasoning summary was completed.
object
The type of the event, always response.reasoning_summary.done.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the summary content that was completed.
The final summary text that was emitted.
A streaming event that indicated an output text annotation was added.
object
The type of the event, always response.output_text.annotation.added.
The sequence number of the event that was emitted.
The ID of the item that was updated.
The index of the output item that was updated.
The index of the output text content that was updated.
The index of the annotation that was added.
object
A citation for a web resource used to generate a model response.
object
The type of the URL citation. Always url_citation.
The URL of the web resource.
The index of the first character of the URL citation in the message.
The index of the last character of the URL citation in the message.
The title of the web resource.
A streaming event that indicated function call arguments were incrementally added.
object
The type of the event, always response.function_call_arguments.delta.
The sequence number of the event that was emitted.
The ID of the tool call item that was updated.
The index of the output item that was updated.
The arguments delta that was appended.
An obfuscation string that was added to pad the event payload.
A streaming event that indicated function call arguments were completed.
object
The type of the event, always response.function_call_arguments.done.
The sequence number of the event that was emitted.
The ID of the tool call item that was updated.
The index of the output item that was updated.
The final arguments string that was emitted.
A streaming event that indicated an error was emitted.
object
The type of the event, always error.
The sequence number of the event that was emitted.
object
The error type that was emitted.
The human-readable error message that was emitted.
The response headers that were emitted with the error, if any.
object
The header value that was emitted.
400
Invalid request or unsupported capability
object
object
Stable Bkper error code. New codes may be added over time.
401
Missing or invalid Bkper bearer token
object
object
Stable Bkper error code. New codes may be added over time.
402
Subscription payment is overdue
object
object
Stable Bkper error code. New codes may be added over time.
403
Bkper AI entitlement is unavailable
object
object
Stable Bkper error code. New codes may be added over time.
429
Monthly allowance exhausted or provider throttled
object
object
Stable Bkper error code. New codes may be added over time.
499
Client aborted the request
object
object
Stable Bkper error code. New codes may be added over time.
502
Provider or transport failure
object
object
Stable Bkper error code. New codes may be added over time.
default
Other provider or transport rejection
object
object
Stable Bkper error code. New codes may be added over time.