feat(image): add OpenAI/Bifrost compatible image generation provider

This commit is contained in:
openclaw committed 2026-10-19 02:16:01 +00:00
1 parent 93ae5b7342
commit 2011077fcd
10 files changed
+1019 -21

No files matched your search

+69 -15
View File
@@ -1,8 +1,8 @@
{
"id": "tools",
"name": "Tools",
"description": "Custom Tools and Media Providers for OpenClaw.",
"version": "0.2.0",
"description": "Custom Tools and Media Providers (Video & Image) for OpenClaw.",
"version": "0.3.0",
"categories": [
"media",
"utilities"
@@ -23,6 +23,15 @@
"BIFROST_API_KEY",
"OPENAI_API_KEY"
]
},
{
"id": "openai-image",
"envVars": [
"OPENAI_IMAGE_API_KEY",
"BIFROST_API_KEY",
"CCLOAD_API_KEY",
"OPENAI_API_KEY"
]
}
]
},
@@ -32,6 +41,9 @@
],
"videoGenerationProviders": [
"openai-video"
],
"imageGenerationProviders": [
"openai-image"
]
},
"videoGenerationProviderMetadata": {
@@ -43,6 +55,15 @@
]
}
},
"imageGenerationProviderMetadata": {
"openai-image": {
"authSignals": [
{
"provider": "openai"
}
]
}
},
"configContracts": {
"secretInputs": {
"paths": [
@@ -55,6 +76,11 @@
"path": "video.apiKey",
"expected": "string",
"ownerKind": "capability"
},
{
"path": "image.apiKey",
"expected": "string",
"ownerKind": "capability"
}
]
}
@@ -67,6 +93,10 @@
"video.apiKey": {
"label": "Video API Key",
"sensitive": true
},
"image.apiKey": {
"label": "Image API Key",
"sensitive": true
}
},
"configSchema": {
@@ -76,7 +106,7 @@
"baseUrl": {
"type": "string",
"title": "API Base URL",
"description": "Base URL of the OpenAI-compatible video endpoint"
"description": "Base URL of the OpenAI-compatible endpoint"
},
"apiKey": {
"type": [
@@ -84,7 +114,7 @@
"object"
],
"title": "API Key",
"description": "API Key or SecretRef for video generation"
"description": "API Key or SecretRef"
},
"allowPrivateNetwork": {
"type": "boolean",
@@ -94,27 +124,20 @@
},
"defaultModel": {
"type": "string",
"title": "Default Video Model",
"description": "Default model ID to use when no model is explicitly requested",
"default": "sora-2"
"title": "Default Model",
"description": "Default model ID"
},
"models": {
"type": "array",
"title": "Available Models",
"description": "List of available video model IDs",
"items": {
"type": "string"
},
"default": [
"sora-2",
"sora-2-pro",
"gemini-video"
]
}
},
"video": {
"type": "object",
"title": "Video Generation Settings",
"description": "Nested configuration for video generation",
"description": "Configuration for video generation (openai-video)",
"additionalProperties": false,
"properties": {
"baseUrl": {
@@ -141,6 +164,37 @@
}
}
}
},
"image": {
"type": "object",
"title": "Image Generation Settings",
"description": "Configuration for image generation (openai-image / bifrost-image)",
"additionalProperties": false,
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": [
"string",
"object"
]
},
"allowPrivateNetwork": {
"type": "boolean",
"default": true
},
"defaultModel": {
"type": "string",
"default": "gpt-image-2"
},
"models": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}