Get Started
Text Generation (Without RAG)
Learn how to generate free text responses using the Wetrocloud API.
The text generation
endpoint allows you to generate natural language responses using open source language models provided by Wetrocloud.
This API supports conversational interactions through a messages-based format.
Endpoint
Request Format
The request should be sent as multipart/form-data
with the following parameters:
Parameter | Type | Description |
---|---|---|
messages | string (JSON) | Array of message objects representing the conversation |
model | string | Identifier for the language model to use (e.g., “llama-3.3-70b”) |
Message Object Format
Each message in the messages
array should have the following structure:
Supported Models
View models supported by WetroCloud here.
Request Example
Response Example:Text generation
Field | Description |
---|---|
response | Conversational response to the query. |
tokens | Number of tokens used for processing. |
success | Indicates whether the query was successful. |