API ID, from your settings page.
API Key, from your settings page.
Name of the Gemini model (e.g. gemini-2.5-flash).
255List of messages with 'role' (user/model) and 'content'.
Optional system instruction for the model.
Generation config parameters.
Webhook URL for async status updates.
Structured config serializer for OpenAPI documentation.
Optional system instruction for the model.
pending - pendingrunning - runningdone - donefailed - failedpending, running, done, failed Generated text response from the model.
Reason for failure if status is failed.
Credits consumed for this generation.