generate

Generate text (deprecated path)

Changed on

Deprecated alias of POST /api/experimental/generate/text.

post/api/experimental/generate

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

Request body

promptstring required

Response

GenerateTextResponse

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      api operation id experimental.generate.text removed and replaced with experimental.generate.textLegacy

    • info

      endpoint deprecated

    • info

      added to the response body anyOf list for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status