Introduction
The Groq Microservice provides a REST API for generating Mexican government institutional document templates using Groq’s LLM API. The service generates properly formatted official documents (machotes) with standardized elements and variable placeholders.Base URL
5055, but can be configured via the PORT environment variable.
Authentication
The API does not require authentication from clients. However, the server requires a validGROQ_API_KEY environment variable to communicate with Groq’s API.
Clients can make requests directly without providing any authentication headers.
Content Type
All requests must use:Request/Response Format
- Request: JSON body with required parameters
- Response: JSON object containing the generated template or error details
- Request size limit: 1MB
Available Endpoints
The API currently provides one endpoint:POST /api/generate-template- Generate an institutional document template