Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Ollama → generate_completion_ollama_api_generate_post

AI-generated

Summary

Send a POST request to the Ollama API's /ollama/api/generate endpoint to generate text completions using a specified model and prompt, optionally customizing the request with additional parameters.

Inputs

  • skipAuthentication — Optionally skip including authentication in the request; defaults to false.
  • method — HTTP method to use; for this operation, POST is typical.
  • queryParameters — Optional query parameter 'url_idx' as a string to include in the request URL.
  • mediaType — Specifies content type, defaults to 'application/json'.
  • requestBody (required) — JSON body containing parameters such as 'model' (string, required) and 'prompt' (string, required), along with optional fields like 'suffix', 'images', 'format', 'options', 'system', 'template', 'context', 'stream', 'raw', and 'keep_alive'.

Output shape

a JSON response returned from the Ollama API representing the generated completion result.

The response shape depends on the Ollama API output schema. Authentication is included unless skipped. The request requires a valid 'model' and 'prompt' in the request body. Optional query parameter 'url_idx' may be included.

Links

Discussion