> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deepslate.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Create LLM Generation Strategy

> Creates a new LLM generation strategy within the specified organization.



## OpenAPI

````yaml POST /api/v1/vendors/{vendorId}/organizations/{organizationId}/llm-generation-strategies
openapi: 3.1.0
info:
  title: Deepslate
  description: OpenAPI specification of the public Deepslate API
  version: v1.0
servers:
  - url: https://app.deepslate.eu
    description: Generated server url
security: []
tags:
  - name: SIP Credentials Management
    description: API endpoints for managing SIP Credentials within an Organization
  - name: Assistant Management
    description: API endpoints for managing Assistants within an Organization
  - name: SIP Numbers Management
    description: API endpoints for managing SIP Numbers within an Organization
  - name: Agent Task Management
    description: API endpoints for retrieving Agent Tasks
  - name: Organization Management
    description: API endpoints for managing Organizations
  - name: Agent Management
    description: API endpoints for managing Agents within an Organization
  - name: LLM Generation Strategy Management
    description: >-
      API endpoints for managing LLM Generation Strategies within an
      Organization
paths:
  /api/v1/vendors/{vendorId}/organizations/{organizationId}/llm-generation-strategies:
    post:
      tags:
        - LLM Generation Strategy Management
      summary: Create LLM Generation Strategy
      description: Creates a new LLM generation strategy within the specified organization.
      operationId: createLlmGenerationStrategy
      parameters:
        - name: vendorId
          in: path
          description: ID of the Vendor (UUID)
          required: true
          schema:
            type: string
          example: a1b2c3d4-e5f6-7890-1234-567890abcdef
        - name: organizationId
          in: path
          description: ID of the Organization (UUID)
          required: true
          schema:
            type: string
          example: f0e9d8c7-b6a5-4321-fedc-ba9876543210
      requestBody:
        description: Strategy creation data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LlmGenerationStrategyCreate'
        required: true
      responses:
        '200':
          description: Strategy successfully created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LlmGenerationStrategyDetailsResponse'
        '400':
          description: Bad Request - Unknown or missing strategy type
        '401':
          description: Unauthorized
        '403':
          description: Forbidden - User does not have permission
        '404':
          description: Organization or Vendor not found
components:
  schemas:
    LlmGenerationStrategyCreate:
      type: object
      description: Request body for creating a new LLM Generation Strategy.
      properties:
        name:
          type: string
          description: Name of the strategy.
          example: My Opal Strategy
        type:
          type: string
          description: Type identifier of the strategy.
          example: phonebot-v2.1
        parameters:
          type: object
          description: >-
            Type-specific configuration parameters for the strategy. Structure
            depends on the strategy type.
          additionalProperties: true
          example:
            temperature: 0.2
            outputSampleRate: 44100
            voice:
              provider: elevenlabs
              voiceId: lcMyyd2HUfFzxdCaC4Ta
              modelId: eleven_multilingual_v2
              speed: 1
              stability: 0.5
              similarityBoost: 0.75
              style: 0
              useSpeakerBoost: false
            vad:
              confidenceThreshold: 0.5
              minVolume: 0
              startDuration: 0.3
              stopDuration: 0.7
              backbufferDuration: 1
      required:
        - name
        - type
        - parameters
    LlmGenerationStrategyDetailsResponse:
      type: object
      description: Standard API response wrapper
      properties:
        success:
          type: boolean
          description: Indicates if the request was successful
          example: true
        message:
          type: string
          description: Human-readable message
        data:
          $ref: '#/components/schemas/LlmGenerationStrategyDetails'
          description: Payload data object
        timestamp:
          type: string
          format: date-time
          description: Response timestamp in ISO-8601 format
          example: '2025-04-17T14:23:30Z'
        traceId:
          type: string
          description: Correlation or trace ID
      required:
        - success
        - timestamp
    LlmGenerationStrategyDetails:
      type: object
      description: Detailed view of an LLM Generation Strategy's configuration.
      properties:
        id:
          type: string
          description: Unique identifier of the strategy (UUID).
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          description: Name of the strategy.
          example: My Opal Strategy
        type:
          type: string
          description: Type identifier of the strategy.
          example: phonebot-v2.1
        organizationId:
          type: string
          description: ID of the organization this strategy belongs to (UUID).
          example: f0e9d8c7-b6a5-4321-fedc-ba9876543210
        parameters:
          type: object
          description: >-
            Type-specific configuration parameters for the strategy. Structure
            depends on the strategy type.
          additionalProperties: true
          example:
            temperature: 0.2
            outputSampleRate: 44100
            voice:
              provider: elevenlabs
              voiceId: lcMyyd2HUfFzxdCaC4Ta
              modelId: eleven_multilingual_v2
              speed: 1
              stability: 0.5
              similarityBoost: 0.75
              style: 0
              useSpeakerBoost: false
            vad:
              confidenceThreshold: 0.5
              minVolume: 0
              startDuration: 0.3
              stopDuration: 0.7
              backbufferDuration: 1
      required:
        - id
        - name
        - type
        - parameters

````