v5

latestOpenAPI 3.1.02026-08-04166362486.5 KB
extractions

Extract content from a string

Extract content from a string using the provided schema.

Args: params: The parameters for extracting content from a string.

Returns: The extracted content.

post/v1/extractions/content

Request body

json_schemaobject required

The JSON schema to use for extraction

instructionsstring nullable

Additional instructions for the extraction

Example request

{
  "content": [
    {
      "image_url": {
        "url": "data:text/plain;charset=utf-8;base64,VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wZWQgb3ZlciB0aGUgbGF6eSBkb2cu"
      }
    }
  ]
}

Response

The extracted content

dataobject required
warningsstring[] required