POST
/
v1
/
sql
/
aiCompletion
{
  "candidates": [
    {
      "content": {
        "parts": [
          {
            "text": "<string>"
          }
        ]
      }
    }
  ]
}

Body

application/json
messages
object[]

Response

OK

candidates
object[]

candidates is used for results with multiple choices and candidates. Used for OpenAI and Gemini.