Create Thread and Run

POST https://api.openai.com/v1/threads/runs

Request Body

{"assistant_id"=>"asst_abc123", "thread"=>{"messages"=>[{"role"=>"user", "content"=>"Explain deep learning to a 5 year old."}]}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring
OpenAI-Betastring