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
- Click “Settings” at the bottom of the rail or of the canvas left rail
- In the “AI” group on the left choose “Text models”
- The page has three blocks: “Default model”, “Model configuration” and “Accounts”
Way one: an API key
- Click “Add configuration” at the top right of “Model configuration” to open “Choose a model service”
- 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
- 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”
- 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
- 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
- Click “Save”; back in the list click “Test connection” on the configuration, and once you see “Connection successful” it is ready



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:
- In “Accounts” open the service you want to sign in to, for example a ChatGPT subscription, Claude, Gemini or GitHub Copilot
- 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
- 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
- After a successful sign-in the account appears in the list; click “Create configuration”, choose models, and the account becomes a model configuration
- To add another account click “Add another account”; “More actions” on an account row offers “Make default”, “Refresh usage”, “Rename” and delete

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
- 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
- Models that can think have a “Reasoning” level next to them; higher is slower, so raise it only for complex tasks
- In a chat you can also switch models temporarily with the model picker in the input bar
Manage and troubleshoot
| What you see | What to do |
|---|---|
| The “No API key” tag | Edit 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 images | Turn on “Image input” for that model, or choose a model that can see images |
| Delete a configuration | Click the trash can on it; chats that use it will need a new model |
Next steps
- Giving the Agent tasks
- Meet the creative Agent
- Writing for text nodes and prompts: Prompts