public class Generations extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Generations.Model |
| Modifier and Type | Field and Description |
|---|---|
private String |
model
Optional Defaults to dall-e-2
The model to use for image generation. |
private int |
n |
private String |
prompt |
private String |
quality
Optional Defaults to standard
dall-e-3可以使用hd |
private String |
response_format |
private String |
size
The size of the generated images.
|
private String |
style
Optional
Defaults to vivid
The style of the generated images. |
| Constructor and Description |
|---|
Generations() |
| Modifier and Type | Method and Description |
|---|---|
static Generations |
ofB64_JSON(String prompt,
int n,
String size) |
static Generations |
ofURL(String prompt,
int n,
String size) |
private String prompt
private String model
private int n
private String quality
private String size
private String response_format
private String style
public static Generations ofURL(String prompt, int n, String size)
public static Generations ofB64_JSON(String prompt, int n, String size)
Copyright © 2024. All rights reserved.