English
Generate AI text (non-streaming)
cURL
curl --request POST \ --url http://127.0.0.1:3000/api/api/{baseId}/ai/generate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "<string>", "task": "coding", "modelKey": "openai@gpt-4o@custom-name" } '
{ "result": "<string>" }
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?