feat(openai): record input and output images for image APIs - #3737
Open
satyadevai wants to merge 1 commit into
Open
satyadevai wants to merge 1 commit into
satyadevai wants to merge 1 commit into
Conversation
satyadevai
force-pushed
the
3422-openai-span-level-images
branch
4 times, most recently
from
September 15, 2026 15:34
7ceac46 to
12758ca
Compare
satyadevai
marked this pull request as ready for review
September 15, 2026 15:53
satyadevai
force-pushed
the
3422-openai-span-level-images
branch
5 times, most recently
from
September 16, 2026 16:53
781e6df to
972a73e
Compare
satyadevai
force-pushed
the
3422-openai-span-level-images
branch
from
September 16, 2026 16:59
972a73e to
8bcf9a4
Compare
This branch has not been deployed
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
Records span-level images for OpenAI image generation:
output.images.N.image.urlfor Images API results and Responses API image generation callsinput.images.N.image.urlfor the files sent to image edits and variationsBefore this, generated images were only in the raw
output.valueJSON, and Responses API image generation calls were ignored.Changes
Images API
images.generate, sync and async)databecomesoutput.images.N.image.url. A hostedurlis used as is.b64_jsonis converted to a data URL.b64_jsoncomes from the responseoutput_format, then the requestoutput_format, and defaults toimage/png.image,image[]andmaskfields becomeinput.images.N.image.url. Supported inputs are bytes, file objects, paths and(ftype)tuples.image/png._ImagesAccumulatorrecords the image from theimage_generation.completedor `image_edit.cResponses API
image_generation_callwith aresultbecomesoutput.images.N.image.url, numbered in output order.output_formatof theimage_generationtool in therequest.Dependencies
openinference-instrumeease applies trace config masking(hide_inputs,hide_outputs,hide_input_images,base64_image_max_length) to span-levelinput.imagesandoutput.images`.