スレッドの作成 (v1)
GET
https://api.openai.com/v1/threads
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/threads' \
--header 'Authorization: Bearer $OPENAI_API_KEY' \
--header 'OpenAI-Beta: assistants=v1' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "text-davinci-edit-001",
"input": "What day of the wek is it?",
"instruction": "Fix the spelling mistakes"
}'
Response Response Example
{
"id": "thread_abc123",
"object": "thread",
"created_at": 1699012949,
"metadata": {}
}
Request
Header Params
Content-Type
string
optional
Example:
application/json
Authorization
string
optional
Example:
Bearer $OPENAI_API_KEY
OpenAI-Beta
string
optional
Example:
assistants=v1
Body Params application/json
Responses
Modified at 2025-01-09 10:44:03