Skip to content

Guides · Agent

Connect a text model

Connect a text model with your own API key or a subscription account in Settings, for the creative Agent, text nodes and the Director assistant

The creative Agent, text nodes and the Director assistant in the Director Stage all use the text model you connect. There are two ways: enter an API key, or sign in to a subscription you already have. Either takes a few minutes, and chatting with them uses no MiaoImg credits; the cost is covered by your own service quota or subscription

Open the text model settings

  1. Click “Settings” at the bottom of the rail or of the canvas left rail
  2. In the “AI” group on the left choose “Text models”
  3. The page has three blocks: “Default model”, “Model configuration” and “Accounts”

Way one: an API key

  1. Click “Add configuration” at the top right of “Model configuration” to open “Choose a model service”
  2. Search in “Search services, plans or models”, filter with “All protocols”, and switch between “All”, “Account sign-in” and “Local models”; common choices are OpenAI, Anthropic, DeepSeek, Kimi, Zhipu GLM and Qwen, and for local use Ollama and LM Studio
  3. Click a service to reach “Connection”; rename it in “Name” to something recognizable, for example “My DeepSeek”; the “API URL” is filled in from the preset, and if you have no key yet use “Get an API key” or “Visit website”
  4. Paste the key into “Paste API Key”, click “Load model list”, and tick what you want under “Added models”; if the list cannot be loaded, type a model ID and press Return, for example deepseek-chat
  5. Each model has “Display name”, “Context length” and “Max output”; switch on “Image input” for a model that can see pictures, so the Agent can look at your references
  6. Click “Save”; back in the list click “Test connection” on the configuration, and once you see “Connection successful” it is ready
Add a configuration, paste an API key and pick a modelAdd a configuration, paste an API key and pick a modelAdd a configuration, paste an API key and pick a model
Add a configuration, paste an API key and pick a model

Your service is not listed? “Set up manually” at the bottom takes any service that speaks the OpenAI, Anthropic or Gemini protocol: choose the “Connection protocol”, then enter the “API URL” and the key

Tip: the API key stays on this device only; use “Edit” on a configuration to change it, and leave the field blank to keep the saved key

Way two: sign in to a subscription

If you already subscribe to a model service you can use that account’s quota without creating an API key:

  1. In “Accounts” open the service you want to sign in to, for example a ChatGPT subscription, Claude, Gemini or GitHub Copilot
  2. Click “Sign in”; your system browser opens the sign-in page, finish signing in there and you return to MiaoImg automatically, with no need to close the window
  3. If the browser does not open, click “Reopen sign-in page” or paste the authorization code as prompted; a ChatGPT subscription also offers “Use a device code”, where you type the code shown on the page into your browser
  4. After a successful sign-in the account appears in the list; click “Create configuration”, choose models, and the account becomes a model configuration
  5. To add another account click “Add another account”; “More actions” on an account row offers “Make default”, “Refresh usage”, “Rename” and delete
Sign in with an existing subscription and create a model configuration
Sign in with an existing subscription and create a model configuration

A quota bar such as “N% remaining” appears beside the account; when you see “Signed out” click “Sign in again”; an account in use by a configuration can only be deleted after that configuration is removed

Choose the default model

  1. The “Default model” dropdown at the top lists every model across your configurations; choose one as the default for new chats and new text nodes
  2. Models that can think have a “Reasoning” level next to them; higher is slower, so raise it only for complex tasks
  3. In a chat you can also switch models temporarily with the model picker in the input bar

Manage and troubleshoot

What you seeWhat to do
The “No API key” tagEdit the configuration, add the key and “Test connection”
“Could not load”Check the API URL and key, or skip loading and type a model ID by hand
“The previous model is no longer available. Confirm the model and try again.”The configuration behind the default model was deleted; pick another
The Director assistant says the model cannot see imagesTurn on “Image input” for that model, or choose a model that can see images
Delete a configurationClick the trash can on it; chats that use it will need a new model

Next steps