Pular para o conteúdo principal
POST
Generate or edit an image, a video or music, or quote it

Autorizações

Authorization
string
header
obrigatório

API key, sent as Authorization: Bearer unite_live_.... Create keys in the workspace settings.

Cabeçalhos

Idempotency-Key
string

1 to 255 visible ASCII characters. The same key, the same generation; a new key is a new take.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]{1,255}$

Corpo

application/json
operation
string
obrigatório
Allowed value: "image"
prompt
string
obrigatório
Required string length: 1 - 20000
model
enum<string>
padrão:gpt_image_2_5
Opções disponíveis:
gpt_image_2_5,
gpt_image_2_6,
nano_banana_2_pro,
nano_banana_2
aspect
enum<string>
Opções disponíveis:
1:1,
4:3,
3:4,
16:9,
9:16,
auto,
21:9,
3:2,
2:3,
5:4,
4:5,
4:1,
1:4,
8:1,
1:8
quality
enum<string>
Opções disponíveis:
low,
medium,
high
resolution
enum<string>
Opções disponíveis:
1K,
2K,
4K
references
string[]
Maximum array length: 16

An upl_ uploadId, a gen_ generation id (gen_# for its nth output, the output's ref) or a public https link.

Required string length: 1 - 4096
estimateOnly
boolean

Quote only: nothing is generated or charged.

maxCredits
number

The most this call may spend; needed to generate.

Intervalo obrigatório: x >= 0

Resposta

The quote, when estimateOnly is true.

estimate
object
obrigatório
credits
object
obrigatório