On this page

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-versatile model 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

ModelModel IDImage input
Llama 3.3 70Bllama-3.3-70b-versatileNo
Llama 3.1 8Bllama-3.1-8b-instantNo
GPT OSS 120Bopenai/gpt-oss-120bNo
GPT OSS 20Bopenai/gpt-oss-20bNo
Compoundgroq/compoundNo
Compound Minigroq/compound-miniNo
Kimi K2 0905moonshotai/kimi-k2-instruct-0905No
Qwen3-32Bqwen/qwen3-32bNo

For a full list of models, see https://console.groq.com/docs/models.

Gemini

ModelModel IDImage input
Gemini 2.5 Progemini-2.5-proYes
Gemini 2.5 Flashgemini-2.5-flashYes
Gemini 2.5 Flash-Litegemini-2.5-flash-liteYes
Gemini 2.0 Flashgemini-2.0-flashYes
Gemini 2.0 Flash-Litegemini-2.0-flash-liteYes

For a full list of models, see https://ai.google.dev/gemini-api/docs/models.

OpenAI

ModelModel IDImage input
GPT-5gpt-5-2025-08-07Yes
GPT-5 minigpt-5-mini-2025-08-07Yes
GPT-5 nanogpt-5-nano-2025-08-07Yes
GPT-4.1gpt-4.1-2025-04-14Yes
GPT-4.1 minigpt-4.1-mini-2025-04-14Yes
GPT-4.1 nanogpt-4.1-nano-2025-04-14Yes

For a full list of models, see https://platform.openai.com/docs/models.

Claude

ModelModel IDImage input
Claude Sonnet 4.5claude-sonnet-4-5-20250929Yes
Claude Sonnet 4claude-sonnet-4-20250514Yes
Claude Haiku 4.5claude-haiku-4-5-20251001Yes
Claude Haiku 3.5claude-3-5-haiku-20241022Yes
Opus 4claude-opus-4-20250514Yes
Opus 4.1claude-opus-4-1-20250805Yes

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:

  1. In the AI Assistant view, select the Settings button.
  2. 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 the Reset button next to the Url field.

Adding, removing, and reorganizing models

In the AI assistant settings dialog:

  • To add another model, select the Plus button 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 the Minus button.
  • To reset the model list to default models, select the Reset button.
  • To move a model up or down, select it and use the Arrow up button and the Arrow down button.

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.jpg in 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 .ui files and instructed to not generate code in them.

Using a prompt to generate content

To generate content with the AI assistant:

  1. In the AI Assistant view, select the model that you want to use from the drop-down menu.
  2. Enter your prompt in the prompt field. If the selected model supports image input, you can also use the Attach image button 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.

  3. Select the Send button 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.