new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

groq/capabilities

8 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Groq image input with URL example

Example of using Groq multi-modal model with image URL input: `const { text } = await generateText({ model: groq('meta-llama/llama-4-scout-17b-16e-instruct'), messages: [{ role: 'user', content: [{ type: 'text', text: 'What do you see in this image?' }, { type: 'file', mediaType: 'image', data: 'https://example.com/image.jpg' }] }] });`

Groq image input with base64 example

Example of using Groq multi-modal model with base64-encoded image: `const imageData = readFileSync('path/to/image.jpg', 'base64'); const { text } = await generateText({ model: groq('meta-llama/llama-4-scout-17b-16e-instruct'), messages: [{ role: 'user', content: [{ type: 'text', text: 'Describe this image in detail.' }, { type: 'file', mediaType: 'image', data: \`data:image/jpeg;base64,${imageData}\` }] }] });`

Groq browser search supported models

Groq browser search tool is only available for two models: `openai/gpt-oss-20b` and `openai/gpt-oss-120b`. Using it with other models will generate a warning and the tool will be ignored.

Groq browser search basic usage example

Example of basic Groq browser search usage: `const result = await generateText({ model: groq('openai/gpt-oss-120b'), prompt: 'What are the latest developments in AI? Please search for recent news.', tools: { browser_search: groq.tools.browserSearch({}) }, toolChoice: 'required' }); console.log(result.text);`

Groq browser search streaming example

Example of Groq browser search with streaming: `const result = streamText({ model: groq('openai/gpt-oss-120b'), prompt: 'Search for the latest tech news and summarize it.', tools: { browser_search: groq.tools.browserSearch({}) }, toolChoice: 'required' }); for await (const delta of result.stream) { if (delta.type === 'text-delta') { process.stdout.write(delta.text); } }`

Groq browser search features and characteristics

Groq browser search features: Interactive Browsing (navigates websites like a human user), Comprehensive Results (more detailed than traditional search snippets), Server-side Execution (runs on Groq's infrastructure, no setup required), Powered by Exa (uses Exa search engine for optimal results), Currently Free (available at no additional charge during beta).

Groq browser search best practices

Groq browser search best practices: Use `toolChoice: 'required'` to ensure browser search is activated; only supported on `openai/gpt-oss-20b` and `openai/gpt-oss-120b` models; the tool works automatically with no configuration parameters needed; server-side execution means no additional API keys or setup required.

Groq basic text generation example

Example of basic Groq text generation: `const { text } = await generateText({ model: groq('gemma2-9b-it'), prompt: 'Write a vegetarian lasagna recipe for 4 people.' });`

Give your agent this brain