```javascript
export const getExampleCode = (
  modelId: string,
  content = "Explain why fast inference is critical for reasoning models",
) => ({
  shell: `curl https://api.groq.com/openai/v1/chat/completions \\
  -H "Authorization: Bearer $GROQ_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "model": "${modelId}",
    "messages": [
      {
        "role": "user",
        "content": "${content}"
      }
    ]
  }'`,

  javascript: `import Groq from "groq-sdk";
const groq = new Groq();
async function main() {
  const completion = await groq.chat.completions.create({
    model: "${modelId}",
    messages: [
      {
        role: "user",
        content: "${content}",
      },
    ],
  });
  console.log(completion.choices[0]?.message?.content);
}
main().catch(console.error);`,

  python: `from groq import Groq
client = Groq()
completion = client.chat.completions.create(
    model="${modelId}",
    messages=[
        {
            "role": "user",
            "content": "${content}"
        }
    ]
)
print(completion.choices[0].message.content)`,

  json: `{
  "model": "${modelId}",
  "messages": [
    {
      "role": "user", 
      "content": "${content}"
    }
  ]
}`,
});
```

---

## Script: Types.d (ts)