Images

Generate an image

Generate an AI image with any model from listModels (default: gemini-flash). The image is uploaded to storage and the response includes its public URL. A built-in model counts as 1 image generation; a catalog model counts what its price works out to (see creditsUsed). A failed generation is not charged.

post/v1/images/generate

Request

  • Base URL: https://www.postquick.ai/api
  • URL: https://www.postquick.ai/api/v1/images/generate
  • Auth: HTTP bearer

Request body

promptstring required

Detailed image prompt

modelstring

Image generation model: a model id from GET /v1/models?kind=image, or a built-in name ("gemini-flash", "gpt-image-1.5", "nano-banana-pro").

Example request

{
  "model": "gemini-flash"
}

Response

Generated image.

successtrue required

Changes

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