Gateway

Extract typed values

Changed on

Extracts text, numbers, dates, times, durations and typed lists from text or embedded images. Returns typed values and model-reported uncertainty. Estimates, forecasts, streaming and remote image URLs are not supported.

post/extractions

Request

  • Base URL
    https://api.phaseo.app/v1
  • URL
    https://api.phaseo.app/v1/extractions
  • Auth
    HTTP bearer

Request body

modelstring required

Model ID with the extraction.extract capability.

inputstring required

Source text. May be empty when images are supplied.

fieldsobject required

Field names match ^[A-Za-z_][A-Za-z0-9_.-]{0,63}$.

reference_datestring date

Explicit date context for incomplete dates.

Response

Typed extraction answers

modelstring required
answersobject required
truncatedboolean required

Whether the provider truncated source input.

Changes