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
Copy file name to clipboardExpand all lines: spring-ai-docs/src/main/antora/modules/ROOT/pages/api/imageclient.adoc
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,9 @@ public class ImageMessage {
73
73
74
74
==== ImageOptions
75
75
76
-
Represents the options that can be passed to the Image generation model. The `ImageOptions` class extends the `ModelOptions` interface and is used to define few portable options that can be passed to the AI model.
76
+
Represents the options that can be passed to the Image generation model. The `ImageOptions` interface extends the `ModelOptions` interface and is used to define few portable options that can be passed to the AI model.
77
77
78
-
The `ImageOptions` class is defined as follows:
78
+
The `ImageOptions` interface is defined as follows:
79
79
80
80
[source,java]
81
81
----
@@ -97,12 +97,12 @@ public interface ImageOptions extends ModelOptions {
97
97
Additionally, every model specific ImageModel implementation can have its own options that can be passed to the AI model. For example, the OpenAI Image Generation model has its own options like `quality`, `style`, etc.
98
98
99
99
100
-
This is a powerful feature that allows developers to use model specific options when starting the application and then override them with at runtime using the `ImagePrompt`.
100
+
This is a powerful feature that allows developers to use model specific options when starting the application and then override them at runtime using the `ImagePrompt`.
101
101
102
102
103
103
=== ImageResponse
104
104
105
-
The structure of the `ChatResponse` class is as follows:
105
+
The structure of the `ImageResponse` class is as follows:
106
106
107
107
[source,java]
108
108
----
@@ -130,7 +130,7 @@ public class ImageResponse implements ModelResponse<ImageGeneration> {
130
130
131
131
The https://github.com/spring-projects/spring-ai/blob/main/spring-ai-core/src/main/java/org/springframework/ai/image/ImageResponse.java[ImageResponse] class holds the AI Model's output, with each `ImageGeneration` instance containing one of potentially multiple outputs resulting from a single prompt.
132
132
133
-
The `ImageResponse` class also carries a `ImageResponseMetadata` metadata about the AI Model's response.
133
+
The `ImageResponse` class also carries a `ImageResponseMetadata` object holding metadata about the AI Model's response.
134
134
135
135
=== ImageGeneration
136
136
@@ -160,7 +160,10 @@ public class ImageGeneration implements ModelResult<Image> {
160
160
`ImageModel` implementations are provided for the following Model providers:
0 commit comments