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.
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”) |
Each message in the messages
array should have the following structure:
View models supported by WetroCloud here.
Field | Description |
---|---|
response | Conversational response to the query. |
tokens | Number of tokens used for processing. |
success | Indicates whether the query was successful. |