configure_openai_api_key
Set or update the locally stored OpenAI API key used for image generation. Configure authentication when the key changes to enable AI image generation in MCP clients.
Instructions
Set or update the OpenAI API key for image generation. The key is stored locally.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"apiKey": "<apiKey>"
},
"name": "configure_openai_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | Your OpenAI API key |