You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e1b89f5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/out.openapi.yaml
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9262,6 +9262,11 @@ components:
9262
9262
created:
9263
9263
description: Unix timestamp (seconds) when the image was generated
9264
9264
type: integer
9265
+
media_type:
9266
+
description: >-
9267
+
Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`).
9268
+
example: image/svg+xml
9269
+
type: string
9265
9270
type:
9266
9271
description: The event type
9267
9272
enum:
@@ -9420,6 +9425,11 @@ components:
9420
9425
b64_json:
9421
9426
description: Base64-encoded image bytes
9422
9427
type: string
9428
+
media_type:
9429
+
description: >-
9430
+
Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`).
Copy file name to clipboardExpand all lines: src/openrouter/components/imagegencompletedevent.py
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ class ImageGenCompletedEventTypedDict(TypedDict):
20
20
r"""Unix timestamp (seconds) when the image was generated"""
21
21
type: ImageGenCompletedEventType
22
22
r"""The event type"""
23
+
media_type: NotRequired[str]
24
+
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
23
25
usage: NotRequired[ImageGenerationUsageTypedDict]
24
26
r"""Token and cost usage for the image generation request, when available"""
25
27
@@ -36,5 +38,8 @@ class ImageGenCompletedEvent(BaseModel):
36
38
type: ImageGenCompletedEventType
37
39
r"""The event type"""
38
40
41
+
media_type: Optional[str] =None
42
+
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
43
+
39
44
usage: Optional[ImageGenerationUsage] =None
40
45
r"""Token and cost usage for the image generation request, when available"""
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
13
15
14
16
15
17
classImageGenerationResponseData(BaseModel):
16
18
b64_json: str
17
19
r"""Base64-encoded image bytes"""
18
20
21
+
media_type: Optional[str] =None
22
+
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
0 commit comments