Text Generation
Generations (results)
Text Generation
Generate text using LLMs — GPT, Claude, Gemini, DeepSeek, Grok
POST
Text Generation
Request
Bearer token:
Authorization: Bearer nb_YOUR_API_KEYModel slug. See Text Models for all available slugs.Examples:
gpt-5, claude-sonnet-4.5, gemini-3-pro, deepseek-r1Array of message objects in OpenAI-compatible format.Supported roles:
system, user, assistantEnable server-sent events streaming. See Streaming Guide.
Sampling temperature between
0.0 and 2.0. Higher values make output more random.Maximum tokens to generate. Defaults vary by model. Pass
null to use model defaults.Shorthand for adding a system message. Equivalent to adding
{ "role": "system", "content": "..." } as the first message.Request Example
Response
Unique generation ID. Use this to retrieve results via GET /generate/status.
completed | pending | failedThe model slug used for this generation.
The generated text.
Elumenta tokens consumed by this request.
Your token balance after this request.
Raw provider token usage (for reference only, not billed):
ISO 8601 timestamp.
Response Example
Vision (Image Input)
Text models that support vision (gpt-5, claude-sonnet-4.5, gemini-3-pro) accept images in messages:
Multi-turn Conversations
Pass the full conversation history inmessages:
Elumenta does not store conversation state between requests. You must send the full history each time.

