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

      Image Generation

      POST
      https://genai.reseter.space/api/v2/ai-gen-image
      This API endpoint provides image generation functionality from the input prompt. For details about available model codes and their features, please refer to the earlier sections of this documentation. Notably, the mfc-flux model supports image regeneration by using the seed field - simply pass the same positive integer value that was used in the original generation to recreate the image.

      Request

      Body Params application/json
      prompt
      string 
      required
      Text prompt in English or Vietnamese for the model to create images, note that only the 2 mentioned languages ​​are supported.
      model
      string 
      required
      Model used, available model codes include "mfc-xl", "mfc-lightning" and "mfc-flux".
      seed
      integer 
      optional
      Example
      {
          "prompt": "Cyper punk cat.",
          "model": "mfc-flux",
          "seed": 100
      }

      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-image' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "prompt": "Cyper punk cat.",
          "model": "mfc-flux",
          "seed": 100
      }'

      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).
      imageLink
      string 
      required
      Link to access the image just requested to be created.
      timestamp
      string 
      required
      Timestamp of request made.
      error
      null 
      required
      Error information (if any, only return non-null in case of failed request).
      Example
      {
          "success": true,
          "message": "Success",
          "imageLink": "https://mfc-agent.reseter.space/images/image_1746818371122.png",
          "timestamp": "2025-05-10 02:19:33",
          "error": null
      }
      Modified at 2025-05-09 19:26:58
      Previous
      Generate Text With Search Tool
      Next
      Create Multilingual Voices With TTSv1
      Built with