Español — Parte del contenido de esta página solo está disponible en inglés. Inicio

Groq

Groq es rápido, de bajo costo Inference.

Text Generationllmapiinference

📖 Resumen

La Groq LPU (Unidad de Procesamiento de Lenguaje) ofrece Inference con la velocidad y el costo que los desarrolladores necesitan. Proporciona un API basado en la nube para ejecutar modelos de lenguaje grandes con alto rendimiento y baja latencia.

💰 Detalles del Plan Gratuito

📝 Groq API Usage Guide

Groq provides a high-speed, low-latency API for running large language models (LLMs) on its custom Language Processing Unit (LPU). To get started:

  1. Sign Up & Get an API Key: Visit console.groq.com, create a free account, and generate an API key from the dashboard.
  1. Choose a Model: Groq offers several models (e.g., Llama 3, Mixtral). Select the one that fits your use case from the available list.
  1. Make API Calls: Use standard HTTP requests to the endpoint https://api.groq.com/openai/v1/chat/completions. Include your API key in the Authorization header as Bearer YOUR_API_KEY.

Example request (using curl):

curl -X POST https://api.groq.com/openai/v1/chat/completions \
     -H "Authorization: Bearer $GROQ_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
       "model": "llama3-8b-8192",
       "messages": [{"role": "user", "content": "Hello!"}]
     }'
  1. Parameters: Set temperature, max_tokens, top_p, etc., as needed. The response will include the generated text in choices[0].message.content.
  1. Rate Limits: Free tier has limits (e.g., 30 requests per minute). Check your dashboard for details.
  1. Streaming: For real-time responses, enable streaming by setting stream: true in the request body.

For more details, see the official Groq documentation. The LPU ensures blazing-fast inference, suitable for chatbots, coding assistants, and more.

Gratis
active

Health

At Risk
Free tier Active
Verified Never verified

Ratings

Ease of Use
Free Tier
Stability
Community

¿Es útil esta herramienta?

Compare