### GET /available-models/ Source: https://dharmamitra.org/api/docs/index Retrieves a list of available models for tagging. ```APIDOC ## GET /available-models/ ### Description Retrieves a list of available models for tagging. ### Method GET ### Endpoint /api/available-models/ ### Parameters None ### Request Example ```json null ``` ### Response #### Success Response (200) - **models** (array) - A list of available model names. #### Response Example ```json { "models": ["model1", "model2"] } ``` ``` -------------------------------- ### POST /tagging/ Source: https://dharmamitra.org/api/docs/index Performs tagging on the input text. ```APIDOC ## POST /tagging/ ### Description Performs tagging on the input text. ### Method POST ### Endpoint /api/tagging/ ### Parameters #### Request Body - **text** (string) - Required - The text to tag. - **model** (string) - Optional - The tagging model to use. ### Request Example ```json { "text": "This is a sample sentence.", "model": "default" } ``` ### Response #### Success Response (200) - **tags** (array) - A list of tags. #### Response Example ```json { "tags": ["sample", "sentence"] } ``` ``` -------------------------------- ### POST /translation/ Source: https://dharmamitra.org/api/docs/index Performs translation. ```APIDOC ## POST /translation/ ### Description Performs translation. ### Method POST ### Endpoint /api/translation/ ### Parameters #### Request Body - **q** (string) - Required - The text to translate. - **source** (string) - Optional - The source language. - **target** (string) - Required - The target language. - **format** (string) - Optional - The output format. ### Request Example ```json { "q": "Hello world", "target": "de", "source": "en" } ``` ### Response #### Success Response (200) - **translatedText** (string) - The translated text. #### Response Example ```json { "translatedText": "Hallo Welt" } ``` ``` -------------------------------- ### POST /translation-fgs/ Source: https://dharmamitra.org/api/docs/index Performs translation using FG-S model. ```APIDOC ## POST /translation-fgs/ ### Description Performs translation using the FG-S model. ### Method POST ### Endpoint /api/translation-fgs/ ### Parameters #### Request Body - **q** (string) - Required - The text to translate. - **source** (string) - Optional - The source language. - **target** (string) - Required - The target language. - **format** (string) - Optional - The output format. ### Request Example ```json { "q": "Hello world", "target": "es", "source": "en" } ``` ### Response #### Success Response (200) - **translatedText** (string) - The translated text. #### Response Example ```json { "translatedText": "Hola mundo" } ``` ``` -------------------------------- ### POST /translation-no-stream/ Source: https://dharmamitra.org/api/docs/index Performs translation without streaming. ```APIDOC ## POST /translation-no-stream/ ### Description Performs translation without streaming the results. ### Method POST ### Endpoint /api/translation-no-stream/ ### Parameters #### Request Body - **q** (string) - Required - The text to translate. - **source** (string) - Optional - The source language. - **target** (string) - Required - The target language. - **format** (string) - Optional - The output format. ### Request Example ```json { "q": "Hello world", "target": "fr", "source": "en" } ``` ### Response #### Success Response (200) - **translatedText** (string) - The translated text. #### Response Example ```json { "translatedText": "Bonjour le monde" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.