Skip to main content
POST
/
api
/
v1
/
responses
/
Create Response
curl --request POST \
  --url https://api.cognee.ai/api/v1/responses/ \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "<string>"
}'
{
  "id": "<string>",
  "created": 123,
  "model": "<string>",
  "object": "response",
  "status": "completed",
  "toolCalls": [
    {
      "id": "<string>",
      "type": "function",
      "function": {
        "name": "<string>",
        "arguments": "<string>"
      },
      "output": {
        "status": "success",
        "data": {}
      }
    }
  ],
  "usage": {
    "prompt_tokens": 0,
    "completion_tokens": 0,
    "total_tokens": 0
  },
  "metadata": {}
}

Body

application/json

Request body for the new responses endpoint (OpenAI Responses API format)

input
string
required
model
enum<string>

Enum for supported model types

Available options:
cognee-v1
tools
ToolFunction · object[] | null
toolChoice
default:auto
user
string | null
temperature
number | null
default:1
maxTokens
integer | null

Response

Successful Response

Response body for the new responses endpoint

model
string
required
toolCalls
ResponseToolCall · object[]
required
id
string
created
integer
object
string
default:response
status
string
default:completed
usage
object | null

Token usage information

metadata
object
I