POST
/
api
/
{baseId}
/
ai
/
generate-stream
curl --request POST \
  --url https://app.teable.cn/api/api/%7BbaseId%7D/ai/generate-stream \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"prompt":"string","task":"coding","modelKey":"openai@gpt-4o@custom-name"}'
{
  "result": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

baseId
string
required

Body

application/json

Response

201 - application/json
Returns ai generate stream.

The response is of type object.