Skip to main content
Use the Responses API to generate text responses from AI models. The input array contains message objects with a role (user or assistant) and content field. The model processes the input and returns a response with the generated text.
The Responses API is best supported on the Enterprise plan. Use https://enterprise.blackbox.ai as the base URL for full model availability and production reliability. The API is also available on standard plans at https://api.blackbox.ai, where it is currently experimental.

Basic Request

Response Format

The response includes the generated text in the output array, along with token usage information.

Multi-turn Conversations

For conversations with multiple messages, include both user and assistant messages in the input array:

Request Parameters

string
required
The model identifier to use for generation. Example: openai/gpt-5.3-codexSee the full list of available models in the Models section.
array
required
Array of input messages. Each message object must contain:
  • type: Always "message"
  • role: Either "user", "assistant", or "system"
  • content: The message text content
integer
Maximum number of tokens to generate. Controls the length of the output.
number
Controls randomness in generation. Range: 0.0 to 2.0. Lower values produce more focused output; higher values produce more varied output. Default: 1.0
number
Controls diversity via nucleus sampling. Range: 0.0 to 1.0. Not recommended to use alongside temperature. Default: 1.0

Response Fields

string
Unique identifier for this response.
string
Always "response" for this endpoint.
string
The model used to generate the response.
array
Array containing the generated response. Each item has:
  • type: "message"
  • role: "assistant"
  • content: Array with type: "output_text" and text fields
object
Token usage statistics with input_tokens and output_tokens.

Next Steps

Streaming

Receive tokens as they are generated for real-time output

Tool Calling

Give the model access to external functions and APIs