Groq2API

Groq2API

Free Groq API With No Limit

Stars: 288

Visit
 screenshot

Groq2API is a REST API wrapper around the Groq2 model, a large language model trained by Google. The API allows you to send text prompts to the model and receive generated text responses. The API is easy to use and can be integrated into a variety of applications.

README:

Groq2API

Installation

docker run -d -p 8080:8080 ghcr.io/star-studio-develop/groq2api:latest

Vercel部署

Deploy with Vercel

Koyeb部署

Deploy to Koyeb

Render部署

Deploy

Railway部署

Deploy on Railway

Usage

可选参数列表

  • model 模型名称
    • gemma-7b-it
    • mixtral-8x7b-32768
    • llama2-70b-4096
    • llama3-8b-8192
    • llama3-70b-8192
  • stream 是否流式输出
    • true
    • false
  • max_tokens 最大生成长度
    • 4096 (llama2-70b-4096)
    • 8192 (gemma-7b-it)
    • 32768 (mixtral-8x7b-32768)
  • message
    • role 消息角色
      • user
      • assistant
curl --request POST \
  --url http://127.0.0.1:8080/v1/chat/completions \
  --header 'Authorization: Bearer stytch_session' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "hi"
    }
  ],
  "model": "mixtral-8x7b-32768",
  "max_tokens": 4096,
  "stream": true
}'

stytch_session 获取方法

image|690x233

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for Groq2API

Similar Open Source Tools

For similar tasks

For similar jobs