Julien Talbot
a5e4a86ebe
feat(xai): add xAI image generation provider (grok-imagine-image)
Add xAI as a plugin-based image generation backend using grok-imagine-image.
Follows the existing ImageGenProvider ABC pattern used by OpenAI and FAL.
Changes:
- plugins/image_gen/xai/__init__.py: xAI provider implementation
- Uses xAI /images/generations endpoint
- Supports text-to-image and image editing with reference images
- Multiple aspect ratios (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3)
- Multiple resolutions (1K, 2K)
- Base64 output saved to cache
- Config via config.yaml image_gen.xai section
- plugins/image_gen/xai/plugin.yaml: plugin metadata
- tests/plugins/image_gen/test_xai_provider.py: 19 unit tests
- Provider class (name, display_name, is_available, list_models, setup_schema)
- Config (default model, resolution, custom model)
- Generate (missing key, success b64/url, API error, timeout, empty response, reference images, auth header)
- Registration
Requires XAI_API_KEY in ~/.hermes/.env.
To use: set image_gen.provider: xai in config.yaml.
2026-04-23 15:13:34 -07:00
..
2026-04-21 06:20:40 -07:00
2026-04-23 14:06:37 -07:00
2026-04-21 14:29:08 -07:00
2026-04-21 05:52:16 -07:00
2026-04-20 14:56:04 -07:00
2026-04-07 17:28:37 -07:00
2026-03-14 14:27:20 +03:00
2026-04-23 15:12:42 -07:00
2026-04-23 14:05:23 -07:00
2026-04-18 22:50:55 -07:00
2026-04-16 16:50:15 -07:00
2026-04-23 15:13:34 -07:00
2026-04-23 14:06:37 -07:00
2026-04-16 04:22:16 -07:00
2026-04-23 15:11:52 -07:00
2026-04-22 11:47:49 -07:00
2025-10-01 23:29:25 +00:00
2026-04-21 01:33:10 -07:00
2026-03-17 02:53:33 -07:00
2026-04-21 01:56:35 -07:00
2026-04-21 06:06:16 -07:00
2026-04-20 04:56:06 -07:00
2026-04-21 08:00:00 -07:00
2026-04-22 13:20:02 -07:00
2026-04-13 10:50:24 -07:00
2026-04-12 03:53:30 -07:00
2026-03-15 21:59:53 -07:00
2026-04-12 16:36:11 -07:00
2026-04-13 10:50:24 -07:00
2026-04-22 05:51:58 -07:00
2026-04-02 15:33:51 -07:00
2026-04-11 23:12:11 -07:00
2026-03-29 15:47:19 -07:00
2026-04-20 12:23:05 -07:00
2026-04-19 22:44:47 -07:00
2026-03-24 08:19:23 -07:00
2026-04-07 17:59:42 -07:00
2026-04-22 14:42:32 -07:00
2026-04-20 03:48:08 -07:00
2026-04-07 22:23:28 -07:00
2026-03-30 17:34:43 -07:00
2026-04-17 00:20:40 -07:00
2026-04-17 13:31:53 -07:00
2026-04-08 00:41:36 -07:00
2026-03-19 15:16:35 +01:00
2026-04-10 13:37:45 -07:00
2026-04-17 14:21:22 -07:00
2026-02-26 13:54:20 +03:00
2026-04-19 19:18:19 -07:00
2026-04-20 12:23:05 -07:00
2026-04-20 12:23:05 -07:00
2026-04-20 23:20:33 -07:00
2026-04-22 20:11:07 -05:00
2026-03-30 13:28:10 +09:00