🚀 New App Builder Engine is Beta! See our changelog for details.
cURL
curl --request POST \ --url https://app.teable.ai/api/api/%7BbaseId%7D/ai/generate \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \ --header 'content-type: application/json' \ --data '{"prompt":"string","task":"coding","modelKey":"openai@gpt-4o@custom-name"}'
{ "result": "<string>" }
Generate AI text (non-streaming)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Quick model selection via predefined task type
coding
embedding
translation
"coding"
Specify an exact model configuration to use
"openai@gpt-4o@custom-name"
Returns generated AI text.
Was this page helpful?