Groq - AI Api with free basic credits for testing
GROQ is ai infrastructure company providing api which can be used as an additional provider in EMR.
They have free tier as well which is good for testing project/demo with clients before launching with openai
Groq's APIs are openai compatible and so easier to integrate with base url:
Log in to comment and vote
Comments3
Salman Farish
Jul 22, 2024
Current request Limits of GROQ API is enough for majority of us :
Leon
Jul 20, 2024
Would be great to give clients a way to respond to reviews with AI for free. As it allows for unlimited usage with a 20 API request limit per minute. So each of our customers could use their own API key they get for free.
Leon
Jul 20, 2024
API Endpoint: The API endpoint for the Mixtral 8x7b model is:
Required Headers for Authentication: You'll need to provide an API key in the
Authorizationheader. You can obtain an API key by signing up for a Groq account.Here's an example of the
Authorizationheader:Authorization: Bearer YOUR_API_KEYReplace
YOUR_API_KEYwith your actual API key.Expected Request Format: The request body should be a JSON object with the following format:
{ "prompt": "YOUR_PROMPT_HERE", "model": "mixtral-8x7b", "max_tokens": 1024, "temperature": 0.5 }Replace
YOUR_PROMPT_HEREwith the input text you want to process.Response Format: The response will be a JSON object with the following format:
{ "choices": [ { "text": "GENERATED_TEXT_HERE", "index": 0, "logprobs": null } ] }The
textfield contains the generated text.Rate Limiting and Other Considerations:
• Rate Limiting: Groq has a rate limit of 20 requests per minute for the free tier. You can check the rate limit status by sending a
GETrequest tohttps://api.groq.com/openai/v1/rate_limit.• Maximum Input Length: The maximum input length is 2048 characters.
• Supported Models: You can use other models like
llama3-70bandgemma-7b-itby specifying them in themodelfield of the request body.