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

      Generate Text With Search Tool

      POST
      https://genai.reseter.space/api/v2/ai-gen-with-search
      This API endpoint has similar functionality to the text generation API endpoint mentioned earlier, with the difference that when making a request to this endpoint, the AI will perform a series of internet searches before generating the text.

      Request

      Body Params application/json
      prompt
      string 
      required
      Prompts given to text generating AI.
      model
      string 
      required
      Model used, for this function only model "null-pro" is available.
      contextId
      string 
      optional
      Example
      {
          "prompt": "Find information on the internet about the great leader Ho Chi Minh?",
          "model": "null-pro",
          "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-with-search' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "prompt": "Find information on the internet about the great leader Ho Chi Minh?",
          "model": "null-pro",
          "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.
      searchLogs
      string 
      required
      The log search string that the AI ​​performed.
      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": "Ho Chi Minh (1890-1969) was a Vietnamese revolutionary leader, the founder of the Vietnamese Communist Party, and served as the first President of North Vietnam. He was a central figure in Vietnam's fight for independence from French colonial rule and later against the United States during the Vietnam War. He adopted the name Ho Chi Minh, meaning \"He Who Enlightens,\" around 1940. He is a highly revered figure in Vietnam, and the city of Saigon was renamed Ho Chi Minh City in his honor.",
          "searchLogs":"\n\n> Entering new AgentExecutor chain...\nAction: Search\nAction Input: \"Ho Chi Minh\"\nObservation: snippet: Learn about Ho Chi Minh, the founder of the Vietnamese Communist Party and the president of North Vietnam. Explore his early life, his role in the anti-colonial movement, and his legacy in Vietnam and the world., title: Ho Chi Minh | Biography, Presidency, & Facts | Britannica, link: https://www.britannica.com/biography/Ho-Chi-Minh, snippet: Ho Chi Minh - Vietnam War, Independence, Revolution: In 1938 Ho returned to China and stayed for a few months with Mao Zedong at Yen-an. When France was defeated by Germany in 1940, Ho and his lieutenants, Vo Nguyen Giap and Pham Van Dong, plotted to use this turn of events to advance their own cause. About this time he began to use the name Ho Chi Minh (\"He Who Enlightens\")., title: Ho Chi Minh - Vietnam War, Independence, Revolution | Britannica, link: https://www.britannica.com/biography/Ho-Chi-Minh/World-War-II-and-the-founding-of-the-Vietnamese-state, snippet: You haven't experienced Ho Chi Minh City until you've tried the street food. Samuel Brown/Getty Images 4. Savor snails (and more) in District 4. A district once known for thugs and gangsters, District 4 has transformed into a playground for street food in general, and for snails in particular. Vinh Khanh Street is a top spot for seafood, with ..., title: 10 best things to do in Ho Chi Minh City - Lonely Planet, link: https://www.lonelyplanet.com/articles/best-things-to-do-in-ho-chi-minh-city, snippet: Discover the best attractions and activities in Ho Chi Minh City, the vibrant \"Pearl of the Far East\". Explore historical landmarks, cultural sites, nightlife, food, and more in this comprehensive travel guide., title: Top 10 Things To Do in Ho Chi Minh City for An Unforgettable Trip, link: https://www.vietnamairlines.com/us/en/useful-information/travel-guide/things-to-do-in-hcm\nThought:Ho Chi Minh (1890-1969) was a Vietnamese revolutionary leader and statesman. He was a key figure in the foundation of the Democratic Republic of Vietnam (North Vietnam) in 1945, serving as its Prime Minister (1945–1955) and President (1945–1969).\n\nKey aspects of his life and legacy include:\n*   **Founder of the Vietnamese Communist Party:** He played a central role in establishing the Indochinese Communist Party in 1930 and later the Viet Minh, a nationalist independence coalition.\n*   **Anti-colonial Movement:** Ho Chi Minh was a pivotal leader in Vietnam's struggle for independence from French colonial rule and later against American intervention during the Vietnam War.\n*   **\"He Who Enlightens\":** He adopted the name Ho Chi Minh, meaning \"He Who Enlightens,\" around 1940.\n*   **Legacy:** He is a highly revered figure in Vietnam, often referred to as \"Uncle Ho.\" His image and ideas remain influential in the country. Saigon, the former capital of South Vietnam, was renamed Ho Chi Minh City in his honor after the reunification of Vietnam.\n\nHe was involved in significant historical events, including plotting with his lieutenants Vo Nguyen Giap and Pham Van Dong to advance their cause for independence when France was defeated by Germany in 1940. He also spent time with Mao Zedong in China in 1938.\n\nFinal Answer: Ho Chi Minh (1890-1969) was a Vietnamese revolutionary leader, the founder of the Vietnamese Communist Party, and served as the first President of North Vietnam. He was a central figure in Vietnam's fight for independence from French colonial rule and later against the United States during the Vietnam War. He adopted the name Ho Chi Minh, meaning \"He Who Enlightens,\" around 1940. He is a highly revered figure in Vietnam, and the city of Saigon was renamed Ho Chi Minh City in his honor.\n\n> Finished chain.\n",
          "timestamp": "2025-05-10 02:08:10",
          "contextId": "n8qthgZIKsHW7TUkAYHT",
          "error": null
      }
      Modified at 2025-05-09 19:12:35
      Previous
      Upload File To Context To Generate Response With File Context
      Next
      Image Generation
      Built with