Learn how to generate free text responses using the Wetrocloud API.
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.
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”) |
messages
array should have the following structure:
Field | Description |
---|---|
response | Conversational response to the query. |
tokens | Number of tokens used for processing. |
success | Indicates whether the query was successful. |