AI assistant
The AI assistant is an AI-powered user interface prototyping assistant. When connected to a Large Language Model (LLM), it helps you speed up user interface prototyping.
Because the output depends on the underlying AI model and your input, results will vary. Prototyping is an experimental process that often requires multiple iterations. Provide clear and detailed prompts for the best results.

AI models
The tables below list the models that are available in Qt Design Studio by default. To add more models than the default ones, see the link to the provider's full list of models below each table.
Note: The AI assistant in Qt Design Studio does not support text-to-speech (TTS) or image generation models.
Choosing a model
When choosing which AI model to use, consider the following:
- The
llama-3.3-70b-versatilemodel from Groq is the recommended model. It has shown better QML generation quality compared to other models. - Higher-parameter models (for example,
70b) generally deliver better QML code quality compared to smaller ones (for example,8b). - Access considerations:
- Groq offers generous free tier rate limits, making it a cost-effective option for experimentation.
- Gemini provides free tier rate limits, though they are more limited than Groq.
- OpenAI and Claude do not offer any free plans. The pricing depends on the model. See OpenAI pricing and Claude pricing.
Groq
| Model | Model ID | Image input |
|---|---|---|
| Llama 3.3 70B | llama-3.3-70b-versatile | No |
| Llama 3.1 8B | llama-3.1-8b-instant | No |
| GPT OSS 120B | openai/gpt-oss-120b | No |
| GPT OSS 20B | openai/gpt-oss-20b | No |
| Compound | groq/compound | No |
| Compound Mini | groq/compound-mini | No |
| Kimi K2 0905 | moonshotai/kimi-k2-instruct-0905 | No |
| Qwen3-32B | qwen/qwen3-32b | No |
For a full list of models, see https://console.groq.com/docs/models.
Gemini
| Model | Model ID | Image input |
|---|---|---|
| Gemini 2.5 Pro | gemini-2.5-pro | Yes |
| Gemini 2.5 Flash | gemini-2.5-flash | Yes |
| Gemini 2.5 Flash-Lite | gemini-2.5-flash-lite | Yes |
| Gemini 2.0 Flash | gemini-2.0-flash | Yes |
| Gemini 2.0 Flash-Lite | gemini-2.0-flash-lite | Yes |
For a full list of models, see https://ai.google.dev/gemini-api/docs/models.
OpenAI
| Model | Model ID | Image input |
|---|---|---|
| GPT-5 | gpt-5-2025-08-07 | Yes |
| GPT-5 mini | gpt-5-mini-2025-08-07 | Yes |
| GPT-5 nano | gpt-5-nano-2025-08-07 | Yes |
| GPT-4.1 | gpt-4.1-2025-04-14 | Yes |
| GPT-4.1 mini | gpt-4.1-mini-2025-04-14 | Yes |
| GPT-4.1 nano | gpt-4.1-nano-2025-04-14 | Yes |
For a full list of models, see https://platform.openai.com/docs/models.
Claude
| Model | Model ID | Image input |
|---|---|---|
| Claude Sonnet 4.5 | claude-sonnet-4-5-20250929 | Yes |
| Claude Sonnet 4 | claude-sonnet-4-20250514 | Yes |
| Claude Haiku 4.5 | claude-haiku-4-5-20251001 | Yes |
| Claude Haiku 3.5 | claude-3-5-haiku-20241022 | Yes |
| Opus 4 | claude-opus-4-20250514 | Yes |
| Opus 4.1 | claude-opus-4-1-20250805 | Yes |
For a full list of models, see https://docs.claude.com/en/docs/about-claude/models/overview.
Setting up the AI assistant
Before you start
To use the AI assistant in Qt Design Studio, you need an API key to Groq, Gemini, OpenAI, or Claude.
Configuring the AI assistant
To configure the AI assistant:
- In the AI Assistant view, select
. - Enter the API key for your AI provider.

In the AI Assistant view, you can now use the models under the providers for which you set API keys.
You can also:
- Remove the provider and its models from selectable models in the AI Assistant view by clearing the checkbox next to the provider name.
- Reset the provider Url by selecting
next to the Url field.
Adding, removing, and reorganizing models
In the AI assistant settings dialog:
- To add another model, select
and enter the model ID for the model you want to add. See AI models. - To remove a model, select the model and then, select
. - To reset the model list to default models, select
. - To move a model up or down, select it and use
and
.
Using the AI assistant
Note the following:
- The AI assistant is aware of images (by their names only) in the project assets and is instructed to use them whenever it seem to fit. For example, if you have an image named
banana.jpgin your project assets, the AI assistant likely uses this image if you ask it to add a banana to the UI. - The AI assistant is aware of
.uifiles and instructed to not generate code in them.
Using a prompt to generate content
To generate content with the AI assistant:
- In the AI Assistant view, select the model that you want to use from the drop-down menu.
- Enter your prompt in the prompt field. If the selected model supports image input, you can also use
to attach an image to your prompt. These models can interpret the content of the image such as layout and visual hierarchy and use that understanding during generation. For example, you can attach an image of a UI layout and ask the AI assistant to build a UI based on the attached image.Note: If you attach an image to the AI assistant, it remains in use and effects results of your next generations until you remove it.
- Select
to run the prompt.
After a successful generation, rate the output with thumbs up or thumbs down. This helps improve the Qt Design Studio AI assistant.

If the generation is not succesful, there are two types of messages:
- A Warning is displayed if there are any issues with the generated QML code.
- An Error is displayed if there are any issues with the API request.
See also AI Assistant view.
Available under certain Qt licenses.
Find out more.