Skip to main content
The SambaNova Responses API (POST /v1/responses) is compatible with the OpenAI Responses API standard. Existing clients and SDKs built against the OpenAI Responses API can point to SambaNova’s endpoint with no code changes. This endpoint is designed for agentic, tool-capable, and coding-oriented integrations. The Responses API complements the existing Chat Completions API and does not replace it.

Supported models

  • gpt-oss-120b
  • MiniMax-M2.7
Additional models will be added in future releases.
To get better quality in tool calling requests with gpt-oss-120b, set the reasoning_effort to high.

How it works

The Responses API structures model output as typed output items – message, function_call, and reasoning – rather than a single assistant text field. Each request returns a response object containing one or more of these items, depending on the model’s behavior.

Key characteristics

Stateless: SambaNova does not store conversation state. To continue a multi-turn conversation, include the relevant prior output items in the input array of each subsequent request. Client-executed tools only: When a tool is needed, the model returns a function_call item. Your application executes the function and returns the result in a follow-up request. Built-in and server-executed tools are not supported. Structured streaming: Streaming responses use typed Server-Sent Events (SSE) with an eventitemcontentdelta event hierarchy. Structured output: The text.format field supports json_schema and json_object format types. Reasoning support: Reasoning-capable models expose reasoning content via a reasoning output item.

Usage

Simple generation

Streaming response

Set stream=True to receive typed SSE events as the response is generated.

Function calling

When tools are provided, the model may return a function_call item instead of a message. Your application is responsible for executing the function and returning the result. Step 1: Send a request with tools defined
Step 2: Execute the tool and return the result (uses client, response, and tools from Step 1)

Structured output

Use the text.format field to constrain the response to a JSON schema.

Multi-turn conversations

The Responses API is stateless. To maintain context across multiple turns, include all prior output items alongside the new user message in the input array of each subsequent request.

Limitations

  • The previous_response_id parameter is not supported. The SambaNova Responses API is stateless – manage conversation history by including prior output items in the input array.
  • Built-in and server-executed tools are not supported. Only client-executed function tools are available.