IntegrationsOpenaiActions
Create OpenAI response
Create a non-streaming OpenAI Responses API completion from text input.
responses.create · OpenAI · v1
Details
Scopes
None
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
model | string | Yes | minLength 1; maxLength 200 |
input | string | Yes | minLength 1; maxLength 32768 |
instructions | string | No | minLength 1; maxLength 16384 |
max_output_tokens | integer | No | minimum 1; maximum 8192 |
temperature | number | No | minimum 0; maximum 2 |
background | boolean | No | — |
store | boolean | No | — |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
id | string | Yes | minLength 1; maxLength 200 |
status | string | Yes | minLength 1; maxLength 64 |
output_text | string | Yes | maxLength 100000 |
refused | boolean | Yes | — |
refusal | string | No | maxLength 2000 |
incomplete_reason | string | No | maxLength 200 |
model | string | No | minLength 1; maxLength 200 |
usage | object | No | additionalProperties false |
usage.input_tokens | integer | No | — |
usage.output_tokens | integer | No | — |
usage.total_tokens | integer | No | — |
usage.prompt_tokens | integer | No | — |
error | object | No | additionalProperties false |
error.code | string | No | maxLength 200 |
error.message | string | No | maxLength 2000 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"input": {
"type": "string",
"minLength": 1,
"maxLength": 32768
},
"instructions": {
"type": "string",
"minLength": 1,
"maxLength": 16384
},
"max_output_tokens": {
"type": "integer",
"minimum": 1,
"maximum": 8192
},
"temperature": {
"type": "number",
"minimum": 0,
"maximum": 2
},
"background": {
"type": "boolean"
},
"store": {
"type": "boolean"
}
},
"required": [
"model",
"input"
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"status": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"output_text": {
"type": "string",
"maxLength": 100000
},
"refused": {
"type": "boolean"
},
"refusal": {
"type": "string",
"maxLength": 2000
},
"incomplete_reason": {
"type": "string",
"maxLength": 200
},
"model": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"usage": {
"type": "object",
"additionalProperties": false,
"properties": {
"input_tokens": {
"type": "integer"
},
"output_tokens": {
"type": "integer"
},
"total_tokens": {
"type": "integer"
},
"prompt_tokens": {
"type": "integer"
}
}
},
"error": {
"type": "object",
"additionalProperties": false,
"properties": {
"code": {
"type": "string",
"maxLength": 200
},
"message": {
"type": "string",
"maxLength": 2000
}
}
}
},
"required": [
"id",
"status",
"output_text",
"refused"
]
}