Criar execução (v1)
POST
https://api.openai.com/v1/threads/thread_abc123/runs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/threads/thread_abc123/runs' \
--header 'Authorization: Bearer $OPENAI_API_KEY' \
--header 'OpenAI-Beta: assistants=v1' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"id": "string",
"object": "string",
"created_at": 0,
"assistant_id": "string",
"thread_id": "string",
"status": "string",
"started_at": 0,
"expires_at": null,
"cancelled_at": null,
"failed_at": null,
"completed_at": 0,
"last_error": null,
"model": "string",
"instructions": null,
"incomplete_details": null,
"tools": [
{
"type": "string"
}
],
"file_ids": [
"string"
],
"metadata": {},
"usage": null,
"temperature": 0,
"top_p": 0,
"max_prompt_tokens": 0,
"max_completion_tokens": 0,
"truncation_strategy": {
"type": "string",
"last_messages": null
},
"response_format": "string",
"tool_choice": "string"
}
Request
Header Params
Authorization
string
optional
Example:
Bearer $OPENAI_API_KEY
Content-Type
string
optional
Example:
application/json
OpenAI-Beta
string
optional
Example:
assistants=v1
Body Params application/json
Responses
Modified at 2025-01-26 08:40:00