OpenAI/createThreadAndRun

Online calls unavailable · details below

OpenAIOpenAI API

POST/threads/runs

Manage create Thread And Run.

Contract-preserving POST Endpoint for create Thread And Run in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.

All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.

Request

operationId
createThreadAndRun
Server
https://api.openai.com/v1
Authentication
ApiKeyAuth, AdminApiKeyAuth

Request parameters

No URL, query, or header parameters.

Request body

CreateThreadAndRunRequestrequired

Content-Type: application/json

Properties: assistant_idinstructionsmax_completion_tokensmax_prompt_tokensmetadatamodelparallel_tool_callsresponse_formatstreamtemperaturethreadtool_choicetool_resourcestoolstop_ptruncation_strategy

Responses

200

RunObjectapplication/json

Successful supplier response.

Properties: assistant_idcancelled_atcompleted_atcreated_atexpires_atfailed_atidincomplete_detailsinstructionslast_errormax_completion_tokensmax_prompt_tokensmetadatamodelobjectparallel_tool_callsrequired_actionresponse_formatstarted_atstatustemperaturethread_idtool_choicetoolstop_ptruncation_strategyusage

429

ErrorResponseapplication/json

Supplier response with HTTP status 429.

Properties: error

{
  "cancelled_at": 0,
  "completed_at": 0,
  "created_at": 0,
  "expires_at": 0,
  "failed_at": 0,
  "incomplete_details": {
    "reason": "max_completion_tokens"
  }
}