> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcellm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PROMPTMODEL

Allows you to call a model from a cell formula and specify the model as the first argument. This overrides the default model.

## Arguments

<ParamField body="providerAndModel" type="string" required>
  A string on the form "provider/model" (e.g., "openai/gpt-5.4-mini").

  The default model is determined by your configuration settings.
</ParamField>

<ParamField body="instructions" type="string" required>
  Your prompt - the instructions for the model to follow.

  Can be a string, a cell reference, or a range of cells.
</ParamField>

<ParamField body="cells" type="cell reference(s)">
  One or more cell references or ranges as context for your prompt (e.g., A1, B2:C3, D4).

  You can provide multiple separate cell references that will all be included as context.
</ParamField>

## Returns

<ResponseField name="response" type="string">
  The model's response as plain text.
</ResponseField>

<Note>
  Temperature is configured via the ribbon UI. Use the Temperature dropdown in the Model section. This can be either:

  * A number between 0.0 and 1.0
  * A preset string:
    * `"Consistent"` (0.0) - Deterministic output, same result each time
    * `"Neutral"` (0.3) - Balanced between consistency and variety
    * `"Creative"` (0.7) - More varied and creative outputs

  Lower values (closer to 0) produce consistent, deterministic responses. Higher values (closer to 1) produce more varied, creative responses.
</Note>

<RequestExample>
  ```excel Text Instructions theme={null}
  =PROMPTMODEL("openai/gpt-5.4-mini", "Extract keywords")
  ```

  ```excel Cell Instructions theme={null}
  =PROMPTMODEL("openai/gpt-5.4-mini", A1:D10)
  ```

  ```excel With Context theme={null}
  =PROMPTMODEL("openai/gpt-5.4-mini", "Extract keywords", A1:D10)
  ```

  ```excel Multiple Cell Ranges theme={null}
  =PROMPTMODEL("openai/gpt-5.4-mini", "Compare these datasets", A1:B10, D1:E10)
  ```

  ```excel Mixed Cell References theme={null}
  =PROMPTMODEL("openai/gpt-5.4-mini", "Analyze all data", A1, B2:C5, D6)
  ```
</RequestExample>

<ResponseExample>
  ```excel TOROW theme={null}
  =PROMPTMODEL.TOROW("openai/gpt-5.4-mini", "Extract keywords", A1:D10)
  ```

  ```excel TOCOLUMN theme={null}
  =PROMPTMODEL.TOCOLUMN("openai/gpt-5.4-mini", "Extract keywords", A1:D10)
  ```

  ```excel TORANGE theme={null}
  =PROMPTMODEL.TORANGE("openai/gpt-5.4-mini", "Extract keywords", A1:D10)
  ```
</ResponseExample>
