generate

Run one stateless model generation using the server's base configuration and return the assistant text. Uses the base configuration's default model when none is specified.

post/api/experimental/generate/text

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/text
  • Auth
    none required

Request body

promptstring required

Response

GenerateTextResponse

Changes