generate

Generate or edit images with an image model using the server's base configuration and return them as base64. Stateless: nothing is stored.

post/api/experimental/generate/image

Request

  • Base URL
    https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://opencode.ai/api/experimental/generate/image
  • Auth
    none required

Request body

promptstring required
ninteger
aspectstring

Aspect ratio as width:height, for example 16:9

Response

GenerateImageResponse

Changes