Skip to main content
POST
Create project model grant

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required
Pattern: ^org_[a-z2-7]{26}$
projectID
string
required
Pattern: ^proj_[a-z2-7]{26}$

Body

application/json

Grant a project access to a configured model. Optional fields can narrow the model's limits for this project; omitted fields inherit from the org-level configured model.

configured_model_id
string
required
Pattern: ^mdl_[a-z2-7]{26}$
context_window_tokens
integer

Optional project token-window limit. Cannot exceed the configured model's current limit.

Required range: 2 <= x <= 2147483647
max_output_tokens
integer

Optional project output-token ceiling. Cannot exceed the configured model's ceiling.

Required range: 1 <= x <= 2147483647
default_max_output_tokens
integer

Optional project default per-request output-token cap.

Required range: 1 <= x <= 2147483647
default_cache_retention
enum<string>

Default prompt-cache hint for model requests. none means Omnara does not send a cache hint; providers may still apply their own automatic caching. short and long are translated to the closest supported control for the selected API.

Available options:
none,
short,
long
supports_tools
boolean

Optional project-level tool-use gate. Can disable tools, but cannot enable tools when the configured model does not support them.

supports_reasoning
boolean

Optional project-level reasoning gate. Can disable reasoning, but cannot enable reasoning when the configured model does not support it.

default_reasoning_effort
string

Optional project default reasoning effort.

supported_reasoning_efforts
string[]

Optional project subset of configured-model reasoning efforts. If this excludes the inherited default_reasoning_effort, set default_reasoning_effort on the grant too.

input_modalities
string[]

Optional project subset of configured-model input types (text, image, or file). Empty or omitted means inherit.

output_modalities
string[]

Optional project subset of configured-model output types. Empty or omitted means inherit.

Response

Route response.

grant
object
required