Skip to content

feat(image-generation): ?? xAI Grok Imagine ? Agnes ????? - #567

Open
superzzm2026 wants to merge 1 commit into
dataelement:mainfrom
superzzm2026:feat/image-xai-agnes
Open

superzzm2026 wants to merge 1 commit into
dataelement:mainfrom
superzzm2026:feat/image-xai-agnes

Conversation

@superzzm2026

Copy link
Copy Markdown

??

??????? dsh-image-generation ???????,???????????:

??? ???? ?? API ??
xAI / Grok Imagine grok-imagine-image https://api.x.ai/v1
Agnes agnes-image-2.5-flash https://apihub.agnes-ai.com/v1
  • ??(???????):xAI ? Agnes ?? OpenAI ?? GET /models??????????? model,???? connection(?????? ID ?????????);401/403/404/429 ???????
  • ????:xAI ??? {model, prompt, n:1, response_format:'b64_json', aspect_ratio},??? size;Agnes ??? {model, prompt, size:'2K', ratio, return_base64:true},?? data[0].b64_json??????? b64_json ????(20 MB ???180 s ??)?
  • IMAGE_PARAMETERS ?? aspect_ratio / ratio / return_base64,?????????????
  • ????:??????zh/en ???emptyDrafts / emptyCatalogs;describe() ? DEFAULTS ?????
  • README(???????????????????)?package.json description/keywords??? aspect_ratio ???????

??????(canFetch:false,? Seedream ??,????????? ID):

  • xAI:grok-imagine-image?grok-imagine-image-quality
  • Agnes:agnes-image-2.5-flash?agnes-image-2.1-flash?agnes-image-2.0-flash

??

  • test/image-generation.test.mjs ??? 55 ?:???????????????GET /models ????(model / connection / RESPONSE / AUTH)????????????? 5 ????????MODEL_DISCOVERY?describe ????ToolRuntime ??????
  • scripts/verify-image-generation.mjs smoke ???????????(???????????????),????? Host ???? PASS?
  • ?????? Windows ? 8 ??????????(symlink EPERM?Windows ACL ??????????),??????????;?? xai/agnes ??????? openai/bytedance ????????,?? 47 ??????

??

- add xai/agnes to DEFAULTS and MODEL_CATALOG with built-in model lists
- validate both through the OpenAI-compatible GET /models list using one
  non-generating request; listed models record 'model', otherwise 'connection'
- xAI generation body uses aspect_ratio with no size hint; Agnes uses the
  2K size tier plus ratio and return_base64
- extend the settings card (provider options, zh/en labels, drafts/catalogs),
  README, package metadata and the focused test + Host smoke coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant