GroqCloud models
Parameters
-
messages
- Type: array
- Required: true
-
model
- Type: string
- Required: false
- Options: mixtral-8x7b-32768
- Default: mixtral-8x7b-32768
-
max_tokens
- Type: number
- Required: false
- Default: 512
-
temperature
- Type: number
- Required: false
- Default: 0.9
-
id
- Type: string
- Required: false
- Description: ID of the conversation (used for data saving)
- Default: 7ab7480c-8e5d-4177-89a1-f90444798ae5
Response
-
result
- Type: string
-
done
- Type: boolean
-
cost
- Type: number
-
finishReason
- Type: string
-
id
- Type: string
- Description: ID of the conversation (used for data saving)
Examples
GroqCloud models example
import axios from "axios";
(async () => {
let response = await axios({
method: "post",
url: 'https://api.turing.sh/text/groq',
headers: {
"Content-Type": "application/json",
Authorization: "Bearer YOUR_API_KEY",
"x-captcha-token": "Captcha key"
},
data: {
"messages": "array",
"model": "mixtral-8x7b-32768",
"max_tokens": 512,
"temperature": 0.9,
"id": "7ab7480c-8e5d-4177-89a1-f90444798ae5"
},
})
})();