v1
latestOpenAPI 3.0.02026-07-1761823.7 KBGenerate text
Generate text for a specific workflow
post/api/v1/generate/text
Request body
Example request
{
"input": "Tell me about renewable energy",
"workflowSlug": "my_great_workflow",
"groupId": "my-group-id"
}Response
Successfully generated content (we also return the run ID in the header X-Run-ID)
Example response
{
"text": "Renewable energy is...",
"metadata": {
"runId": "run_1234567890",
"cost": "0.001",
"model": {
"name": "gpt-4o",
"tag": "openai:gpt-4o"
},
"durationInMs": 1000,
"inputTokens": 1000,
"outputTokens": 1000
}
}