DeepFellow DOCS

Create A Model Response

Create a model response.

Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model's response.

POST
/v1/responses
AuthorizationBearer <token>

In: header

Header Parameters

OpenAI-Organization?Openai-Organization
OpenAI-Project?Openai-Project
modelmodel id

Model ID used to generate the response, like llama3.1:8b or qwen3:1.7b.DeepFellow supports a wide range of models with different capabilities, and performance characteristics.

input?Input

Text, image, or file inputs to the model, used to generate a response.

Default[]
instructions?Instructions

Previous messages inserted into the model's context.

When using along with previous_response_id, the instructions from a previous response will not be carried over to the next response. This makes it simple to swap out system (or developer) messages in new responses.

Default""
text?TextConfig | null

Configuration options for a text response from the model. Can be plain text, JSON or structured JSON.

prompt?Prompt | null

Reference to a prompt template and its variables.

tool_choice?Tool Choice

[Currently not supported]

How the model should select which tool (or tools) to use when generating a response. See the tools parameter below to see how to specify which tools the model can call.

Default"auto"
tools?Tools

An array of tools the model may call while generating a response. You can specify which tool to use by setting the tool_choice parameter.

We support the following categories of tools:

  • Built-in tools: Tools that are provided by DeepFellow that extend the model's capabilities, like web search or file search.
  • MCP Tools: Integrations with third-party systems via custom MCP servers or predefined connectors such as Google Drive and SharePoint.
  • Function calls (custom tools): Functions that are defined by you, enabling the model to call your own code with strongly typed arguments and outputs. You can also use custom tools to call your own code.
Default[]
temperature?Temperature

What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both.

Default1
Range0 <= value <= 2
top_p?Top P

An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.

We generally recommend altering this or temperature but not both.

Default1
Range0 <= value <= 1
reasoning?ReasoningConfig | null

Configuration options for reasoning models.

stream?Stream

[Currently not supported]

If set to true, the model response data will be streamed to the client as it is generated using server-sent events.

Defaultfalse
max_output_tokens?Max Output Tokens

An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens.

max_tool_calls?Max Tool Calls

The maximum number of total calls to built-in tools that can be processed in a response. This maximum number applies across all built-in tool calls, not per individual tool. Any further attempts to call a tool by the model will be ignored.

Default5
Range0 <= value <= 10
parallel_tool_calls?Parallel Tool Calls

Whether to allow the model to run tool calls in parallel.

Defaultfalse
include?Include

Specify additional output data to include in the model response.

Default[]
background?Background

Whether to run the model response in the background.

Defaultfalse
previous_response_id?Previous Response Id

[Currently not supported]

The unique ID of the previous response to the model. Use this to create multi-turn conversations. Cannot be used in conjunction with conversation.

Default""
top_logprobs?Top Logprobs

An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability.

metadata?Metadata

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.

Default{}

Empty Object

service_tier?Service TierDeprecated

[Not supported. Placeholder for compatibility]

Default"auto"
Value in"auto" | "default" | "flex" | "priority"
store?Store

[Currently not supported]

Whether to store the generated model response for later retrieval via API.

Defaulttrue
truncation?Truncation

[Currently not supported]

The truncation strategy to use for the model response.

  • auto: If the input to this Response exceeds the model's context window size, the model will truncate the response to fit the context window by dropping items from the beginning of the conversation.
  • disabled (default): If the input size will exceed the context window size for a model, the request will fail with a 400 error.
Default"disabled"
Value in"auto" | "disabled"
user?UserDeprecated

This field is being replaced by safety_identifier and prompt_cache_key. Use prompt_cache_key instead to maintain caching optimizations. A stable identifier for your end-users.

Default""

Response Body

curl -X POST "https://loading/v1/responses" \  -H "OpenAI-Organization: 5eb7cf5a86d9755df3a6c593" \  -H "OpenAI-Project: 5eb7cf5a86d9755df3a6c593" \  -H "Content-Type: application/json" \  -d '{    "input": "Say Hello World o/.",    "model": "llama3.1:8b"  }'
{
  "created_at": 1741476542,
  "id": "67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b",
  "metadata": {},
  "model": "qwen3:1.7b",
  "object": "response",
  "output": [
    {
      "content": [
        {
          "annotations": [],
          "text": "In a peaceful grove beneath a silver moon, a unicorn named Lumina discovered a hidden pool that reflected the stars. [...]",
          "type": "output_text"
        }
      ],
      "id": "67ccd2bf17f0819081ff3bb2cf6508e60bb6a6b452d3795b",
      "role": "assistant",
      "status": "completed",
      "type": "message"
    }
  ],
  "parallel_tool_calls": true,
  "reasoning": {},
  "status": "completed",
  "store": true,
  "temperature": 1,
  "text": {
    "format": {
      "type": "text"
    }
  },
  "tool_choice": "auto",
  "tools": [],
  "top_p": 1,
  "truncation": "disabled",
  "usage": {
    "input_tokens": 36,
    "input_tokens_details": {
      "cached_tokens": 0
    },
    "output_tokens": 87,
    "output_tokens_details": {
      "reasoning_tokens": 0
    },
    "total_tokens": 123
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.