Skip to main content
POST
Text Generation

Request

string
required
API key: Authorization: Bearer nb_YOUR_API_KEY
string
required
Text model slug. See the model catalog for available slugs.
string
required
User prompt, up to 100,000 characters.
object
default:"{}"
Options for the selected model. Text model options can include system_prompt, temperature, and max_tokens.

Request Example

Response

integer
Generation ID.
string
completed | pending | failed
string
Model slug used for the generation.
string | null
Generated text.
string | null
Usually null for text.
string | null
Error description or null.
integer
Elumenta tokens consumed.
integer | null
Processing time in milliseconds.
object | null
Additional result metadata, or null.
This endpoint uses Elumenta’s own model, prompt, and optional params schema. For OpenAI-format requests with a messages array, use POST /v1/chat/completions.