ImageGenerationRequest class

画像生成のリクエスト。

Constructors

ImageGenerationRequest({required String model, required String prompt, int n = 1, String? size, String? aspectRatio})
const

Properties

aspectRatio → String?
16:9 などの縦横比(OpenRouter / xAI 形式。対応しないプロバイダーは無視)。
final
hashCode → int
The hash code for this object.
no setterinherited
model → String
画像生成モデル ID(ImageGenerator.getImageModels のもの)。
final
n → int
枚数(モデルの上限を超えるとサービス側が拒否しうる)。
final
prompt → String
生成する画像の説明。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → String?
1024x1024 などの大きさ(OpenAI 形式。対応しないプロバイダーは無視)。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited