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

# Create Generation Suggestions

> Suggest high-value next parameter configurations for sample generation scripts.

The endpoint is designed for online generation loops:
request suggestions -> generate assets -> upload samples -> vote -> repeat.



## OpenAPI

````yaml /openapi.json post /v1/experiments/{experiment_id}/generation/suggestions
openapi: 3.1.0
info:
  description: Customer-owned evaluation lifecycle API.
  title: HeyBee Public API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.heybee.app
security: []
paths:
  /v1/experiments/{experiment_id}/generation/suggestions:
    post:
      tags:
        - Experiments
      summary: Create Generation Suggestions
      description: >-
        Suggest high-value next parameter configurations for sample generation
        scripts.


        The endpoint is designed for online generation loops:

        request suggestions -> generate assets -> upload samples -> vote ->
        repeat.
      operationId: >-
        create_generation_suggestions_v1_experiments__experiment_id__generation_suggestions_post
      parameters:
        - in: path
          name: experiment_id
          required: true
          schema:
            format: uuid
            title: Experiment Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-API-Key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerationSuggestionsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerationSuggestionsResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  schemas:
    GenerationSuggestionsRequest:
      description: Request payload for next parameter suggestions.
      properties:
        anchor_value:
          anyOf:
            - type: string
            - type: 'null'
          title: Anchor Value
        constraints:
          $ref: '#/components/schemas/GenerationSuggestionConstraints'
        count:
          default: 8
          maximum: 50
          minimum: 1
          title: Count
          type: integer
        dedupe_window_minutes:
          default: 180
          maximum: 168
          minimum: 1
          title: Dedupe Window Minutes
          type: integer
        is_baseline:
          default: false
          title: Is Baseline
          type: boolean
        prior_strength:
          anyOf:
            - maximum: 1000
              minimum: 0
              type: integer
            - type: 'null'
          title: Prior Strength
        seed:
          anyOf:
            - type: integer
            - type: 'null'
          title: Seed
        strategy:
          default: balanced
          enum:
            - balanced
            - explore
            - exploit
          title: Strategy
          type: string
      title: GenerationSuggestionsRequest
      type: object
    GenerationSuggestionsResponse:
      properties:
        experiment_id:
          format: uuid
          title: Experiment Id
          type: string
        expires_at:
          format: date-time
          title: Expires At
          type: string
        suggestions:
          items:
            $ref: '#/components/schemas/GenerationSuggestionItem'
          title: Suggestions
          type: array
      required:
        - experiment_id
        - suggestions
        - expires_at
      title: GenerationSuggestionsResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    GenerationSuggestionConstraints:
      description: Constraints for parameter suggestion generation.
      properties:
        categorical:
          additionalProperties:
            items: {}
            type: array
          title: Categorical
          type: object
        fixed:
          additionalProperties: true
          title: Fixed
          type: object
        ranges:
          additionalProperties:
            items:
              type: number
            type: array
          title: Ranges
          type: object
      title: GenerationSuggestionConstraints
      type: object
    GenerationSuggestionItem:
      properties:
        acquisition:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Acquisition
        is_baseline:
          default: false
          title: Is Baseline
          type: boolean
        parameters:
          additionalProperties: true
          title: Parameters
          type: object
        policy:
          anyOf:
            - type: string
            - type: 'null'
          title: Policy
        prior_strength:
          anyOf:
            - type: integer
            - type: 'null'
          title: Prior Strength
        reason:
          title: Reason
          type: string
        scores:
          $ref: '#/components/schemas/GenerationSuggestionScores'
        suggestion_id:
          format: uuid
          title: Suggestion Id
          type: string
      required:
        - suggestion_id
        - parameters
        - scores
        - reason
      title: GenerationSuggestionItem
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    GenerationSuggestionScores:
      properties:
        expected_info_gain:
          minimum: 0
          title: Expected Info Gain
          type: number
        exploitation:
          minimum: 0
          title: Exploitation
          type: number
        exploration:
          minimum: 0
          title: Exploration
          type: number
      required:
        - expected_info_gain
        - exploration
        - exploitation
      title: GenerationSuggestionScores
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: Supabase JWT
      scheme: bearer
      type: http
    ApiKeyAuth:
      in: header
      name: X-API-Key
      type: apiKey

````