Images

Generate image

Generate images from verified image-generation deployments. OpenAI-compatible response shape. The gateway does not replay-cache this operation.

post/images/generations

Request body

modelstring required
promptstring required
ninteger
sizestring
response_format'url' | 'b64_json'

Example request

{
  "model": "flux-schnell",
  "size": "1024x1024"
}

Response

Image generation response

createdinteger required

Example response

{
  "usage": {
    "cost": 0.00294,
    "runinfra": {
      "cost_microcents": 294000
    }
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.