Skip to main content
POST
Image metadata enrichment use case

Headers

Authorization
string
required

Bearer token used for authentication. Format: Authorization: Bearer ACCESS_TOKEN.

Content-Type
string

application/json

Example:

"application/json"

Path Parameters

MODEL_ID
string
required

Unique identifier for the model. Must be a multimodal model capable of processing images, such as gemini-2.5-flash-lite.

Body

application/json
batch
object[]
required

An array of request items. Each item must contain exactly one of text, image, or imageLink.

useCaseConfig
UseCaseConfigImageMetadataEnrichment · object

Optional object to control metadata generation. The image must be provided in the batch item as useCaseConfig only tunes the output.

modelConfig
ModelConfig · object

Provides fields and values that specify ranges for tokens. Fields used for specific use cases and models are specified. The default values are used if other values are not specified.

Response

OK

This is the response to the POST prediction request submitted for a specific useCase and modelId.

predictionId
string<uuid>

The universal unique identifier (UUID) returned in the POST request. This UUID is required in the GET request to retrieve results.

status
string

The current status of the prediction. Allowed values are:

  • SUBMITTED - The POST request was successful and the response has returned the predictionId and status that is used by the GET request.

  • ERROR - An error was generated when the GET request was sent.

  • READY - The results associated with the predictionId are available and ready to be retrieved.

  • RETRIEVED - The results associated with the predictionId are returned successfully when the GET request was sent.

Example:

"SUBMITTED"