Skip to content

feat(ai): add xAI image generation#37778

Open
opencode-agent[bot] wants to merge 4 commits into
v2from
xai-images
Open

feat(ai): add xAI image generation#37778
opencode-agent[bot] wants to merge 4 commits into
v2from
xai-images

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add XAI.configure(...).image(...) for Grok Imagine models
  • reuse the OpenAI Images-compatible route while preserving xAI-specific request and response schemas
  • support aspect ratio, 1K/2K resolution, URL/base64 delivery, nullable wire fields, MIME metadata, and xAI billing usage
  • preserve legacy LLM custom-auth behavior while adding Auth.customRequest for image requests
  • add deterministic request/response coverage plus a live-recorded generation cassette

Validation

  • live generation against grok-imagine-image, decoded and visually inspected
  • cassette credential scan passed
  • clean merge verified against current origin/v2
  • independent final audit: no blockers
  • bun typecheck in packages/ai
  • bun run build in packages/ai
  • full packages/ai test suite: 357 passed, 29 skipped

Builds on the image domain merged in #37714.

Requested by: @rekram1-node (Aiden Cline via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant