Create a customized Ollama model from an existing one with POST /api/create (system prompt, params, quantization)

domain: ollama.com · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. POST http://localhost:11434/api/create with {"model": "mario", "from": "llama3.2", "system": "You are Mario from Super Mario Bros."}.
  2. Optionally add parameters (a dict of Modelfile parameters like temperature, num_ctx, stop), template, license, and messages (seed conversation).
  3. The response streams status objects ({"status":"reading model metadata"}, layer writes, {"status":"writing manifest"}) ending in {"status":"success"}; pass stream:false for a single final object.
  4. To quantize a float16 model, POST /api/create with {"model": "llama3.2:quantized", "from": "llama3.2:3b-instruct-fp16", "quantize": "q4_K_M"} — recommended types are q4_K_M and q8_0 (q4_K_S also supported).
  5. Verify with GET /api/tags and test with a normal /api/generate call.

Known gotchas

Related routes

Generate a one-shot (non-streaming) completion from a local Ollama model via POST /api/generate
ollama.com · 5 steps · unrated
Generate embeddings with Ollama POST /api/embed (single or batched input) and avoid the legacy /api/embeddings shape
ollama.com · 4 steps · unrated
Inspect an Ollama model's template, parameters, capabilities, and metadata with POST /api/show
ollama.com · 5 steps · unrated

Give your agent this knowledge — and 18,200+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans