Make me an Ollama model file for an AI Assistant that helps me write Flux Kontext prompts
'Ollama Model File Example'
FROM llama3.2
sets the temperature to 1 [higher is more creative, lower is more coherent]
PARAMETER temperature 1
sets the context window size to 4096, this controls how many tokens the LLM can use as context to generate the next token
PARAMETER num_ctx 4096
sets a custom system message to specify the behavior of the chat assistant
SYSTEM You are Mario from super mario bros, acting as an assistant.
'How to make Kontext Prompts Guide'
Kontext makes editing images easy! Specify what you want to change and Kontext will follow. It is capable of understanding the context of the image, making it easier to edit them without having to describe in details what you want to do.
Basic Object Modifications
Kontext is really good at straightforward object modification, for example if we want to change the colour of an object, we can prompt it.
Input image of a yellow car
Input image
Output image: Yellow car changed to red
Output: Car changed to red
Prompt Precision: From Basic to Comprehensive
As a rule of thumb, making things more explicitly never hurts if the number of instructions per edit is not too complicated.
If you want to edit the image with more modifications, it is useful to be more explicit in your prompts to make sure you get the result you want.
Quick Edits
While using very simple prompts might yield some good results, it can also change the style of the input image.
Prompt: “Change to daytime”
Input image: Painting of a nighttime street scene
Input image
Output 1: Street scene changed to daytime, style altered
Output 1
Output 2: Street scene changed to daytime, different style alteration
Output 2
Controlled Edits
If we add more instructions to our prompt, we can have results which are really similar to the input image.
Prompt: “Change to daytime while maintaining the same style of the painting”
Input image: Painting of a nighttime street scene
Input image
Output image: Street scene changed to daytime, original painting style maintained
Output image
Complex Transformations
If you want to change multiple things on the input image, it is generally good to add as many details as possible as long as the instructions per edit aren’t too complicated.
Prompt: “change the setting to a day time, add a lot of people walking the sidewalk while maintaining the same style of the painting”
Input image: Painting of an empty nighttime street, same as quick_edit_input.jpg
Input image
Output image: Street scene changed to daytime with people, original painting style maintained
Output image
Assistant
User
make it even smarter, absorb the entire guide and retry
Assistant
User
thats all good and all but I want it to make me prompts
Error: (line 10): command must be one of "from", "license", "template", "system", "adapter", "parameter", or "message"
C:\Users\DjZaN>
Assistant
User
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM
You are the Flux Kontext Prompt Expert Assistant. You have deep mastery of crafting, refining, and troubleshooting Flux Kontext prompts for all image editing tasks.
You fully understand Kontext’s editing capabilities, best practices, and common pitfalls.
Your primary goal is to generate clear, precise, and effective Kontext prompts tailored exactly to the user’s described goals.
You can also explain the reasoning behind your prompt suggestions and advise on improvements or alternative approaches if requested.
Assistant
Style transfer
Using prompts
When working on style transfer prompts, follow those principles:
Name the specific style: Instead of vague terms like “make it artistic,” specify exactly what style you want (“Transform to Bauhaus art style,” “Convert to watercolor painting”)
Reference known artists or movements: For more precise results, include recognizable style references (“Renaissance painting style”, “like a 1960s pop art poster”)
Detail the key characteristics: If naming the style doesn’t work, it might be good to describe the visual elements that define the style:
“Transform to oil painting with visible brushstrokes, thick paint texture, and rich color depth”
Preserve what matters: Explicitly state what elements shouldn’t change:
“Change to Bauhaus art style while maintaining the original composition and object placement”
Input image: Symmetrical architectural photo
Input image
Output image: Architectural photo converted to pencil sketch
Converted to pencil sketch
Output image: Architectural photo transformed into an oil painting
Transformed to oil painting
Using Input image
You can also use input images as style references to generate new images. For example with the prompt: “Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table” we get:
Output image using style from reference 1: Tea party
Tea party output 1
Input image for style reference 2: Different stylized image
Style reference 2
Output image using style from reference 2: Tea party
Tea party output 2
Input image for style reference 3: Yet another stylized image
Style reference 3
Output image using style from reference 3: Tea party
Tea party output 3
Transform images into different styles
Kontext lets you transform images in creative ways. On the example below, we restyle our photo into different visual styles and also doing different activities.
If your goal is to dramatically change the input image, it is generally a good idea to do it step by step like the sequence below.
Input image: Photo of a person
Input image
Output image: Person restyled into Claymation style
Restyled to Claymation
Output image: Claymation character picking up weeds in a garden
Character picking up weeds
Iterative editing with Prompts while keeping Character Consistency
Kontext excels at character consistency, even after multiple edits. Starting from a reference picture, we can see that the character is consistent throughout the sequence. The prompts used for each edit are shown in the captions below each image.
Input image: Woman
Input image
Output image: Woman taking a selfie in Freiburg
Remove the object from her face
Output image: Item removed from woman's face
She is now taking a selfie in the streets of Freiburg, it’s a lovely day out.
Output image: Scene with woman now covered in snow
It’s now snowing, everything is covered in snow.
For Character consistency, you can follow this framework to keep the same character across edits:
Establish the reference: Begin by clearly identifying your character
“This person…” or “The woman with short black hair…”
Specify the transformation: Clearly state what aspects are changing
Environment: “…now in a tropical beach setting”
Activity: “…now picking up weeds in a garden”
Style: “Transform to Claymation style while keeping the same person”
Preserve identity markers: Explicitly mention what should remain consistent
“…while maintaining the same facial features, hairstyle, and expression”
“…keeping the same identity and personality”
“…preserving their distinctive appearance”
Common mistake: Using vague references like “her” instead of “The woman with short black hair”
Text Editing
Kontext can directly edit text that appears in images, making it easy to update signs, posters, labels, and more without recreating the entire image.
The most effective way to edit text is using quotation marks around the specific text you want to change:
Prompt Structure: Replace '[original text]' with '[new text]'
Example - We can see below where we have an input image with “Choose joy” written, and we replace “joy” with “BFL” - note the upper case format for BFL.
Input image: Sign saying 'Choose joy'
Input image
Output image: Sign changed to 'Choose BFL'
JOY replaced with BFL
Input image:
Input image
Output image: Text replaced with 'FLUX & JOY'
Sync & Bloom changed to 'FLUX & JOY'
Input image: Montreal Winter Sports
Input image
Output image: Montreal replaced to 'FLUX'
'Montreal' replaced with 'FLUX'
Text Editing Best Practices
Use clear, readable fonts when possible. Complex or stylized fonts may be harder to edit
Specify preservation when needed. For example: “Replace ‘joy’ with ‘BFL’ while maintaining the same font style and color”
Keep text length similar - Dramatically longer or shorter text may affect layout
Visual Cues
It is also possible to use Visual cues to suggest to the model where to make edits. This can be particularly helpful when you want to make targeted changes to specific areas of an image. By providing visual markers or reference points, you can guide the model to focus on particular regions.
Example:: “Add hats in the boxes”
Input image:
Input image
Output image: Add hats in the boxes
Add hats in the boxes
When Results Don’t Match Expectations
General Troubleshooting Tip
If the model is changing elements you want to keep unchanged, be explicit about preservation in your prompt. For example: “everything else should stay black and white” or “maintain all other aspects of the original image.”
Character identity changes too much
When transforming a person (changing their clothing, style, or context), it’s easy to lose their unique identity features if prompts aren’t specific enough.
Try to be more specific about identity markers (“maintain the exact same face, hairstyle, and distinctive features”)
Example: “Transform the man into a viking warrior while preserving his exact facial features, eye color, and facial expression”
Input image: Man
Input image
Output image (vague prompt): Man transformed into a Viking, identity changed
Vague prompt result
Output image (detailed prompt): Man transformed into a Viking, identity preserved
Detailed prompt result
Output image (focused prompt): Man's clothes changed to Viking warrior style, identity perfectly preserved
Focused prompt result
Vague prompts replace identity:
Prompt: “Transform the person into a Viking” → Complete replacement of facial features, hair, and expression
Detailed prompts preserve identity:
Prompt: “Transform the man into a viking warrior while preserving his exact facial features, eye color, and facial expression” → Maintains core identity while changing context
Focused prompts change only what’s needed:
Prompt: “Change the clothes to be a viking warrior” → Keeps perfect identity while only modifying the specified element
Why this happens?
The verb “transform” without qualifiers often signals to Kontext that a complete change is desired. It might be useful to use other words for example in this context if you want to maintain specific aspects of the original image.
Composition Control
When editing backgrounds or scenes, you often want to keep the subject in exactly the same position, scale, and pose. Simple prompts can sometimes change some of those aspects.
Simple prompts causing unwanted changes:
Prompt: “He’s now on a sunny beach” → Subject position and scale shift
Prompt: “Put him on a beach” → Camera angle and framing change
Input image: Person standing
Input image
Output image (simple prompt 'on a sunny beach'): Subject position and scale shifted
Simple beach prompt
Output image (simple prompt 'put him on a beach'): Camera angle and framing changed
Put on beach prompt
Precise prompts maintain exact positioning:
Prompt: “Change the background to a beach while keeping the person in the exact same position, scale, and pose. Maintain identical subject placement, camera angle, framing, and perspective. Only replace the environment around them” → Better preservation of subject
Input image: Person standing (for precise background change)
Input image
Output image (precise prompt): Background changed to beach, subject position preserved
Precise positioning result
Why this happens?
Vague instructions like “put him on a beach” leave too much to interpretation. Kontext might choose to:
Adjust the framing to match typical beach photos
Change the camera angle to show more of the beach
Reposition the subject to better fit the new setting
Style isn’t applying correctly
When applying certain styles, simple prompts might create inconsistent results or lose important elements of the original composition. We could see that in the example above.
Basic style prompts can lose important elements:
Prompt: “Make it a sketch” → While the artistic style is applied, some details are lost.
Precise style prompts maintain structure:
Prompt: “Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture” → Preserves the scene while applying the style. You can see more details in the background, more cars are also appearing on the image.
Input image: Street scene photo
Input image
Output image (basic sketch prompt): Street scene as sketch, some details lost
Basic sketch prompt
Output image (precise sketch prompt): Street scene as detailed pencil sketch
Precise sketch prompt
Best Practices Summary
Be specific: Precise language gives better results. Use exact color names, detailed descriptions, and clear action verbs instead of vague terms.
Start simple: Begin with core changes before adding complexity. Test basic edits first, then build upon successful results. Kontext can handle very well iterative editing, use it.
Preserve intentionally: Explicitly state what should remain unchanged. Use phrases like “while maintaining the same [facial features/composition/lighting]” to protect important elements.
Iterate when needed: Complex transformations often require multiple steps. Break dramatic changes into sequential edits for better control.
Name subjects directly: Use “the woman with short black hair” or “the red car” instead of pronouns like “her”, “it,” or “this” for clearer results.
Use quotation marks for text: Quote the exact text you want to change: Replace 'joy' with 'BFL' works better than general text descriptions.
Control composition explicitly: When changing backgrounds or settings, specify “keep the exact camera angle, position, and framing” to prevent unwanted repositioning.
Choose verbs carefully: “Transform” might imply complete change, while “change the clothes” or “replace the background” gives you more control over what actually changes.
Remember: Making things more explicit never hurts if the number of instructions per edit isn’t too complicated.
Certainly! Here's an Ollama model file for an AI assistant specialized in helping you write Flux Kontext prompts. This assistant is tuned to be creative yet coherent (temperature 1) and with a large context window to handle detailed explanations and multi-step prompt crafting. The system message primes it specifically to assist in formulating, refining, and explaining Kontext prompts with best practices from your guide.
plaintext
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM You are an AI assistant specialized in helping users write effective and precise Flux Kontext prompts for image editing.
You understand Kontext's capabilities deeply: object modifications, style transfers, text editing, composition control, iterative and controlled edits, character consistency, and visual cues.
Your goal is to:
- Help the user create clear, unambiguous, and comprehensive prompts for Kontext.
- Suggest precise wording and structure to maximize the effectiveness of edits.
- Advise on best practices such as preservation of identity, use of quotation marks for text, explicit composition instructions, and scalability of edits.
- Explain the reasoning behind suggestions when asked.
- Provide examples of prompts for different editing scenarios based on user needs.
- Encourage iterative and step-wise prompt refinement for complex tasks.
Always encourage specificity, explicit instructions for preserving unchanged elements, and clarity in identifying subjects.
When you generate prompts, format them clearly, distinguishing input image description from the desired output changes.
You never rewrite or remove the core contextual information of the prompts unless the user asks for it. Instead, you help improve prompt quality for better output.
Be constructive, patient, and clear.
Explanation
FROM llama3.2 — base model.
temperature 1 — strikes a balance between creativity and coherence, useful for prompt writing and explanation.
num_ctx 4096 — lets the model leverage a large context window to understand and generate detailed prompts.
SYSTEM — defines the assistant’s personality and knowledge scope specifically around Flux Kontext prompt best practices, editing styles, iteration, and troubleshooting.
How to use
After loading this model, ask it things like:
"Help me write a prompt to change the background of a photo to a beach but keep the subject's pose exactly the same."
"How can I ensure character consistency when transforming a person into a fantasy style?"
"Give me a detailed iterative prompt for changing a nighttime scene to daytime while keeping the original painting style."
"Explain the best way to edit text on a storefront sign in an image with Kontext."
"Suggest improvements to this prompt: 'Make it a sketch and add a cat'"
Let me know if you want me to generate sample interaction examples or refined prompt templates for specific use cases!
Got it! Here's a much smarter and more comprehensive Ollama model file that fully absorbs your entire Kontext prompt guide and molds the assistant to be an expert AI Flux Kontext Prompt Helper. It deeply integrates all the concepts, best practices, common pitfalls, and example-driven knowledge from your guide into the system message so the assistant can reason with it natively and provide much more nuanced, detailed, and context-sensitive help.
plaintext
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM
You are the Flux Kontext Prompt Expert Assistant, a highly knowledgeable AI specialized in helping users craft, refine, and troubleshoot Flux Kontext prompts for image editing tasks.
You have an exhaustive understanding of Kontext's powerful abilities and limitations, including:
- Basic Object Modifications: changing colors, object attributes in clear, direct terms.
- Prompt Precision: importance of explicitness, clarity, and balanced complexity in instructions.
- Quick Edits versus Controlled Edits: how simple prompts may alter styles unintentionally; adding preservation clauses.
- Complex Transformations: guiding users to break down multi-part edits explicitly but without overwhelming complexity.
- Style Transfer Techniques: naming exact styles, referencing artists, describing key visual characteristics, and preserving core composition.
- Using Input Images as Style References: instructing on how to use reference images to guide style.
- Iterative Editing & Character Consistency: the critical framework for maintaining identity, appearance, and personality across edits; use of explicit identity markers.
- Text Editing Best Practices: quoting target text, preserving font/style/color, maintaining similar length, and avoiding layout breakage.
- Visual Cues: leveraging markers or boxes to localize edits.
- Troubleshooting Common Issues: vague vs precise language effects on identity, style, or composition changes.
- Composition Control: how to maintain exact position, scale, pose, camera angle, and framing when making scene background changes.
- Best Practice Summary: specificity, starting simple, preservation clauses, iteration, using direct subject references instead of pronouns, using careful verbs, and explicit instructions.
As the assistant, follow these rules:
1. Always advise using clear, explicit, and precise language in prompts.
2. Encourage using explicit preservation clauses for any elements the user wants unchanged.
3. Recommend breaking complex edits into smaller sequential prompts for better control.
4. Instruct users to identify subjects precisely (“the woman with short black hair”) to avoid ambiguity.
5. Highlight the difference in verb usage (e.g., “transform” implies complete change; “change clothes” implies partial change).
6. When editing text, insist on using quotations and specifying style preservation.
7. Advise users on how to localize edits with visual cues if necessary.
8. Always offer example prompts tailored to user requests or scenarios, demonstrating best practice prompt structure.
9. Be ready to explain underlying rationale behind prompt suggestions or troubleshooting steps.
10. Maintain a patient, clear, and expert tone throughout.
You never replace the user’s intent but help improve and refine prompts for maximum effectiveness with Kontext. You understand the importance of context and iteration and will guide users accordingly.
You are the Flux Kontext prompt engineer and tutor, empowering users to unlock Kontext’s full creative and editing potential through expert prompt design guidance.
---
This model will now deeply understand the full guide context and best practices (from precise vocabulary, preservation, composition, text editing, style transfer, iterative control, character consistency), and provide expert step-by-step suggestions, explanations, and example refinement.
If you want I can provide example conversations demonstrating how this enhanced assistant responds to typical requests — just ask!
Understood! I'll enhance that Ollama model file so it actively writes or improves Flux Kontext prompts on demand, based on detailed user inputs or editing goals. It’ll act as both an expert tutor and a prompt generator.
Here’s the full refined Ollama model file that incorporates your entire Kontext guide and prioritizes prompt generation — it will generate, improve, and explain fully-detailed Flux Kontext prompts tailored to user scenarios.
plaintext
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM
You are the Flux Kontext Prompt Expert Assistant. You have deep mastery of crafting, refining, and troubleshooting Flux Kontext prompts for all image editing tasks.
You fully understand Kontext’s editing capabilities, best practices, and common pitfalls.
Your primary goal is to **generate clear, precise, and effective Kontext prompts** tailored exactly to the user’s described goals.
You can also explain the reasoning behind your prompt suggestions and advise on improvements or alternative approaches if requested.
When you generate prompts:
- Use explicit, unambiguous language that maximizes Kontext’s understanding.
- Be detailed in naming subjects, actions, styles, and elements to preserve.
- Include preservation clauses to keep attributes unchanged when necessary.
- Use quote marks around text to be edited and specify font/style/color preservation if needed.
- Suggest iterative or step-wise prompt sequences for complex edits.
- Use controlled verbs like “change,” “replace,” or “transform” carefully as described in best practices.
- Incorporate visual cue instructions if user wants localized edits.
- When user gives a partially formed prompt, improve clarity, precision, and effectiveness.
- Provide multiple prompt variants for different levels of edit control (quick/basic, controlled, detailed).
- Format prompts clearly with input image descriptions and desired output changes separated.
- Suggest troubleshooting tips if the user’s prompt risks undesired results.
You can also produce example prompts for:
- Basic and complex object modifications
- Style transfers with artist or style references
- Text editing that preserves font and layout
- Composition control to maintain subject placement
- Iterative editing with consistent character identity
- Visual cue based targeted edits
Always ask clarifying questions if the user’s goal is ambiguous to generate the best prompt.
Be proactive in helping users get the best possible Kontext prompts that yield accurate, controlled, and aesthetically pleasing image edits.
You are a friendly, detailed, and expert prompt engineer who helps users unlock the full power of Flux Kontext through superior prompt design.
---
How to interact with this assistant:
You: “Write me a prompt to change a yellow car to red without affecting the background.”
Assistant: Generates a clear, detailed prompt including preservation instructions.
You: “Help me improve this prompt: ‘Make it a sketch and add a cat’.”
Assistant: Suggests clearer, more precise prompt variants with style detail and composition control.
You: “Create a step-by-step prompt sequence to change a night scene to day, keep the style, and add people.”
Assistant: Produces ordered prompts that are progressive and easy to use.
Let me know if you want me to generate some sample prompt outputs or help with a concrete example right now!
The error message:
code
(line 10): command must be one of "from", "license", "template", "system", "adapter", "parameter", or "message"
indicates there's something wrong with your model file syntax around line 10. In the Ollama model file, only specific keywords are allowed such as FROM, PARAMETER, SYSTEM, etc. Using unrecognized keywords or malformed lines will cause errors.
Most common reasons for this error:
You wrote the keyword SYSTEM in lowercase or with a trailing colon (e.g., SYSTEM:).
You wrote a comment with a hash # in a place not supported.
You used a keyword or line that Ollama CLI does not recognize on line 10.
The line is empty or contains only whitespace but the parser expects a command.
How to fix:
Make sure your model file looks like this exactly (example):
plaintext
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM You are the Flux Kontext Prompt Expert Assistant...
Notes:
All keywords must be uppercase: FROM, PARAMETER, SYSTEM (not from, parameter, system).
Remove any # comments; Ollama currently does not support comments inside model files.
The SYSTEM command must be followed by a single line or at least you must keep the entire system message on the same line or use line continuation carefully (usually the system message is a single line with paragraphs separated by escape characters if supported, but to be safe keep it one line or simple).
Your current error says line 10 is wrong
Check line 10 in your model file. Potentially, you have a line that starts with # or a malformed command or a blank line.
Minimal working example:
Create a file model.txt with exactly:
plaintext
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM You are Flux Kontext Prompt Expert. Help me write great prompts.
Then run:
bash
ollama create choose-a-model-name -f model.txt
Summary checklist:
Use uppercase for commands (FROM, PARAMETER, SYSTEM).
No comments (#)—remove all.
Put the system message on one continuous line.
No extra blank lines or lines starting with unsupported keywords.
No colon : after commands (e.g., use SYSTEM, not SYSTEM:).
The commands must be exactly one of the allowed set per line.
If you want, you can post your exact model file content here, and I can review it line-by-line for you.
Bonus - example minimal full file from your detailed request:
plaintext
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM You are the Flux Kontext Prompt Expert Assistant. You generate precise, detailed Kontext prompts on user request, following best practices for clarity, preservation, and composition control. Always be explicit, name subjects clearly, and help users break down complex edits into iterative steps.
Save this as a .txt, then run your ollama create command with this file.
Let me know if you want me to generate a corrected full model file text version ready to save and run!
When you generate prompts:
Use explicit, unambiguous language that maximizes Kontext’s understanding.
Be detailed in naming subjects, actions, styles, and elements to preserve.
Include preservation clauses to keep attributes unchanged when necessary.
Use quote marks around text to be edited and specify font/style/color preservation if needed.
Suggest iterative or step-wise prompt sequences for complex edits.
Use controlled verbs like “change,” “replace,” or “transform” carefully as described in best practices.
Incorporate visual cue instructions if user wants localized edits.
When user gives a partially formed prompt, improve clarity, precision, and effectiveness.
Provide multiple prompt variants for different levels of edit control (quick/basic, controlled, detailed).
Format prompts clearly with input image descriptions and desired output changes separated.
Suggest troubleshooting tips if the user’s prompt risks undesired results.
You can also produce example prompts for:
Basic and complex object modifications
Style transfers with artist or style references
Text editing that preserves font and layout
Composition control to maintain subject placement
Iterative editing with consistent character identity
Visual cue based targeted edits
Always ask clarifying questions if the user’s goal is ambiguous to generate the best prompt.
Be proactive in helping users get the best possible Kontext prompts that yield accurate, controlled, and aesthetically pleasing image edits.
You are a friendly, detailed, and expert prompt engineer who helps users unlock the full power of Flux Kontext through superior prompt design.
The issue is that Ollama expects the SYSTEM command and its entire message all in one single line (or effectively no blank lines between SYSTEM and the text). Ollama's model files don't support multi-line SYSTEM commands without special formatting. Also, Ollama does not support markdown or bullet lists inside SYSTEM beyond plain text.
How to fix:
Remove the blank line right after SYSTEM.
Put the entire SYSTEM message as a single paragraph (no line breaks).
Avoid trailing dashes --- at the end; remove or comment out.
Example corrected minimal working file version of your input:
plaintext
FROM llama3.2
PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM You are the Flux Kontext Prompt Expert Assistant. You have deep mastery of crafting, refining, and troubleshooting Flux Kontext prompts for all image editing tasks. You fully understand Kontext’s editing capabilities, best practices, and common pitfalls. Your primary goal is to generate clear, precise, and effective Kontext prompts tailored exactly to the user’s described goals. You can also explain the reasoning behind your prompt suggestions and advise on improvements or alternative approaches if requested. When you generate prompts, use explicit, unambiguous language that maximizes Kontext’s understanding. Be detailed in naming subjects, actions, styles, and elements to preserve. Include preservation clauses to keep attributes unchanged when necessary. Use quote marks around text to be edited and specify font, style, and color preservation if needed. Suggest iterative or step-wise prompt sequences for complex edits. Use controlled verbs like "change", "replace", or "transform" carefully as described in best practices. Incorporate visual cue instructions if the user wants localized edits. When the user gives a partially formed prompt, improve clarity, precision, and effectiveness. Provide multiple prompt variants for different levels of edit control. Format prompts clearly with input image descriptions and desired output changes separated. Suggest troubleshooting tips if the user’s prompt risks undesired results. You can also produce example prompts for basic and complex object modifications, style transfers with artist or style references, text editing that preserves font and layout, composition control to maintain subject placement, iterative editing with consistent character identity, and visual cue based targeted edits. Always ask clarifying questions if the user’s goal is ambiguous to generate the best prompt. Be proactive in helping users get the best possible Kontext prompts that yield accurate, controlled, and aesthetically pleasing image edits. You are a friendly, detailed, and expert prompt engineer who helps users unlock the full power of Flux Kontext through superior prompt design.
Why?
Ollama’s model file parser expects SYSTEM command on one line with the entire message following it directly.
It does not parse multi-line or markdown in system blocks.
It does not accept blank lines or lists/bullet points in the model definition.
What you can do next
Save the above model file as your_model_name.txt.
Run your ollama create command pointing to that file.
Then interact with your model by asking for Flux Kontext prompts; it will respond with well-formed prompt suggestions.
If you want to keep the system prompt human-readable or split, you must preprocess to join the lines into one line before submitting.
Feel free to ask if you want me to prepare a script to convert your multi-line system message to a single-line supported syntax automatically!