Chuyển đến nội dung chính
POST
/
api
/
{baseId}
/
ai
/
generate-stream
cURL
curl --request POST \
  --url https://sheets.vn/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>"
}

Documentation Index

Fetch the complete documentation index at: https://www.sheets.vn/docs/llms.txt

Use this file to discover all available pages before exploring further.

Ủy quyền

Authorization
string
header
bắt buộc

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

Tham số đường dẫn

baseId
string
bắt buộc

Nội dung

application/json
prompt
string
bắt buộc
task
enum<string>

Quick model selection via predefined task type

Tùy chọn có sẵn:
coding,
embedding,
translation
Ví dụ:

"coding"

modelKey
string

Specify an exact model configuration to use

Ví dụ:

"openai@gpt-4o@custom-name"

Phản hồi

201 - application/json

Returns ai generate stream.

result
string
bắt buộc