{
"errors": null,
"data": {
"outputs": [
{
"data": "<string>"
}
],
"session_id": "ses_abcDEF123"
}
}Executes the given code snippet and returns the output. Without a session_id, a new session is created to run the code. If you pass a valid session_id, the code runs in that session. This is useful for running multiple code snippets in the same environment, because dependencies and similar things are persisted between calls to the same session.
{
"errors": null,
"data": {
"outputs": [
{
"data": "<string>"
}
],
"session_id": "ses_abcDEF123"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.together.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Execute Request
Code snippet to execute.
"print('Hello, world!')"
Programming language for the code to execute. Currently only supports Python.
python Files to upload to the session. If present, files are uploaded before executing the given code.
Show child attributes
Identifier of the current session. Used to make follow-up calls. Returns an error if the session does not belong to the caller or has expired.
"ses_abcDEF123"
Was this page helpful?