POST /v1/images/generations
Punt final de generació d'imatges compatible amb OpenAI.
POST /v1/images/generations
Sol·licitud
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"}
]
}
La resposta aigües amunt es fa passar. El mode asíncron és compatible amb "async": true i "stream": false.