---
title: "POST /api/{baseId}/ai/generate-stream"
method: POST
path: "/api/{baseId}/ai/generate-stream"
tags: ["ai"]
---

# POST /api/{baseId}/ai/generate-stream

`POST /api/{baseId}/ai/generate-stream`

Generate ai stream

## Path parameters

- `baseId` string, required

## Request body

- object
  - `prompt` string, required
  - `task` 'coding' | 'embedding' | 'translation' — Quick model selection via predefined task type
  - `modelKey` string — Specify an exact model configuration to use

## Response `201`

Returns ai generate stream.

- object
  - `result` string, required

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/revisions/7515f3b33d79/schema)
