Reseter Space | GenAI API Docs
    Reseter Space | GenAI API Docs
    • Reseter Space developer platform
    • Text Generation
      POST
    • Upload File To Context To Generate Response With File Context
      POST
    • Generate Text With Search Tool
      POST
    • Image Generation
      POST
    • Create Multilingual Voices With TTSv1
      POST
    • Create Limited Language Voice with TTSv2
      POST

      Text Generation

      POST
      https://genai.reseter.space/api/v2/ai-gen
      This API endpoint provides text generation functionality based on the provided prompt. The system maintains context through the contextId field - a 20-character identifier string. If the request does not contain a contextId or the value is invalid, the system will automatically generate a new contextId. When the request is successful, the contextId will be returned in the response so that the client can use it for subsequent requests.

      Request

      Body Params application/json
      prompt
      string 
      required
      Prompts given to text generating AI.
      model
      string 
      required
      AI models used, currently available model codes include "null-base", "null-flash" and "null-pro".
      contextId
      string 
      optional
      The context code to use to generate the response.
      Example
      {
        "prompt": "Hello, who are you?",
        "model": "null-base",
        "contextId": "ndqthgZIKsHW7TUkAYHT"
      }

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://genai.reseter.space/api/v2/ai-gen' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "prompt": "Hello, who are you?",
        "model": "null-base",
        "contextId": "ndqthgZIKsHW7TUkAYHT"
      }'

      Responses

      🟢200Success
      application/json
      Body
      success
      boolean 
      required
      The result of executing the request, returns "true" if successful and vice versa.
      message
      string 
      required
      Additional server notifications (if required).
      text
      string 
      required
      The text is generated with context and prompt passed from the request.
      timestamp
      string 
      required
      Timestamp of request made.
      contextId
      string 
      required
      The context identifier being used to generate the response.
      error
      null 
      required
      Error information (if any, only return non-null in case of failed request).
      Example
      {
          "success": true,
          "message": "Success",
          "text": "Hi, I'm a chatbot",
          "timestamp": "2025-05-10 10:00:00",
          "contextId": "ndqthgZIKsHW7TUkAYHT",
          "error": null
      }
      Modified at 2025-05-09 18:43:28
      Previous
      Reseter Space developer platform
      Next
      Upload File To Context To Generate Response With File Context
      Built with