curl --location --request POST 'https://api.uniapi.io/v1/responses' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {
"property1": "string",
"property2": "string"
},
"temperature": 1,
"top_p": 1,
"user": "user-1234",
"service_tier": "auto",
"previous_response_id": "string",
"model": "string",
"reasoning": {
"effort": "medium",
"summary": "auto",
"generate_summary": "auto"
},
"max_output_tokens": 0,
"instructions": "string",
"text": {
"format": {
"type": "text"
}
},
"tools": [
{
"type": "file_search",
"vector_store_ids": [
"string"
],
"max_num_results": 0,
"ranking_options": {
"ranker": "auto",
"score_threshold": 0
},
"filters": {
"type": "eq",
"key": "string",
"value": "string"
}
}
],
"tool_choice": "none",
"truncation": "disabled",
"input": "string",
"include": [
"file_search_call.results"
],
"parallel_tool_calls": true,
"store": true,
"stream": false
}'
{
"metadata": {
"property1": "string",
"property2": "string"
},
"temperature": 1,
"top_p": 1,
"user": "user-1234",
"service_tier": "auto",
"previous_response_id": "string",
"model": "string",
"reasoning": {
"effort": "medium",
"summary": "auto",
"generate_summary": "auto"
},
"max_output_tokens": 0,
"instructions": "string",
"text": {
"format": {
"type": "text"
}
},
"tools": [
{
"type": "file_search",
"vector_store_ids": [
"string"
],
"max_num_results": 0,
"ranking_options": {
"ranker": "auto",
"score_threshold": 0
},
"filters": {
"type": "eq",
"key": "string",
"value": "string"
}
}
],
"tool_choice": "none",
"truncation": "disabled",
"id": "string",
"object": "response",
"status": "completed",
"created_at": 0,
"error": {
"code": "server_error",
"message": "string"
},
"incomplete_details": {
"reason": "max_output_tokens"
},
"output": [
{
"id": "string",
"type": "message",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "string",
"annotations": [
{
"type": "file_citation",
"file_id": "string",
"index": 0
}
]
}
],
"status": "in_progress"
}
],
"output_text": "string",
"usage": {
"input_tokens": 0,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 0,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 0
},
"parallel_tool_calls": true
}