Get Started
Query your Resources
Learn how to query your collections in WetroCloud for both free text and structured responses.
The query
endpoint allows you to retrieve information from a collection (your resources) via the WetroCloud API.
This endpoint supports two response formats to suit different use cases:
- Free Text Response: A natural language answer to your query.
- Structured Output Response: A structured JSON output.
Each response type has unique request and response formats, which are explained in detail on their respective pages.
Free Text Response
Free text response provides natural, conversational-style answers to your queries. It is ideal for general Q&A and scenarios where a narrative or contextualized explanation is needed. Unlike structured output, free text does not require additional parameters like json_schema
and json_schema_rules
.
Request Example
Field | Description |
---|---|
collection_id | Collection Id. |
query | This is the prompt. |
model (optional) | Pass in the model you want. |
Supported Models
By default, Wetrocloud API supports these models:
Model Name | Identifier | Description |
---|---|---|
LLaMA 3.3 70B | llama-3.3-70b | A large, general-purpose language model with 70 billion parameters. |
LLaMA 3.3 70B Versatile | llama-3.3-70b-versatile | Optimized version of LLaMA 3.3 70B for broader tasks and better flexibility. |
DeepSeek R1 Distill LLaMA | deepseek-r1-distill-llama-70b | Distilled version of LLaMA 70B for faster performance and specialized tasks. |
GPT-4o | gpt-4o | A variant of GPT-4 optimized for performance and versatility. |
GPT-4o Mini | gpt-4o-mini | Lightweight version of GPT-4o for faster response with fewer resources. |
Claude sonnet 3.7 | claude-3-7-sonnet-20250219 | Upgraded version of the Claude sonnet 3.5 model |
These are the language models support at the moment, please use the identifiers above not the model name.
Response Example: Free Text
Field | Description |
---|---|
response | Conversational response to the query. |
tokens | Number of tokens used for processing. |
success | Indicates whether the query was successful. |