Turn text descriptions into high-quality images automatically. OE Runtime lets you run an AI image generation agent locally — no cloud platform, no monthly subscription, just a YAML file and a binary.
Create a file called agent.yaml inside an image-generation/ directory:
name: Image Creator description: Generate images from text descriptions using AI instructions: | You are a creative image generation agent. Craft detailed prompts and generate high-quality images. If the concept is vague, enhance it with artistic style, lighting, and composition details before generating. Complete all steps fully before writing your report. steps: - name: Plan the Prompt content: | Design a detailed image generation prompt for a professional product showcase photo. The subject: a sleek laptop on a minimalist desk with soft natural lighting. Enhance with: camera angle, lighting style, color palette, mood, and aspect ratio (16:9). - name: Generate Image content: | Submit the prompt to the OpenAI Image connector. POST /images/generations with body: { "model": "gpt-image-1", "prompt": "<detailed prompt from previous step>", "n": 1, "size": "1024x1024" } The response will contain data[0].local_path with the saved image file path. Report that path. - name: Report content: | Summarize the result: - The final prompt used - Any enhancements made to the original concept - Image URL - Style and composition notes for future reference connectors: - connection_name: OpenAI Image connection_type: openai-image
Create oe-config.json in the same directory:
{
"llm": {
"provider": "openai",
"model": "gpt-4o",
"apiKey": "YOUR_OPENAI_API_KEY"
},
"server": {
"enabled": false,
"port": 3333,
"apiKey": "your-secret-api-key"
},
"connectors": [
{
"connection_name": "OpenAI Image",
"connection_type": "openai-image",
"bearerToken": "YOUR_OPENAI_API_KEY",
"baseUrl": "https://api.openai.com/v1",
"model": "gpt-image-1"
}
]
}Replace YOUR_OPENAI_API_KEY with your key from platform.openai.com/api-keys.
oe-runtime-win.exe image-generation/agent.yaml --config image-generation/oe-config.json
chmod +x oe-runtime-macos
oe-runtime-macos image-generation/agent.yaml --config image-generation/oe-config.json
chmod +x oe-runtime-linux
oe-runtime-linux image-generation/agent.yaml --config image-generation/oe-config.json
macOS Gatekeeper: On first run, macOS may block the binary. Go to System Settings → Privacy & Security → click "Allow Anyway" next to oe-runtime-macos.
Add --serve to start OE Runtime as an HTTP server on port 3333:
oe-runtime-win.exe --serve --config image-generation/oe-config.json
Then send a request:
curl -X POST http://localhost:3333/run \
-H "Content-Type: application/json" \
-d '{"yaml": "image-generation/agent.yaml", "params": {}}'Or import the Postman collection (download above) to test all endpoints visually.
Download OE Runtime and run any AI agent locally or as a server — no cloud required.
Get OE Runtime →