POST /v1/images/generations
Endpoint de geração de imagem compatível com OpenAI.
POST /v1/images/generations
Solicitar
curl https://api.model-gate.com/v1/images/generations \
-H "Authorization: Bearer mg_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "image-generation-model",
"prompt": "A clean isometric server gateway illustration",
"size": "1024x1024"
}'
Resposta
{
"created": 1785920400,
"data": [
{"url": "https://provider.example/generated/image.png"}
]
}
A resposta upstream é transmitida. O modo assíncrono é compatível com "async": true e "stream": false.