/api/v1/completions. OpenAI SDKs for Completions, including AI SDK, can point their base URL to https://playground.curvelabs.org/api/v1.
This is different from the ThinkFeel SDK and CLI base URL setting, which should use only the site origin. Send either
prompt or messages, not both. model must be your persona ID.Headers
Body parameters
Compatibility notes
- Provide either
promptormessages. - When using
messages, include the full conversation history, putsystemanddevelopercontext before the final user turn, and send non-empty content in that final user message. messagessupportsuser,assistant,system, anddeveloperroles.modelmust be your persona ID UUID provided during onboarding.promptmust be a non-empty string or a single-element string array.nis capped at 5.- Message content must be a plain string or an array of text parts.
- Optional
timestamp,createdAt, andcreated_atvalues are accepted and normalized when present. - Streaming is not supported on this V1 endpoint.
stream: truereturns an error. max_tokensandlogprobsare rejected.- Other OpenAI parameters are accepted but ignored:
temperature,top_p,presence_penalty,frequency_penalty,best_of,seed,suffix, anduser. - Output text is normalized, stop sequences are applied, and
echoprepends the prompt. - Responses omit
usage.

