✨ Run prompt inference

<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Run a prompt inference.

Authentication

AuthorizationToken
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>

Path parameters

prompt_idintegerRequired
version_idintegerRequired

Request

This endpoint expects an object.
projectintegerRequired
filters_jsonany or nullOptional

DM filter group for Filtered subset. Stored for display/re-run purposes.

job_idstring or nullOptional<=255 characters
Job ID for inference job for a ModelRun e.g. Adala job ID
only_missing_predictionsbooleanOptionalDefaults to false
When true, only tasks without successful predictions for this prompt version are submitted for inference.
organizationinteger or nullOptional
predictions_updated_atdatetime or nullOptional
project_subsetenumOptional
  • All - All
  • HasGT - HasGT
  • Sample - Sample
  • Custom - Custom
Allowed values:
sample_subset_sizeinteger or nullOptional0-2147483647

Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set.

total_correct_predictionsinteger or nullOptional-2147483648-2147483647
total_predictionsinteger or nullOptional-2147483648-2147483647
total_tasksinteger or nullOptional-2147483648-2147483647

Response

completed_atdatetime or nullRead-only
created_atdatetimeRead-only
created_byobject
A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
idintegerRead-only
parent_modelintegerRead-only
projectinteger
source_model_runinteger or nullRead-only
statusenum
  • Pending - Pending
  • InProgress - InProgress
  • Completed - Completed
  • Failed - Failed
  • Canceled - Canceled
Allowed values:
task_idsany or nullRead-only

List of task IDs for Custom subset re-evaluation.

triggered_atdatetime or nullRead-only
filters_jsonany or null

DM filter group for Filtered subset. Stored for display/re-run purposes.

job_idstring or null<=255 characters
Job ID for inference job for a ModelRun e.g. Adala job ID
organizationinteger or null
predictions_updated_atdatetime or null
project_subsetenum
  • All - All
  • HasGT - HasGT
  • Sample - Sample
  • Custom - Custom
Allowed values:
sample_subset_sizeinteger or null0-2147483647

Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set.

total_correct_predictionsinteger or null-2147483648-2147483647
total_predictionsinteger or null-2147483648-2147483647
total_tasksinteger or null-2147483648-2147483647