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

# Get Text Generator items

> List text generation tasks for the authenticated workspace.



## OpenAPI

````yaml get /sse/text_generator/
openapi: 3.0.3
info:
  title: creatify.ai API
  version: 1.0.0
  description: API for creatify.ai
servers: []
security: []
paths:
  /sse/text_generator/:
    get:
      tags:
        - text_generator
      summary: Get Text Generator items
      description: List text generation tasks for the authenticated workspace.
      operationId: sse_text_generator_list
      responses:
        '200':
          description: List of text generation tasks.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TextGenResponse'
        '401':
          description: Missing or invalid API credentials.
      security:
        - X-API-ID: []
          X-API-KEY: []
components:
  schemas:
    TextGenResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        model_name:
          type: string
          readOnly: true
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          readOnly: true
        system_instruction:
          type: string
          description: Optional system instruction for the model.
        config:
          allOf:
            - $ref: '#/components/schemas/TextGenConfig'
          readOnly: true
        status:
          $ref: '#/components/schemas/TextGenResponseStatusEnum'
        response_text:
          type: string
          description: Generated text response from the model.
        response_function_calls:
          type: array
          items:
            $ref: '#/components/schemas/FunctionCallPart'
          readOnly: true
        failed_reason:
          type: string
          description: Reason for failure if status is failed.
        credits_used:
          type: number
          format: double
          description: Credits consumed for this generation.
        created_at:
          type: string
          format: date-time
          readOnly: true
          title: Created date
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Updated date
      required:
        - config
        - created_at
        - id
        - messages
        - model_name
        - response_function_calls
        - updated_at
    Message:
      type: object
      properties:
        role:
          allOf:
            - $ref: '#/components/schemas/RoleEnum'
          description: |-
            Role of the message sender: 'user' or 'model'.

            * `user` - user
            * `model` - model
        content:
          default: ''
          description: >-
            Message content. Either a plain text string, or a list of content
            parts for multimodal input. Each part is an object with 'type'
            ('text', 'image', or 'video'), and either 'text' (for text parts) or
            'data' (base64) + 'mime_type' (for image/video parts).
        function_call:
          allOf:
            - $ref: '#/components/schemas/FunctionCallPart'
          description: A function call part (role must be 'model').
        function_response:
          allOf:
            - $ref: '#/components/schemas/FunctionResponsePart'
          description: A function response part (role must be 'user').
      required:
        - role
    TextGenConfig:
      type: object
      description: Structured config serializer for OpenAPI documentation.
      properties:
        temperature:
          type: number
          format: double
          description: 'Controls randomness. Range: 0.0 - 2.0. Lower = more deterministic.'
        max_output_tokens:
          type: integer
          description: Maximum number of tokens to generate.
        top_p:
          type: number
          format: double
          description: 'Nucleus sampling threshold. Range: 0.0 - 1.0.'
        top_k:
          type: integer
          description: Top-k sampling. Only sample from top k tokens.
        presence_penalty:
          type: number
          format: double
          description: 'Penalize tokens already present in the text. Range: -2.0 - 2.0.'
        frequency_penalty:
          type: number
          format: double
          description: 'Penalize tokens by frequency. Range: -2.0 - 2.0.'
        seed:
          type: integer
          description: Random seed for deterministic generation.
        stop_sequences:
          type: array
          items:
            type: string
          description: List of strings that stop generation when encountered.
        response_mime_type:
          allOf:
            - $ref: '#/components/schemas/ResponseMimeTypeEnum'
          description: |-
            Output format: 'text/plain' or 'application/json'.

            * `text/plain` - text/plain
            * `application/json` - application/json
        response_json_schema:
          description: >-
            JSON Schema for structured output. Automatically sets
            response_mime_type to 'application/json'.
    TextGenResponseStatusEnum:
      enum:
        - pending
        - running
        - done
        - failed
      type: string
      description: |-
        * `pending` - pending
        * `running` - running
        * `done` - done
        * `failed` - failed
    FunctionCallPart:
      type: object
      description: A function call issued by the model.
      properties:
        name:
          type: string
          description: Name of the function to call.
        args:
          type: object
          additionalProperties: {}
          description: Arguments for the function call as a JSON object.
      required:
        - name
    RoleEnum:
      enum:
        - user
        - model
      type: string
      description: |-
        * `user` - user
        * `model` - model
    FunctionResponsePart:
      type: object
      description: A function response supplied by the caller.
      properties:
        name:
          type: string
          description: Name of the function that was called.
        response:
          type: object
          additionalProperties: {}
          description: The function's return value as a JSON object.
      required:
        - name
        - response
    ResponseMimeTypeEnum:
      enum:
        - text/plain
        - application/json
      type: string
      description: |-
        * `text/plain` - text/plain
        * `application/json` - application/json
  securitySchemes:
    X-API-ID:
      type: apiKey
      in: header
      name: X-API-ID
      description: API ID, from your settings page.
    X-API-KEY:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API Key, from your settings page.

````