Get inference policy

inferencePolicy(projectReference: String!): InferencePolicy!

Requires project.settings.manage.

Arguments

ArgumentTypeRequiredDescription
projectReferenceString!YesProject ID or slug. Requires a signed-in project administrator. API keys are rejected regardless of their scopes, including project-scoped keys.

Response

Returns InferencePolicy!. Open the type for its fields and nested types.

FieldTypeDescription
projectIdID!
configuredBoolean!Whether the project states a policy. False returns the defaults the project is served under: EU-only, with an eu-resident minimum tier, while the EU default is on; every allowed model once it has ended.
enforcedBoolean!
createdAtString
updatedAtString
updatedByID
modelsModelRule!Models the project itself allows and denies. They only narrow its account.
defaultModelStringThe project's own default model. Null uses the account default, then the built-in default.

All fields of InferencePolicy.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query InferencePolicy($projectReference: String!) {
  inferencePolicy(projectReference: $projectReference) {
    projectId
    createdAt
    updatedAt
    configured
    defaultModel
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001"
}