POST
/
v1
/
projects
/
{project_id}
/
iterations
Create Iteration
curl --request POST \
  --url https://api.retab.com/v1/projects/{project_id}/iterations \
  --header 'Content-Type: application/json' \
  --data '{
  "inference_settings": {
    "model": "gpt-4.1-mini",
    "temperature": 0,
    "modality": "native",
    "reasoning_effort": "low",
    "image_resolution_dpi": 96,
    "browser_canvas": "A4",
    "n_consensus": 1
  },
  "json_schema": {},
  "parent_id": "<string>"
}'
{
  "id": "<string>",
  "inference_settings": {
    "model": "gpt-4.1-mini",
    "temperature": 0,
    "modality": "native",
    "reasoning_effort": "low",
    "image_resolution_dpi": 96,
    "browser_canvas": "A4",
    "n_consensus": 1
  },
  "json_schema": {},
  "updated_at": "2023-11-07T05:31:56Z",
  "predictions": {}
}

Authorizations

Api-Key
string
header
required

Path Parameters

project_id
string
required

Body

application/json

Request model for performing a new iteration with custom inference settings and optional JSON schema.

Response

200
application/json

Successful Response

The response is of type object.