Why Multimodal Models Sometimes Generate Images and Sometimes Refuse
The same request to “generate an image” can return a picture one time and only text—or a claim that the model cannot generate images—the next. This article explains why that happens across intent routing, capability switches, safety checks, tool availability, context, and response formats, and how to make image generation more predictable in an engineering pipeline.
Many developers see a puzzling pattern when they integrate or use a multimodal assistant: the same request, “generate an image,” sometimes returns an image and sometimes only a written explanation, or even a reply such as “I am a language model and cannot generate images.” That inconsistency is not simply the model “acting up.” It is the combined result of several stages in a multimodal application pipeline. A basic fact helps explain it: text from a chat model and pixels from an image-generation service are often not the same channel. What the user sees as “one assistant” may be a combination of intent recognition, tool routing, safety review, image generation, and post-processing.
Image generation is not a language model’s default action
In practice, multimodal capability is usually implemented in one of two ways. One is native multimodal output, where the same inference process can produce text or images. The more common approach is a tool-augmented architecture: a language model plus an image-generation tool. The language model understands intent, fills in parameters, and organizes the call; the image service actually generates the image. In that setup, the language model does not “draw pixels” itself. It must trigger a tool call. If the tool is off, routing misses, permissions are insufficient, or the call fails, the reply falls back to text. Saying “I am a language model” may only be a low-conflict fallback phrase. It does not prove that image generation is entirely unavailable.
Whether a request can produce an image therefore depends on more than the model name. It depends on whether the current session has an image output channel, and whether the request is routed to that channel correctly.
Why the same request gets different results
1. Product entry points and capability switches differ
The same model capability may be exposed through different entry points. Some enable image generation by default; others offer text chat only. Some sessions require a manual mode switch; some APIs require an explicit tool or capability type. If a natural-language request is sent to a text-only channel, the model can only answer in text. Do not rely on the model to guess what the entry point supports. On the caller side, state explicitly that image output is required, and check capability switches, quotas, and permissions in the session configuration.
2. Intent recognition and tool routing are unstable
A multimodal assistant often has tools for text answers, image generation, search, code execution, and more. A router chooses a tool from the user input, context, and past behavior. When the request is short, ambiguous, or the conversation leans toward advice, the router may treat it as “explain how to generate an image” rather than “generate one now.” “Can you generate a poster?” can be either a capability question or a generation instruction. Use structured instructions, for example: “Task type: image generation; subject: …; style: …; size: …; if parameters are missing, ask for them; do not only explain your identity.” In the orchestration layer, prefer explicit tool selection over relying entirely on natural-language intent classification.
3. Safety and compliance filters can trigger
Image generation involves risks such as copyright, portraits, sensitive content, and violent or sexual material. Review may run before generation, after generation, or at both stages. The same prompt can be scored differently across contexts because of review thresholds, added description, or conversation history. When a request is blocked, models often use a uniform refusal such as “I am a language model” or “I can’t help with that,” so users mistake a policy block for a missing capability. Separate safety refusals from unavailable capabilities: return a clear result type and reason code, and do not disguise a safety-policy outcome as a model-capability problem.
4. Context and self-description can be misleading
In a multi-turn conversation, earlier instructions such as “text only” or “give a plan, do not execute” can override later requests. A model’s self-description also comes from training data. It may not reliably know whether the current tool is available or whether the current entry point has an image channel. “I am a language model” should be treated as a reply template, not as a capability statement. Use the system prompt and calling protocol to be explicit: if the image tool is available, generate directly; if it is not, return a structured error instead of explaining identity.
5. Tool availability and variability
An image service can be affected by rate limits, timeouts, gradual rollouts, version differences, and queue congestion. If orchestration falls straight back to a text answer after one failed call, users see “sometimes it works, sometimes it doesn’t.” Planning steps before generation, prompt expansion, and random sampling also make results less than identical. Distinguish retryable errors from non-retryable ones: retry timeouts and temporary unavailability with exponential backoff; do not blindly retry safety blocks or missing parameters.
6. Output channels and response-format constraints
If an API requires plain text only, or the client can render only text, an image cannot be returned even when the model can generate one. Some calling modes accept only text results, so an image result is dropped or downgraded to a link description. Use a consistent result protocol, for example type=image, type=text, and type=error, and make sure the client, logs, and post-processing can all recognize it.
Making image generation predictable
First, make the prompt state the task and the fallback. Write “generate an image” as an explicit task and include subject, style, composition, size, count, and similar parameters. On failure, return missing parameters or an error code rather than an identity explanation. Second, make orchestration explicit. Use a tool-selection parameter instead of letting the model guess, and review before generation instead of refusing only afterward. Third, define retry and degradation. If the tool is unavailable, retry and finally return that the image service is temporarily unavailable; for a safety refusal, return a compliance message directly. Fourth, add observability. Logs should at least record the request ID, intent classification, routing result, capability switch, safety labels, tool status, latency, and result type, so you can see which stage produced different outcomes for the same request.
A generic pseudocode sketch:
def handle_request(req, session, config):intent = classify_intent(req, session)if intent.type != "image_generation":return text_model_answer(req)if not config.image_generation_enabled:return result("text", code="IMAGE_DISABLED",message="Image generation is not enabled for this session")audit = safety_check(req, session)if audit.blocked:return result("text", code="SAFETY_BLOCKED",message="The request does not meet content policy")plan = build_image_plan(req) # subject, style, size, count, and so onif plan.missing_params:return result("text", code="NEED_PARAM",message="Please provide: " + plan.missing_params)for attempt in range(config.max_retries):try:image = image_service_generate(plan)return result("image", url=image.url, meta=image.meta)except TemporaryToolError:backoff(attempt)except InvalidPlanError as e:return result("text", code="INVALID_PLAN", message=str(e))return result("text", code="IMAGE_TOOL_DOWN",message="The image service is temporarily unavailable. Please try again later")
The sketch follows three principles: check the capability switch first, run safety review up front, and keep error types distinct. Temporary tool errors can be retried; safety blocks and missing parameters should not.
Conclusion
“Sometimes it generates an image, sometimes it says it is a language model” is not a mystery. It is an observable outcome of capability switches, intent routing, safety policy, conversation state, tool availability, and the output protocol working together. Treat image generation as an explicit engineering path rather than something the model should guess. Explicit capability declarations, structured prompts, tool-level routing, classified retries, clear error codes, and complete logs can sharply reduce that uncertainty and make multimodal behavior more stable, explainable, and maintainable.
