You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLIProxyAPI currently cannot forward requests to Agnes AI's image and video models (by Sapiens AI, Singapore — top-10 global AI lab). Agnes provides free, unlimited multimodal API:
Modality
Model
Endpoint
Text
agnes-2.0-flash
/v1/chat/completions ✅ (works via openai-compatibility)
Image
agnes-image-2.1-flash
/v1/images/generations ❌
Video
agnes-video-v2.0
/v1/videos (async) + polling ❌
When you try model: agnes-image-2.1-flash on /v1/images/generations, it either 404s or routes to Codex. /v1/videos doesn't exist at all.
Root Causes / 根因
CLI-first architecture — CLIProxyAPI wraps CLI tools via executors. Agnes is a pure REST API with no CLI → no AgnesExecutor.
Image gen hardwired to Codex — openai_images_handlers.go injects image_generation tool into Codex requests, not a generic passthrough.
No /v1/videos endpoint — video support only exists for Google Veo via Gemini-specific paths.
Async mismatch — Agnes video is async (create → poll), while handlers are primarily sync/stream.
openai-compatibility only routes chat — image/video requests are silently dropped.
Proposed Solution / 方案建议
Option A (Recommended): Dedicated agnes provider
Add an agnes provider section in config.yaml (similar to xAI/Grok pattern):
This discussion was converted from issue #3862 on June 20, 2026 05:26.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Problem / 问题
CLIProxyAPI currently cannot forward requests to Agnes AI's image and video models (by Sapiens AI, Singapore — top-10 global AI lab). Agnes provides free, unlimited multimodal API:
agnes-2.0-flash/v1/chat/completions✅ (works viaopenai-compatibility)agnes-image-2.1-flash/v1/images/generations❌agnes-video-v2.0/v1/videos(async) + polling ❌When you try
model: agnes-image-2.1-flashon/v1/images/generations, it either 404s or routes to Codex./v1/videosdoesn't exist at all.Root Causes / 根因
AgnesExecutor.openai_images_handlers.goinjectsimage_generationtool into Codex requests, not a generic passthrough./v1/videosendpoint — video support only exists for Google Veo via Gemini-specific paths.openai-compatibilityonly routes chat — image/video requests are silently dropped.Proposed Solution / 方案建议
Option A (Recommended): Dedicated
agnesproviderAdd an
agnesprovider section in config.yaml (similar to xAI/Grok pattern):Changes needed:
internal/provider/agnes/— executor implementingauth.ProviderExecutoropenai_images_handlers.go— add generic image routing (not just Codex)openai_videos_handlers.go— async video create + poll endpointsinternal/config/— add Agnes config schemacmd/server/main.go— register routesImage forwarding is nearly zero-translation (Agnes uses OpenAI-compatible
/v1/images/generations). Video requires async handling withremixed_from_video_id→video_urlnormalization.Option B (Lighter): Extend
openai-compatibilityHarder to implement cleanly — image/video fundamentally differ from chat completions in endpoint/response patterns.
Why This Matters / 为什么重要
Reference / 参考
POST /v1/videoswithwidth,height,num_frames(8n+1),frame_rate,image,mode,seeddocs/sdk-advanced.md(custom providers),examples/custom-provider/Written 2026-06-15, info verified against CLIProxyAPI v7.2.5 and Agnes AI public docs.
Beta Was this translation helpful? Give feedback.
All reactions