docs: add image-editing example for models that accept image input - #142
Closed
kyto-agent wants to merge 1 commit into
Closed
kyto-agent wants to merge 1 commit into
kyto-agent wants to merge 1 commit into
Conversation
The model page shows generation examples for image models but nothing about editing an existing image (send a base64 image alongside the instruction), which came up in Slack support. For models whose architecture.input_modalities includes 'image', render a dedicated 'Edit an existing image' cURL example under the language tabs.
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.
Image models whose
architecture.input_modalitiesincludesimage(e.g. the Gemini image models) support editing an existing image by sending a base64 data URL alongside the instruction, but the model page only showed a generation example, so the edit path was undiscoverable (came up in Slack support).This adds a dedicated "Edit an existing image" cURL example under the language tabs for such models.
Note: the pre-request cost-estimation bug that produces false 429s on large base64 images is already addressed by #135 — this PR is docs-only.