---
updatedAt: 2026-09-02T17:35:26.000Z
agentTools:
  projectIndex: https://docs.go.v7labs.com/llms.txt
---

# Run a stateless workspace-scoped LLM chat request

Uses the workspace's configured LLM integrations. Provide a concrete model to pin the request, or omit it to use auto selection. For streaming, provide request_id, subscribe to llm_chat:{workspace_id}:{request_id} before posting, and set stream=true.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Common.APIErrorDetails": {
        "description": "Additional structured error context. Shape varies by error code.\n\n- For conflict errors: contains a `conflicts` array with conflicting resources\n- For other errors: may contain arbitrary error-specific context",
        "nullable": true,
        "oneOf": [
          {
            "$ref": "#/components/schemas/Common.ConflictErrorDetails"
          },
          {
            "additionalProperties": true,
            "description": "Generic error details for non-conflict errors",
            "type": "object"
          }
        ],
        "title": "Common.APIErrorDetails"
      },
      "Common.ConflictErrorDetails": {
        "additionalProperties": false,
        "description": "Details for conflict errors",
        "properties": {
          "conflicts": {
            "description": "List of conflicting resources",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "conflicts"
        ],
        "title": "Common.ConflictErrorDetails",
        "type": "object"
      },
      "LLM.Usage": {
        "additionalProperties": false,
        "properties": {
          "cache_creation_input_tokens": {
            "type": "integer"
          },
          "cache_read_input_tokens": {
            "type": "integer"
          },
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "thinking_tokens": {
            "type": "integer"
          }
        },
        "required": [
          "input_tokens",
          "cache_creation_input_tokens",
          "cache_read_input_tokens",
          "output_tokens",
          "thinking_tokens"
        ],
        "title": "LLM.Usage",
        "type": "object"
      },
      "LLM.ChatRequest": {
        "additionalProperties": false,
        "properties": {
          "auto_mode": {
            "$ref": "#/components/schemas/LLM.AutoMode"
          },
          "integration": {
            "$ref": "#/components/schemas/LLM.IntegrationName"
          },
          "json_schema": {
            "$ref": "#/components/schemas/LLM.NullableJsonSchemaRequest"
          },
          "max_tokens": {
            "minimum": 1,
            "nullable": true,
            "type": "integer"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/LLM.ChatMessage"
            },
            "type": "array"
          },
          "model": {
            "$ref": "#/components/schemas/LLM.NullableModelName"
          },
          "reasoning_effort": {
            "$ref": "#/components/schemas/LLM.ThinkingEffort"
          },
          "request_id": {
            "$ref": "#/components/schemas/Common.NullableUUID"
          },
          "response_format": {
            "$ref": "#/components/schemas/LLM.ResponseFormat"
          },
          "stream": {
            "default": false,
            "type": "boolean"
          },
          "temperature": {
            "nullable": true,
            "type": "number"
          },
          "top_k": {
            "minimum": 1,
            "nullable": true,
            "type": "integer"
          },
          "top_p": {
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "messages"
        ],
        "title": "LLM.ChatRequest",
        "type": "object"
      },
      "Common.NullableUUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "nullable": true,
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.NullableUUID",
        "type": "string"
      },
      "LLM.NullableModelName": {
        "enum": [
          "claude_4_1_opus",
          "claude_4_5_haiku",
          "claude_4_5_opus",
          "claude_4_5_sonnet",
          "claude_4_6_opus",
          "claude_4_6_sonnet",
          "claude_4_7_opus",
          "claude_4_8_opus",
          "claude_4_sonnet",
          "claude_5_5_haiku",
          "claude_5_5_opus",
          "claude_5_5_sonnet",
          "claude_5_opus",
          "claude_5_sonnet",
          "deepseek_v3_2",
          "deepseek_v4_flash",
          "gemini_2_5_flash",
          "gemini_2_5_flash_image",
          "gemini_2_5_flash_lite",
          "gemini_2_5_pro",
          "gemini_3_1_flash_image",
          "gemini_3_1_flash_lite",
          "gemini_3_1_pro",
          "gemini_3_5_flash",
          "gemini_3_5_flash_lite",
          "gemini_3_6_flash",
          "gemini_3_7_flash",
          "gemini_3_8_flash",
          "gemini_3_flash",
          "gemini_3_pro_image",
          "gemini_4_argon",
          "gemini_4_carbon",
          "glm_5_2",
          "gpt_3_5",
          "gpt_4",
          "gpt_4_1",
          "gpt_4_1_mini",
          "gpt_4_1_nano",
          "gpt_4o",
          "gpt_4o_mini",
          "gpt_5",
          "gpt_5_1",
          "gpt_5_2",
          "gpt_5_4",
          "gpt_5_4_mini",
          "gpt_5_5",
          "gpt_5_5_pro",
          "gpt_5_6_luna",
          "gpt_5_6_sol",
          "gpt_5_6_terra",
          "gpt_5_mini",
          "gpt_5_nano",
          "gpt_6_1_sol",
          "gpt_6_1_terra",
          "gpt_6_astra",
          "gpt_6_luna",
          "gpt_6_sol",
          "kimi_k3",
          "o3",
          "o3_deep_research",
          "o3_mini",
          "o4_mini",
          "o4_mini_deep_research",
          "qwen3_235b",
          "qwen3_next_80b_thinking",
          "qwen_3_7_plus"
        ],
        "nullable": true,
        "title": "LLM.NullableModelName",
        "type": "string"
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string"
      },
      "LLM.ModelName": {
        "enum": [
          "claude_4_1_opus",
          "claude_4_5_haiku",
          "claude_4_5_opus",
          "claude_4_5_sonnet",
          "claude_4_6_opus",
          "claude_4_6_sonnet",
          "claude_4_7_opus",
          "claude_4_8_opus",
          "claude_4_sonnet",
          "claude_5_5_haiku",
          "claude_5_5_opus",
          "claude_5_5_sonnet",
          "claude_5_opus",
          "claude_5_sonnet",
          "deepseek_v3_2",
          "deepseek_v4_flash",
          "gemini_2_5_flash",
          "gemini_2_5_flash_image",
          "gemini_2_5_flash_lite",
          "gemini_2_5_pro",
          "gemini_3_1_flash_image",
          "gemini_3_1_flash_lite",
          "gemini_3_1_pro",
          "gemini_3_5_flash",
          "gemini_3_5_flash_lite",
          "gemini_3_6_flash",
          "gemini_3_7_flash",
          "gemini_3_8_flash",
          "gemini_3_flash",
          "gemini_3_pro_image",
          "gemini_4_argon",
          "gemini_4_carbon",
          "glm_5_2",
          "gpt_3_5",
          "gpt_4",
          "gpt_4_1",
          "gpt_4_1_mini",
          "gpt_4_1_nano",
          "gpt_4o",
          "gpt_4o_mini",
          "gpt_5",
          "gpt_5_1",
          "gpt_5_2",
          "gpt_5_4",
          "gpt_5_4_mini",
          "gpt_5_5",
          "gpt_5_5_pro",
          "gpt_5_6_luna",
          "gpt_5_6_sol",
          "gpt_5_6_terra",
          "gpt_5_mini",
          "gpt_5_nano",
          "gpt_6_1_sol",
          "gpt_6_1_terra",
          "gpt_6_astra",
          "gpt_6_luna",
          "gpt_6_sol",
          "kimi_k3",
          "o3",
          "o3_deep_research",
          "o3_mini",
          "o4_mini",
          "o4_mini_deep_research",
          "qwen3_235b",
          "qwen3_next_80b_thinking",
          "qwen_3_7_plus"
        ],
        "title": "LLM.ModelName",
        "type": "string"
      },
      "Common.AnyValue": {
        "description": "Any JSON value. Value provided as input can be any value. Value returned as response should not be checked.",
        "example": {},
        "nullable": true,
        "oneOf": [
          {
            "type": "string"
          },
          {
            "additionalProperties": true,
            "nullable": true,
            "type": "object"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "array"
          }
        ],
        "title": "Common.AnyValue"
      },
      "LLM.ThinkingEffort": {
        "description": "Max requires support from the selected model, including the model resolved by auto selection. Unsupported Max requests return bad_request.",
        "enum": [
          "disabled",
          "minimal",
          "low",
          "medium",
          "high",
          "xhigh",
          "max",
          "auto"
        ],
        "nullable": true,
        "title": "LLM.ThinkingEffort",
        "type": "string"
      },
      "LLM.AutoMode": {
        "enum": [
          "fast",
          "balanced",
          "smart"
        ],
        "nullable": true,
        "title": "LLM.AutoMode",
        "type": "string"
      },
      "LLM.NullableJsonSchemaRequest": {
        "additionalProperties": false,
        "nullable": true,
        "properties": {
          "name": {
            "type": "string"
          },
          "schema": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "required": [
          "name",
          "schema"
        ],
        "title": "LLM.NullableJsonSchemaRequest",
        "type": "object"
      },
      "LLM.ResponseFormat": {
        "enum": [
          "text",
          "json"
        ],
        "nullable": true,
        "title": "LLM.ResponseFormat",
        "type": "string"
      },
      "LLM.ChatMessage": {
        "additionalProperties": false,
        "properties": {
          "content": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/LLM.ChatMessageRole"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "title": "LLM.ChatMessage",
        "type": "object"
      },
      "LLM.StreamAcceptedResponse": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "$ref": "#/components/schemas/LLM.ModelName"
          },
          "request_id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "topic": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "topic",
          "model"
        ],
        "title": "LLM.StreamAcceptedResponse",
        "type": "object"
      },
      "LLM.ChatMessageRole": {
        "enum": [
          "system",
          "user",
          "assistant"
        ],
        "title": "LLM.ChatMessageRole",
        "type": "string"
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "example": "bad_request",
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/Common.APIErrorDetails"
          },
          "message": {
            "example": "Bad Request",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "Common.APIError",
        "type": "object"
      },
      "LLM.IntegrationName": {
        "enum": [
          "anthropic",
          "aws_bedrock",
          "azure_open_ai",
          "fireworks",
          "google_ai",
          "open_ai",
          "vertex_ai_claude",
          "vertex_ai_deepseek",
          "vertex_ai_qwen"
        ],
        "nullable": true,
        "title": "LLM.IntegrationName",
        "type": "string"
      },
      "LLM.ChatResponse": {
        "additionalProperties": false,
        "properties": {
          "content": {
            "nullable": true,
            "type": "string"
          },
          "json": {
            "$ref": "#/components/schemas/Common.AnyValue"
          },
          "model": {
            "$ref": "#/components/schemas/LLM.ModelName"
          },
          "request_id": {
            "$ref": "#/components/schemas/Common.NullableUUID"
          },
          "stop_reason": {
            "enum": [
              "complete",
              "max_tokens",
              "tool_calls",
              "unknown"
            ],
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/LLM.Usage"
          }
        },
        "required": [
          "model",
          "content",
          "json",
          "stop_reason",
          "usage"
        ],
        "title": "LLM.ChatResponse",
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "V7 Go API",
    "version": "0.1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/workspaces/{workspace_id}/llm/chat": {
      "post": {
        "callbacks": {},
        "description": "Uses the workspace's configured LLM integrations. Provide a concrete model to pin the request, or omit it to use auto selection. For streaming, provide request_id, subscribe to llm_chat:{workspace_id}:{request_id} before posting, and set stream=true.",
        "operationId": "llm-chat",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Common.UUID"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LLM.ChatRequest"
              }
            }
          },
          "description": "LLM.ChatRequest",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLM.ChatResponse"
                }
              }
            },
            "description": "LLM.ChatResponse"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLM.StreamAcceptedResponse"
                }
              }
            },
            "description": "LLM.StreamAcceptedResponse"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          }
        },
        "summary": "Run a stateless workspace-scoped LLM chat request",
        "tags": [
          "LLM"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "EU",
      "url": "https://go.v7labs.com",
      "variables": {}
    },
    {
      "description": "US",
      "url": "https://go.us.v7labs.com",
      "variables": {}
    },
    {
      "description": "UAE",
      "url": "https://go.uae.v7labs.com",
      "variables": {}
    }
  ]
}
```