docs(ai-gateway): document image endpoints and GenerateImage reference images - #291
Merged
Merged
Conversation
…e images Add an Images section and a generateImage example to the AI Gateway module JSDoc, linking to the new image guide in the docs. Widen the intro so it no longer describes the gateway as Chat Completions only. Add the existing_image_urls field the backend already accepts to GenerateImageParams, with an editing example. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.50-pr.291.10ee07fPrefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.50-pr.291.10ee07f"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.50-pr.291.10ee07f"
}
}
Preview published to npm registry — try new features instantly! |
adamfri
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/images/generationsand/images/edits, and a Vercel AI SDKgenerateImageexample. It links to a new guide page in the docs. The intro no longer describes the gateway as Chat Completions only.GenerateImageParams: addsexisting_image_urls?: string[]. The backend has accepted it since apper #1827 (2025-12-15), but the SDK types didn't expose it. Adds an editing example and points to the gateway for model, aspect ratio, resolution and quality control.JSDoc and types only, no runtime changes.
Docs
The generated
ai-gatewayandintegrationspages, plus the new guide (developers/references/sdk/getting-started/ai-gateway-images), are in the paired mintlify-docs PR on the same branch name. The guide link in this JSDoc resolves once that PR merges.Verification
npx tsc --noEmitpasses.npm run create-docs-localgenerates both pages, previewed locally withmintlify dev.providerOptions.base44merged into the request body) was checked against the@ai-sdk/openai-compatible2.0.75 source. It hasn't been run against the live gateway.🤖 Generated with Claude Code