Skip to main content

Config for gemini

Jobs that use the gemini adaptor may require authentication. A "credential" for the gemini adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"apiKey": "AIzaSyD-Your-API-Key"
}

Full Schema

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiKey": {
"title": "API Key",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Your Google Gemini API key",
"type": "string",
"minLength": 1,
"examples": [
"AIzaSyD-Your-API-Key"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"apiKey"
]
}