---
title: "Get project model grant"
method: GET
path: "/orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}"
tags: ["Models"]
---

# Get project model grant

`GET /orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session`

Returns one of the project's model grants with its overrides.

## Path parameters

- `orgID` string, required
- `projectID` string, required
- `modelGrantID` string, required

## Response `200`

The model grant.

- ProjectModelGrantEnvelope
  - `grant` ProjectModelGrant, required
    - `id` string, required
    - `org_id` string, required
    - `project_id` string, required: Project ID (proj_...).
    - `configured_model_id` string, required
    - `context_window_tokens` integer, nullable: Project context budget for input and output tokens, or omitted/null to inherit from the configured model. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.
    - `max_output_tokens` integer, nullable: Project output-token ceiling, or omitted/null to inherit from the configured model.
    - `default_max_output_tokens` integer, nullable: Project default per-request output-token cap, or omitted/null to inherit from the configured model.
    - `default_cache_retention` 'none' | 'short' | 'long': Prompt-cache preference for model requests; `short` when omitted. `short` applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. `long` prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like `short` elsewhere. `none` sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.
    - `supports_tools` boolean, nullable: Project-level tool-use override, or omitted/null to inherit from the configured model.
    - `supports_reasoning` boolean, nullable: Project-level reasoning override, or omitted/null to inherit from the configured model.
    - `default_reasoning_effort` string: Project default reasoning effort, or omitted/empty to inherit from the configured model.
    - `supported_reasoning_efforts` string[], required: Project subset of configured-model reasoning efforts. Empty means inherit. When non-empty, default_reasoning_effort must resolve to one of these values.
    - `input_modalities` string[], required: Project subset of configured-model input types (text, image, or file). Empty means inherit.
    - `output_modalities` string[], required: Project subset of configured-model output types. Empty means inherit.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-11-06** `63a75cbc7e95`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/projects/:projectID/model-grants/:modelGrantID/get.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
