Create conversation
/v1/conversationsCreate a new conversation handle that can be passed to POST /v1/responses as conversation when the selected model supports conversation threading. This endpoint returns a conversation ID and echoes the supplied metadata.
Authentication
Authorization Bearer
API key as bearer token in Authorization header.
Request Body
modelstringModel ID you plan to use. Also accepted as metadata.model_id.
Example: "glm-5.1"
metadataobjectdefault:{}Custom metadata echoed by the response.
metadata.model_idstringModel ID to associate with the conversation.
metadata.session_namestringHuman-readable session name.
metadata.titlestringConversation title.
sourcestringdefault:epCaller identifier, such as ep for end-user playground.
Response
idstringConversation ID. Format: conv_<24-hex-chars>.
objectstringAlways conversation.
created_atintegerUnix timestamp.
main_conversation_idstringSame as id. Included for clients that distinguish main and branch conversations.
metadataobjectEcho of the resolved metadata.
metadata.model_idstringResolved model ID.
metadata.session_namestringResolved session name.
metadata.titlestringResolved conversation title, when provided.
sourcestringEcho of the request source.
Previous
Delete video
Next
List Asset Groups