[Freemium] GroqText: 30+ LLMs including DeepSeek, Llama, Gemma, ALLaM, Mixtral and Qwen (Search / Code Execution / Vision Models / Streaming and more)

🧩 GroqText

An extension for MIT App Inventor 2.
Extension to integrate AI Text and Vision Models in applications using Groq API with streaming support. My other extensions
Built by Sarthak Gupta

:memo: Specifications


:package: Package: com.sarthakdev.groqtext
:floppy_disk: Size: 20.68 KB
:gear: Version: 1.2
:mobile_phone: Minimum API Level: 7
:date: Updated On: 2025-05-25T18:30:00Z
:laptop: Built & documented using: FAST-CLI v2.8.1
Extension License: here

Introduction

  • Integrate a large number of AI Models in your app through the groq api
  • Includes a generous free plan with daily rate limit (without credit card)
  • Includes 2b, 8b and 70b parameter models

Features of Groq Inference

  • Lightning fast AI Models
  • Supports 30+ AI Models from 5+ providers
  • Best Free Plan that gives 500k tokens* daily for free to use in production

Events:

GroqText has total 5 events.

CustomStructuredOutputReceived_Event
GroqMessageContentReceived_Event
GroqRequestError_Event
GroqResponseReceived_Event
GroqStreamResponseReceived_Event

:yellow_heart: GroqStreamResponseReceived

Event triggered when a streaming response part is received

Parameter Type
partialContent text

:yellow_heart: CustomStructuredOutputReceived

Event triggered when custom structured output is received from the Groq API

Parameter Type
jsonOutput text

:yellow_heart: GroqResponseReceived

Event triggered when AI response is received

Parameter Type
statusCode number
response text
messageContent text
finishReason text
model text
queueTime text
promptTokens text
completionTokens text

:yellow_heart: GroqRequestError

Event triggered when an error occurs in Groq API request

Parameter Type
errorMessage text

:yellow_heart: GroqMessageContentReceived

Event triggered when AI message content is extracted

Parameter Type
messageContent text

Methods:

GroqText has total 5 methods.

AskQuestion_Method
ExtractJSONValue_Method
ProcessImage_Method


ResetConversation_Method

:purple_heart: ExtractJSONValue

Extract a specific value from the JSON response

Parameter Type
jsonString text
fieldPath text

:purple_heart: AskQuestion

Ask a question to the AI

Parameter Type
userMessage text

:purple_heart: ProcessImage

Process an image with a text prompt using a local image path

Parameter Type
prompt text
imagePath text

:purple_heart: RequestCustomStructuredOutput

Request custom structured output from Groq API

Parameter Type
apiKey text
modelName text
systemInstruction text
userRequest text
customSchema text

:purple_heart: ResetConversation

Reset the conversation by clearing the chat history

Setters:

GroqText has total 11 setter properties.

ApiKey_Set_Property
ApiUrl_Set_Property
ChatHistoryEnabled_Set_Property
MaxTokens_Set_Property
ModelName_Set_Property
Stop_Set_Property
StreamResponses_Set_Property
SystemMessage_Set_Property

:green_heart: ApiKey

Set the Groq API Key

  • Input type: text

:green_heart: ModelName

Set the AI Model Name for text tasks

  • Input type: text
  • Helper class: ModelName
  • Helper enums: Llama_3_3_70b_Versatile, Llama_3_1_8b_Instant, Llama3_70b_8192, Llama3_8b_8192, Gemma2_9b_It, Meta_Llama_Llama_Guard_4_12B, Allam_2_7b, DeepSeek_R1_Distill_Llama_70b, Meta_Llama_4_Maverick, Meta_Llama_4_Scout, Mistral_Saba_24b, Qwen_Qwq_32b, Compound_Beta, Compound_Beta_Mini

:green_heart: VisionModelName

Set the AI Model Name for vision tasks

  • Input type: text
  • Helper class: VisionModelName
  • Helper enums: Llama_4_Scout, Llama_4_Maverick

:green_heart: ApiUrl

Set the API Endpoint URL

  • Input type: text

:green_heart: SystemMessage

Set the system message for the AI

  • Input type: text

:green_heart: ChatHistoryEnabled

Enable or disable chat history

  • Input type: boolean

:green_heart: Temperature

Set the temperature

  • Input type: number

:green_heart: MaxTokens

Set the max tokens

  • Input type: number

:green_heart: TopP

Set the top P value

  • Input type: number

:green_heart: StreamResponses

Set whether to stream responses for text and vision tasks

  • Input type: boolean

:green_heart: Stop

Set the stop value

  • Input type: text

Getters:

GroqText has total 11 getter properties.

:green_circle: ApiKey

Set the Groq API Key

  • Return type: text

:green_circle: ModelName

Set the AI Model Name for text tasks

  • Return type: text

:green_circle: VisionModelName

Set the AI Model Name for vision tasks

  • Return type: text

:green_circle: ApiUrl

Set the API Endpoint URL

  • Return type: text

:green_circle: SystemMessage

Set the system message for the AI

  • Return type: text

:green_circle: ChatHistoryEnabled

Enable or disable chat history

  • Return type: boolean

:green_circle: Temperature

Set the temperature

  • Return type: number

:green_circle: MaxTokens

Set the max tokens

  • Return type: number

:green_circle: TopP

Set the top P value

  • Return type: number

:green_circle: StreamResponses

Set whether to stream responses for text and vision tasks

  • Return type: boolean

:green_circle: Stop

Set the stop value

  • Return type: text

Try the extension for free with GroqTextMini (Free)

This is the difference b/w free and paid version.

GroqTextMini GroqText
Free Paid(5.99$)
Use llama-8b model Use 30+ AI Models (Lllama, Gemma, Mixtral, DeepSeek, Qwen, Distilled models)
8b model 1b, 2b, 3b, 8b, 32b, 70b, 80b models
500 tokens Unlimited tokens depending on model capacity
No Image Support Image Support
No Code Execution Code Execution Support
No Search Support Search Support

GroqTextMini: :robot: com.sarthakdev.groqtextmini.aix (8.3 KB)

Purchase full GroqText extension from here for only 5.99$

Purchase Extension

You can purchase the extension instantly from the link below for just 5.99$
https://buymeacoffee.com/techxsarthak/e/356706

1 Like

Purchase the extension for just 5.99$
Valid for limited time :rocket: Buy now

Wrote an in depth guide about Groq API and the benefits you get in free plan.