curl --request PUT \
--url https://api.veryfront.com/projects/{project_reference}/inference-policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed_jurisdictions": [
"<string>"
],
"allowed_host_ids": [
"<string>"
],
"denied_host_ids": [
"<string>"
],
"allowed_models": [
"<string>"
],
"denied_models": [
"<string>"
]
}
'import requests
url = "https://api.veryfront.com/projects/{project_reference}/inference-policy"
payload = {
"allowed_jurisdictions": ["<string>"],
"allowed_host_ids": ["<string>"],
"denied_host_ids": ["<string>"],
"allowed_models": ["<string>"],
"denied_models": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowed_jurisdictions: ['<string>'],
allowed_host_ids: ['<string>'],
denied_host_ids: ['<string>'],
allowed_models: ['<string>'],
denied_models: ['<string>']
})
};
fetch('https://api.veryfront.com/projects/{project_reference}/inference-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.veryfront.com/projects/{project_reference}/inference-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'allowed_jurisdictions' => [
'<string>'
],
'allowed_host_ids' => [
'<string>'
],
'denied_host_ids' => [
'<string>'
],
'allowed_models' => [
'<string>'
],
'denied_models' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.veryfront.com/projects/{project_reference}/inference-policy"
payload := strings.NewReader("{\n \"allowed_jurisdictions\": [\n \"<string>\"\n ],\n \"allowed_host_ids\": [\n \"<string>\"\n ],\n \"denied_host_ids\": [\n \"<string>\"\n ],\n \"allowed_models\": [\n \"<string>\"\n ],\n \"denied_models\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.veryfront.com/projects/{project_reference}/inference-policy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"allowed_jurisdictions\": [\n \"<string>\"\n ],\n \"allowed_host_ids\": [\n \"<string>\"\n ],\n \"denied_host_ids\": [\n \"<string>\"\n ],\n \"allowed_models\": [\n \"<string>\"\n ],\n \"denied_models\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.veryfront.com/projects/{project_reference}/inference-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowed_jurisdictions\": [\n \"<string>\"\n ],\n \"allowed_host_ids\": [\n \"<string>\"\n ],\n \"denied_host_ids\": [\n \"<string>\"\n ],\n \"allowed_models\": [\n \"<string>\"\n ],\n \"denied_models\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"configured": true,
"enforced": true,
"min_tier": "<string>",
"min_quantization": "<string>",
"allowed_jurisdictions": [
"<string>"
],
"allowed_host_ids": [
"<string>"
],
"denied_host_ids": [
"<string>"
],
"allowed_models": [
"<string>"
],
"denied_models": [
"<string>"
],
"standard_tier_opt_in_at": "<string>",
"standard_tier_opt_in_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"standard_tier_opt_in_source": "<string>",
"allow_non_eu_hosting": true,
"created_at": "<string>",
"updated_at": "<string>",
"updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}Replace project inference policy
Replace the project’s inference constraints with the request body. Omitted constraints are removed; this operation does not merge fields with the existing policy.
Recorded standard-tier consent is preserved. Before setting min_tier to standard, record consent through the standard-tier opt-in endpoint. After consent is recorded, you can set standard as the minimum tier through this endpoint.
The audit record identifies the caller who made the change. Sign in as a project administrator to use this endpoint. API keys are rejected regardless of their scopes.
curl --request PUT \
--url https://api.veryfront.com/projects/{project_reference}/inference-policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowed_jurisdictions": [
"<string>"
],
"allowed_host_ids": [
"<string>"
],
"denied_host_ids": [
"<string>"
],
"allowed_models": [
"<string>"
],
"denied_models": [
"<string>"
]
}
'import requests
url = "https://api.veryfront.com/projects/{project_reference}/inference-policy"
payload = {
"allowed_jurisdictions": ["<string>"],
"allowed_host_ids": ["<string>"],
"denied_host_ids": ["<string>"],
"allowed_models": ["<string>"],
"denied_models": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowed_jurisdictions: ['<string>'],
allowed_host_ids: ['<string>'],
denied_host_ids: ['<string>'],
allowed_models: ['<string>'],
denied_models: ['<string>']
})
};
fetch('https://api.veryfront.com/projects/{project_reference}/inference-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.veryfront.com/projects/{project_reference}/inference-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'allowed_jurisdictions' => [
'<string>'
],
'allowed_host_ids' => [
'<string>'
],
'denied_host_ids' => [
'<string>'
],
'allowed_models' => [
'<string>'
],
'denied_models' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.veryfront.com/projects/{project_reference}/inference-policy"
payload := strings.NewReader("{\n \"allowed_jurisdictions\": [\n \"<string>\"\n ],\n \"allowed_host_ids\": [\n \"<string>\"\n ],\n \"denied_host_ids\": [\n \"<string>\"\n ],\n \"allowed_models\": [\n \"<string>\"\n ],\n \"denied_models\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.veryfront.com/projects/{project_reference}/inference-policy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"allowed_jurisdictions\": [\n \"<string>\"\n ],\n \"allowed_host_ids\": [\n \"<string>\"\n ],\n \"denied_host_ids\": [\n \"<string>\"\n ],\n \"allowed_models\": [\n \"<string>\"\n ],\n \"denied_models\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.veryfront.com/projects/{project_reference}/inference-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowed_jurisdictions\": [\n \"<string>\"\n ],\n \"allowed_host_ids\": [\n \"<string>\"\n ],\n \"denied_host_ids\": [\n \"<string>\"\n ],\n \"allowed_models\": [\n \"<string>\"\n ],\n \"denied_models\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"configured": true,
"enforced": true,
"min_tier": "<string>",
"min_quantization": "<string>",
"allowed_jurisdictions": [
"<string>"
],
"allowed_host_ids": [
"<string>"
],
"denied_host_ids": [
"<string>"
],
"allowed_models": [
"<string>"
],
"denied_models": [
"<string>"
],
"standard_tier_opt_in_at": "<string>",
"standard_tier_opt_in_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"standard_tier_opt_in_source": "<string>",
"allow_non_eu_hosting": true,
"created_at": "<string>",
"updated_at": "<string>",
"updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}{
"type": "https://api.veryfront.com/errors/validation-failed",
"title": "Validation Failed",
"status": 400,
"idempotency": {
"state": "in_progress",
"operation": "<string>",
"retryable": true,
"retry_after_seconds": 1,
"expires_at": "<string>",
"recovery": {
"available": true,
"description": "<string>",
"resource_url": "<string>"
}
},
"code": "RUN_INVALID_INPUT",
"detail": "The 'email' field must be a valid email address",
"instance": "/projects/my-project/members",
"slug": "validation-failed",
"category": "VALIDATION",
"suggestion": "Check the request body and query parameters against the API documentation.",
"errors": [
{
"field": "email",
"message": "Invalid email format",
"code": "INVALID_FORMAT"
}
]
}Authorizations
Use a JWT bearer token or a Veryfront API key in the Authorization header.
Path Parameters
Project slug, UUID, or domain that identifies the project.
Body
Minimum sovereignty tier. Null is served as eu-resident: every project is EU-only by default. standard is the lowest tier and admits hosting outside the EU. Before setting standard, record consent through POST /projects/{project_reference}/inference-policy/standard-tier-opt-in; otherwise, the request returns 400. After consent is recorded, standard can be set here.
qualified-sovereign, eu-owned, eu-resident, standard, null bf16, fp16, fp8, nvfp4, fp4, int4, null 500^[A-Z]{2}$5001 - 200^[a-z0-9][a-z0-9._/-]*$5001 - 200^[a-z0-9][a-z0-9._/-]*$5001 - 200^[a-z0-9][a-z0-9._/-]*$5001 - 200^[a-z0-9][a-z0-9._/-]*$Response
The policy as it now stands
Whether routing applies every configured constraint. True for every readable policy: each configured constraint, the eu-resident minimum tier included, is enforced. False only if a stored tier or precision is unsupported by this API version; in that case, the gateway rejects all requests for the project.
How standard-tier consent was recorded. admin indicates consent through this API. grandfather indicates a migration for projects using inference before the minimum tier was introduced. Null if no consent is recorded or if consent predates this field. Read-only.
Whether this project has opted in to non-EU hosting: the standard-tier opt-in is recorded (POST /projects/{project_reference}/inference-policy/standard-tier-opt-in) and min_tier is standard, which drops the default eu-resident floor. False by default: a project is EU-only, and a min_tier of null is served as eu-resident. True does not mean the project is served outside the EU: its other constraints (for example allowed_jurisdictions or allowed_host_ids) may still restrict serving to the EU. Read-only; derived.