Skip to main content
GET
Gemini operations.get
Use this endpoint to query the current status, metadata, and error state of a Gemini long-running operation.
  • This endpoint is typically paired with predictLongRunning
  • The key path parameter is operation_id
  • Inspect done, metadata, and error during polling
  • If your product keeps its own job state, store operation state separately from business state

Authorizations

x-goog-api-key
string
header
required

Path Parameters

operation_id
string
required

Operation ID.

Example:

"abc123"

Response

Successful operation status response

name
string
metadata
object
done
boolean
response
object
error
object