Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via persona_id to prepend a curated system prompt.
When stream: true, the response is a series of named text/event-stream Server-Sent Events (e.g. response.created, response.output_text.delta, response.completed). The stream ends with data: [DONE].
{ "id": "resp_abc123def456abc123def456", "object": "response", "created_at": 1706345678, "status": "completed", "model": "mavera-1", "output": [ { "id": "msg_abc123def456", "type": "message", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Quantum computing uses quantum bits (qubits) that can exist in multiple states simultaneously, unlike classical bits that are either 0 or 1. This allows quantum computers to process many possibilities at once." } ] } ], "usage": { "input_tokens": 42, "output_tokens": 68, "total_tokens": 110, "credits_used": 3 }}
{
"error": {
"message": "Model 'unknown-model' is not supported. Use GET /api/v1/models to see available models.",
"type": "invalid_request_error",
"code": "invalid_model",
"param": "model"
}
}
{
"error": {
"message": "Invalid API key. Ensure your key starts with 'mvra_live_' and has not been revoked.",
"type": "authentication_error",
"code": "invalid_api_key",
"param": null
}
}
{
"error": {
"message": "Insufficient credits. Please upgrade your subscription or wait for your next billing cycle.",
"type": "insufficient_credits",
"code": "credits_exhausted",
"param": null
}
}
API key prefixed with mvra_live_. Create keys at Settings > Developer > API Keys.
Body
application/json
model
enum<string>
required
Model ID to use for the response.
Available options:
mavera-1
Example:
"mavera-1"
input
stringobject[]
required
The input to the model. Can be a simple string for single-turn requests, or an array of input items for multi-turn conversations with tool calls.
Maximum string length: 100000
Example:
"Explain quantum computing in simple terms."
persona_id
string
required
Required. A Mavera persona CUID. The persona's curated system prompt is prepended to the conversation. Use GET /api/v1/personas to list available personas.
Example:
"clx1abc2d0001abcdef123456"
instructions
string
Optional system-level instructions to guide the model's behavior. Appended to the persona system prompt.
Example:
"Always respond in bullet points."
stream
boolean
default:false
If true, responses are streamed as named Server-Sent Events (SSE). The stream ends with data: [DONE].
Example:
false
text
object
Output format configuration. Replaces the legacy response_format field.
Show child attributes
tools
object[]
A list of tools (functions) the model may call. Uses the flat Responses API format — name and parameters are directly on the tool object.
Maximum array length: 64
Show child attributes
Example:
[ { "type": "function", "name": "get_weather", "description": "Get the current weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "The city name" } }, "required": ["city"] } } ]
tool_choice
enum<string>object
Controls which tool is called. auto (default) lets the model decide, none disables tools, required forces tool use, or { type: 'function', name: 'fn' } forces a specific function.
Available options:
auto,
none,
required
Example:
"auto"
analysis_mode
boolean
default:false
If true, returns structured analysis including emotional metrics, biases, confidence scores, and news relevance. Cannot be used with text.format.
Example:
false
canvas_mode
boolean
default:false
If true, enables artifact generation mode. The AI will generate structured content wrapped in <artifact> tags.
Example:
false
reasoning_effort
enum<string>
default:medium
Controls reasoning depth. high produces more thorough responses at the cost of latency.
Available options:
low,
medium,
high
Example:
"medium"
verbosity
enum<string>
default:medium
Controls response detail. low for concise, high for comprehensive.
Available options:
low,
medium,
high
Example:
"medium"
previous_response_id
string
The ID of a prior response to continue. Currently accepted but has no effect — pass full conversation history via input instead.
Example:
"resp_abc123def456"
store
boolean
default:false
Whether to store the response. Currently accepted but has no effect.
Response
Successful response. Returns a response object with the model-generated output and credit cost.
A completed response object.
id
string
Unique response ID with resp_ prefix.
Example:
"resp_abc123def456abc123def456"
object
enum<string>
Always response.
Available options:
response
Example:
"response"
created_at
integer
Unix timestamp (seconds) when the response was created.
Example:
1706345678
status
enum<string>
Response status.
Available options:
completed,
in_progress,
failed
Example:
"completed"
model
string
The model used.
Example:
"mavera-1"
output
object[]
Ordered list of output items. Typically a single message item with text, or one or more function_call items when the model wants to call tools.
A message output item.
Option 1
Option 2
Show child attributes
usage
object
Token and credit usage.
Show child attributes
server_tool_calls
object[]
Mavera's built-in server-side tools automatically executed during this request. Only present when server tools were used.
Show child attributes
analysis
object
Structured analysis data. Present when analysis_mode is true.
Show child attributes
parsed
object
Present when text.format.type is json_schema. Contains the parsed JSON object — a convenience field, same data is also in output[0].content[0].text.
{ "id": "resp_abc123def456abc123def456", "object": "response", "created_at": 1706345678, "status": "completed", "model": "mavera-1", "output": [ { "id": "msg_abc123def456", "type": "message", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Quantum computing uses quantum bits (qubits) that can exist in multiple states simultaneously, unlike classical bits that are either 0 or 1. This allows quantum computers to process many possibilities at once." } ] } ], "usage": { "input_tokens": 42, "output_tokens": 68, "total_tokens": 110, "credits_used": 3 }}
{
"error": {
"message": "Model 'unknown-model' is not supported. Use GET /api/v1/models to see available models.",
"type": "invalid_request_error",
"code": "invalid_model",
"param": "model"
}
}
{
"error": {
"message": "Invalid API key. Ensure your key starts with 'mvra_live_' and has not been revoked.",
"type": "authentication_error",
"code": "invalid_api_key",
"param": null
}
}
{
"error": {
"message": "Insufficient credits. Please upgrade your subscription or wait for your next billing cycle.",
"type": "insufficient_credits",
"code": "credits_exhausted",
"param": null
}
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Mavera","colors":{"primary":"#e8e8e8","light":"#ffffff","dark":"#e8e8e8"},"logo":{"light":"https://mintcdn.com/mavera/T2ypa1MZ9aQiSnM6/logo/light.svg?fit=max\u0026auto=format\u0026n=T2ypa1MZ9aQiSnM6\u0026q=85\u0026s=836c41b392230c41f0a779f9ac0f31ba","dark":"https://mintcdn.com/mavera/T2ypa1MZ9aQiSnM6/logo/dark.svg?fit=max\u0026auto=format\u0026n=T2ypa1MZ9aQiSnM6\u0026q=85\u0026s=c76e56407eb60d74a0e80e8762784793","href":"https://mavera.io"},"favicon":"/favicon.svg","api":{"openapi":"openapi.json","playground":{},"examples":{"languages":["curl","python","javascript","go"]}},"appearance":{"default":"dark","strict":true},"background":{"color":{"dark":"#080808"}},"navbar":{"links":[{"href":"https://app.mavera.io","label":"Dashboard"},{"href":"https://status.mavera.io","label":"Status"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.mavera.io/settings/developer/api-keys"}},"footer":{"socials":{"website":"https://mavera.io","linkedin":"https://www.linkedin.com/company/mavera-inc"}},"search":{"prompt":"Search documentation..."},"seo":{"indexing":"navigable"},"fonts":{"heading":{"family":"Inter","weight":300},"body":{"family":"Inter","weight":400}},"styling":{"codeblocks":"dark","latex":true},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"API Status","icon":"signal","href":"https://status.mavera.io"},{"anchor":"Support","icon":"envelope","href":"mailto:support@mavera.io"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mavera","hasAudioNarration":false,"actualSubdomain":"mavera","customDomains":["docs.mavera.io"],"gitSource":{"type":"github","owner":"mavera-ai","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae948c1e103a00adaf94015:success","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Integrations","count":300},{"language":"default","tag":"API Reference","count":75},{"language":"default","tag":"Playbooks","count":29},{"language":"default","tag":"Documentation","count":29},{"language":"default","tag":"Meetings","count":13},{"language":"default","tag":"Features","count":11},{"language":"default","tag":"Meta Ads","count":11},{"language":"default","tag":"HubSpot","count":9},{"language":"default","tag":"Salesforce","count":9},{"language":"default","tag":"Shopify","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar{background:#000000!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-bottom:1px solid rgba(255,255,255,0.07)!important}[class*=\"nav-tabs\"],.nav-tabs{background:none!important;background-color:transparent!important;border:none!important;border-radius:0!important;box-shadow:none!important;padding:0!important}[class*=\"nav-tabs-item\"],.nav-tabs-item{background:none!important;background-color:transparent!important;border:none!important;border-radius:0!important;box-shadow:none!important;color:rgba(240,240,240,0.50)!important;font-size:13px!important;font-weight:400!important;padding:8px 12px!important}[class*=\"nav-tabs-item\"]:hover,.nav-tabs-item:hover{background:none!important;color:rgba(240,240,240,0.88)!important;box-shadow:none!important}[class*=\"nav-tabs-item\"][data-active],.nav-tabs-item[data-active],[class*=\"nav-tabs-item\"][aria-selected=\"true\"],.nav-tabs-item[aria-selected=\"true\"]{background:none!important;color:#f0f0f0!important;box-shadow:none!important;border-bottom:1px solid #f0f0f0!important}#sidebar{background:#080808!important;border-right:1px solid rgba(255,255,255,0.07)!important}.sidebar-group-header{font-size:11px!important;font-weight:500!important;letter-spacing:0.10em!important;text-transform:uppercase!important;color:rgba(240,240,240,0.50)!important}#sidebar-content li a{color:rgba(240,240,240,0.68)!important;font-weight:300!important;font-size:13px!important}#sidebar-content li a:hover{color:#f0f0f0!important}#sidebar-content li[data-active] a{color:#f0f0f0!important;font-weight:400!important}.nav-anchor{color:rgba(240,240,240,0.50)!important;font-size:13px!important}.nav-anchor:hover{color:rgba(240,240,240,0.88)!important}.navbar-link{color:rgba(240,240,240,0.50)!important;font-size:13px!important}.navbar-link:hover{color:rgba(240,240,240,0.88)!important}#topbar-cta-button{background:rgba(255,255,255,0.92)!important;color:#000!important;border:none!important;border-radius:100px!important;font-size:12px!important;font-weight:500!important}h1{font-weight:200!important;letter-spacing:-0.03em!important}h2{font-weight:300!important;letter-spacing:-0.025em!important}h3,h4{font-weight:300!important}.code-block,.code-group{background:#0a0a0a!important;border:1px solid rgba(255,255,255,0.08)!important;border-radius:10px!important;overflow:hidden!important}.code-group [class*=\"tab\"],.code-group [role=\"tablist\"]{background:#0f0f0f!important;border-bottom:1px solid rgba(255,255,255,0.06)!important}.code-group [class*=\"tab\"][data-active],.code-group [role=\"tab\"][aria-selected=\"true\"]{color:#818cf8!important;border-bottom:2px solid #818cf8!important}.code-block pre,.code-group pre{background:#0a0a0a!important;padding:20px!important;margin:0!important;font-size:13px!important;line-height:1.65!important}.code-block button[class*=\"copy\"],.code-group button[class*=\"copy\"]{color:rgba(240,240,240,0.28)!important;transition:color 150ms ease!important}.code-block button[class*=\"copy\"]:hover,.code-group button[class*=\"copy\"]:hover{color:rgba(240,240,240,0.68)!important}.card{background:#0f0f0f!important;border:1px solid rgba(255,255,255,0.06)!important;border-radius:10px!important;transition:transform 150ms cubic-bezier(0.16,1,0.3,1),\n border-color 150ms ease,\n box-shadow 150ms ease!important}.card:hover{border-color:rgba(129,140,248,0.3)!important;box-shadow:0 0 20px rgba(129,140,248,0.06)!important;transform:translateY(-2px)}.card .icon{color:#818cf8!important}.callout{background:#0f0f0f!important;border:1px solid rgba(255,255,255,0.07)!important;border-radius:8px!important;border-left:3px solid #818cf8!important}.callout[data-type=\"info\"],.callout:has(.lucide-info),.callout:has([class*=\"info\"]){border-left-color:#818cf8!important}.callout[data-type=\"warning\"],.callout:has(.lucide-alert-triangle),.callout:has([class*=\"warning\"]){border-left-color:#fb923c!important}.callout[data-type=\"tip\"],.callout:has(.lucide-lightbulb),.callout:has([class*=\"tip\"]){border-left-color:#34d399!important}.callout[data-type=\"check\"],.callout:has(.lucide-check),.callout:has([class*=\"check\"]){border-left-color:#4ade80!important}.accordion{background:#0f0f0f!important;border:1px solid rgba(255,255,255,0.07)!important;border-radius:8px!important}.accordion[data-active],.accordion[data-state=\"open\"]{border-color:rgba(167,139,250,0.25)!important}.mdx-content table th{font-size:11px!important;font-weight:500!important;letter-spacing:0.06em;text-transform:uppercase;color:rgba(240,240,240,0.50);border-bottom:2px solid rgba(129,140,248,0.2)!important}.mdx-content table td{border-bottom:1px solid rgba(255,255,255,0.05)!important}.mdx-content table tr:nth-child(even) td{background:rgba(255,255,255,0.015)!important}.mermaid{background:#0a0a0a!important;border:1px solid rgba(255,255,255,0.08)!important;border-radius:10px!important;padding:24px 20px!important}.mdx-content a:not(.card):not(.nav-anchor){color:#818cf8!important;text-decoration:none!important;transition:opacity 150ms ease!important}.mdx-content a:not(.card):not(.nav-anchor):hover{opacity:0.75!important}.mdx-content code:not(pre code){background:rgba(129,140,248,0.08)!important;color:#c4b5fd!important;border:1px solid rgba(129,140,248,0.12)!important;border-radius:4px!important;padding:2px 6px!important;font-size:0.88em!important}.mdx-content hr{border:none!important;height:1px!important;background:linear-gradient(90deg,\n transparent,\n rgba(129,140,248,0.15) 20%,\n rgba(167,139,250,0.15) 50%,\n rgba(129,140,248,0.15) 80%,\n transparent\n )!important;margin:40px 0!important}.step::before,.steps [class*=\"indicator\"]{background:#818cf8!important;color:#000!important}#page-title h1,.page-title h1{background:linear-gradient(135deg, #f0f0f0 0%, #a78bfa 100%)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important}.toc-item[data-active]{color:#818cf8!important;border-left-color:#818cf8!important}#search-bar-entry,#search-bar-entry-mobile,[id=\"search-bar-entry\"]{background:#161616!important;border:1px solid rgba(255,255,255,0.07)!important;border-radius:8px!important}#search-bar-entry:focus-within{border-color:rgba(129,140,248,0.4)!important;box-shadow:0 0 0 2px rgba(129,140,248,0.1)!important}.pagination-prev,.pagination-next{background:transparent!important;border:1px solid rgba(255,255,255,0.07)!important;border-radius:8px!important;transition:border-color 150ms ease!important}.pagination-prev:hover,.pagination-next:hover{border-color:rgba(129,140,248,0.3)!important}footer{border-top:1px solid rgba(255,255,255,0.07)!important}::selection{background:rgba(129,140,248,0.25)!important;color:#f0f0f0!important}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.10);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.18)}@media (prefers-reduced-motion: reduce){*{animation-duration:0.01ms!important;transition-duration:0.01ms!important}}"}]}
{"page":{"pagePath":"api-reference/responses/create-a-response","slug":"/api-reference/responses/create-a-response","pageMetadata":{"title":"Create a response","description":"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via `persona_id` to prepend a curated system prompt.\n\nWhen `stream: true`, the response is a series of named `text/event-stream` Server-Sent Events (e.g. `response.created`, `response.output_text.delta`, `response.completed`). The stream ends with `data: [DONE]`.","deprecated":null,"version":null,"openapi":"/openapi.json post /responses","href":"/api-reference/responses/create-a-response","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via \", _jsx(_components.code, {\n children: \"persona_id\"\n }), \" to prepend a curated system prompt.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"When \", _jsx(_components.code, {\n children: \"stream: true\"\n }), \", the response is a series of named \", _jsx(_components.code, {\n children: \"text/event-stream\"\n }), \" Server-Sent Events (e.g. \", _jsx(_components.code, {\n children: \"response.created\"\n }), \", \", _jsx(_components.code, {\n children: \"response.output_text.delta\"\n }), \", \", _jsx(_components.code, {\n children: \"response.completed\"\n }), \"). The stream ends with \", _jsx(_components.code, {\n children: \"data: [DONE]\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Create a response","description":"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via `persona_id` to prepend a curated system prompt.\n\nWhen `stream: true`, the response is a series of named `text/event-stream` Server-Sent Events (e.g. `response.created`, `response.output_text.delta`, `response.completed`). The stream ends with `data: [DONE]`.","deprecated":null,"version":null,"openapi":"/openapi.json post /responses","href":"/api-reference/responses/create-a-response","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/mavera/3e138273e4981ae9/brand.js"],"openApiReferenceData":{"operation":{"operationId":"createResponse","summary":"Create a response","description":"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via `persona_id` to prepend a curated system prompt.\n\nWhen `stream: true`, the response is a series of named `text/event-stream` Server-Sent Events (e.g. `response.created`, `response.output_text.delta`, `response.completed`). The stream ends with `data: [DONE]`.","tags":["Responses"],"x-codeSamples":[{"lang":"curl","label":"cURL","source":"curl -X POST https://app.mavera.io/api/v1/responses \\\n -H \"Authorization: Bearer mvra_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"mavera-1\",\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"input\": \"Explain quantum computing in simple terms.\"\n }'"},{"lang":"python","label":"Python","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"Explain quantum computing in simple terms.\",\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n)\n\n# Access the text output\nprint(response.output[0].content[0].text)\nprint(f\"Credits used: {response.usage.credits_used}\")"},{"lang":"javascript","label":"JavaScript","source":"import OpenAI from \"openai\";\n\nconst client = new OpenAI({\n apiKey: \"mvra_live_your_key_here\",\n baseURL: \"https://app.mavera.io/api/v1\",\n});\n\nconst response = await client.responses.create({\n model: \"mavera-1\",\n input: \"Explain quantum computing in simple terms.\",\n // @ts-ignore - Mavera custom field\n persona_id: \"YOUR_PERSONA_ID\",\n});\n\nconsole.log(response.output[0].content[0].text);\nconsole.log(\"Credits used:\", response.usage.credits_used);"},{"lang":"curl","label":"cURL (Streaming)","source":"curl -X POST https://app.mavera.io/api/v1/responses \\\n -H \"Authorization: Bearer mvra_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"mavera-1\",\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"input\": \"Write a haiku about AI.\",\n \"stream\": true\n }'"},{"lang":"python","label":"Python (Streaming)","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nwith client.responses.stream(\n model=\"mavera-1\",\n input=\"Write a haiku about AI.\",\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n) as stream:\n for event in stream:\n if event.type == \"response.output_text.delta\":\n print(event.delta, end=\"\", flush=True)"},{"lang":"curl","label":"cURL (With Image)","source":"curl -X POST https://app.mavera.io/api/v1/responses \\\n -H \"Authorization: Bearer mvra_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"mavera-1\",\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n { \"type\": \"input_text\", \"text\": \"What is in this image?\" },\n { \"type\": \"input_image\", \"image_url\": \"https://your-bucket.s3.amazonaws.com/image.png\" }\n ]\n }\n ]\n }'"},{"lang":"python","label":"Python (Analysis Mode)","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"How do millennials feel about remote work?\",\n extra_body={\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"analysis_mode\": True,\n },\n)\n\nprint(response.output[0].content[0].text)\nanalysis = response.analysis\nprint(f\"Confidence: {analysis['confidence']}/10\")\nprint(f\"Emotional valence: {analysis['emotion']['emotional_valence']}/10\")\nprint(f\"Biases: {[b['name'] for b in analysis['biases']]}\")"},{"lang":"python","label":"Python (Structured Output)","source":"from openai import OpenAI\nimport json\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"Review this product: Great quality, fast shipping!\",\n extra_body={\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"text\": {\n \"format\": {\n \"type\": \"json_schema\",\n \"json_schema\": {\n \"name\": \"product_review\",\n \"strict\": True,\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"sentiment\": {\"type\": \"string\", \"enum\": [\"positive\", \"neutral\", \"negative\"]},\n \"score\": {\"type\": \"number\"},\n \"summary\": {\"type\": \"string\"}\n },\n \"required\": [\"sentiment\", \"score\", \"summary\"]\n }\n }\n }\n }\n },\n)\n\ndata = response.parsed # Already parsed for you\nprint(f\"Sentiment: {data['sentiment']}, Score: {data['score']}/10\")"},{"lang":"python","label":"Python (Tool Calling)","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\ntools = [\n {\n \"type\": \"function\",\n \"name\": \"get_weather\",\n \"description\": \"Get the weather for a city\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\"type\": \"string\", \"description\": \"City name\"}\n },\n \"required\": [\"city\"]\n }\n }\n]\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"What's the weather in New York?\",\n tools=tools,\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n)\n\n# Check for function calls in output\nfor item in response.output:\n if item.type == \"function_call\":\n print(f\"Tool: {item.name}, Args: {item.arguments}\")\n # Execute the tool and send results back\n result = get_weather(item.name, item.arguments)\n follow_up = client.responses.create(\n model=\"mavera-1\",\n input=[\n *response.output,\n {\n \"type\": \"function_call_output\",\n \"call_id\": item.call_id,\n \"output\": str(result)\n }\n ],\n tools=tools,\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n )\n print(follow_up.output[0].content[0].text)"}],"requestBody":"84860e30-0c07-4951-a088-d6a5d61f1649","responses":{"200":"8039a7bc-366c-4b5c-bef3-5a8213afd10e","400":"19bfc55b-79fc-4dac-ba3b-0062770715bf","401":"ecfdb0af-3e01-4330-b509-f6b1ab198f9f","402":"fb9c42ac-c64f-440f-97fa-d4d232fd0a3b","429":"edad90ee-962a-4f38-a7c1-1e06ebde8d78","500":"9fe930cc-80f3-41d3-a3b8-e3e69daa284a"},"method":"post","type":"path","servers":["dd3ebc4c-722d-4982-b6aa-259e90a41f29","f4ba6476-5250-4cf6-92a3-d33951724a06"],"security":["4a6597a9-08e8-48f1-853f-3946bd55d1cc"],"path":"/responses","baseUrlOptions":["https://app.mavera.io/api/v1","https://dev.mavera.io/api/v1"],"title":"Create a response","codeSamples":[{"label":"cURL","lang":"curl","source":"curl -X POST https://app.mavera.io/api/v1/responses \\\n -H \"Authorization: Bearer mvra_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"mavera-1\",\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"input\": \"Explain quantum computing in simple terms.\"\n }'"},{"label":"Python","lang":"python","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"Explain quantum computing in simple terms.\",\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n)\n\n# Access the text output\nprint(response.output[0].content[0].text)\nprint(f\"Credits used: {response.usage.credits_used}\")"},{"label":"JavaScript","lang":"javascript","source":"import OpenAI from \"openai\";\n\nconst client = new OpenAI({\n apiKey: \"mvra_live_your_key_here\",\n baseURL: \"https://app.mavera.io/api/v1\",\n});\n\nconst response = await client.responses.create({\n model: \"mavera-1\",\n input: \"Explain quantum computing in simple terms.\",\n // @ts-ignore - Mavera custom field\n persona_id: \"YOUR_PERSONA_ID\",\n});\n\nconsole.log(response.output[0].content[0].text);\nconsole.log(\"Credits used:\", response.usage.credits_used);"},{"label":"cURL (Streaming)","lang":"curl","source":"curl -X POST https://app.mavera.io/api/v1/responses \\\n -H \"Authorization: Bearer mvra_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"mavera-1\",\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"input\": \"Write a haiku about AI.\",\n \"stream\": true\n }'"},{"label":"Python (Streaming)","lang":"python","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nwith client.responses.stream(\n model=\"mavera-1\",\n input=\"Write a haiku about AI.\",\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n) as stream:\n for event in stream:\n if event.type == \"response.output_text.delta\":\n print(event.delta, end=\"\", flush=True)"},{"label":"cURL (With Image)","lang":"curl","source":"curl -X POST https://app.mavera.io/api/v1/responses \\\n -H \"Authorization: Bearer mvra_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"mavera-1\",\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n { \"type\": \"input_text\", \"text\": \"What is in this image?\" },\n { \"type\": \"input_image\", \"image_url\": \"https://your-bucket.s3.amazonaws.com/image.png\" }\n ]\n }\n ]\n }'"},{"label":"Python (Analysis Mode)","lang":"python","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"How do millennials feel about remote work?\",\n extra_body={\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"analysis_mode\": True,\n },\n)\n\nprint(response.output[0].content[0].text)\nanalysis = response.analysis\nprint(f\"Confidence: {analysis['confidence']}/10\")\nprint(f\"Emotional valence: {analysis['emotion']['emotional_valence']}/10\")\nprint(f\"Biases: {[b['name'] for b in analysis['biases']]}\")"},{"label":"Python (Structured Output)","lang":"python","source":"from openai import OpenAI\nimport json\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"Review this product: Great quality, fast shipping!\",\n extra_body={\n \"persona_id\": \"YOUR_PERSONA_ID\",\n \"text\": {\n \"format\": {\n \"type\": \"json_schema\",\n \"json_schema\": {\n \"name\": \"product_review\",\n \"strict\": True,\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"sentiment\": {\"type\": \"string\", \"enum\": [\"positive\", \"neutral\", \"negative\"]},\n \"score\": {\"type\": \"number\"},\n \"summary\": {\"type\": \"string\"}\n },\n \"required\": [\"sentiment\", \"score\", \"summary\"]\n }\n }\n }\n }\n },\n)\n\ndata = response.parsed # Already parsed for you\nprint(f\"Sentiment: {data['sentiment']}, Score: {data['score']}/10\")"},{"label":"Python (Tool Calling)","lang":"python","source":"from openai import OpenAI\n\nclient = OpenAI(\n api_key=\"mvra_live_your_key_here\",\n base_url=\"https://app.mavera.io/api/v1\",\n)\n\ntools = [\n {\n \"type\": \"function\",\n \"name\": \"get_weather\",\n \"description\": \"Get the weather for a city\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\"type\": \"string\", \"description\": \"City name\"}\n },\n \"required\": [\"city\"]\n }\n }\n]\n\nresponse = client.responses.create(\n model=\"mavera-1\",\n input=\"What's the weather in New York?\",\n tools=tools,\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n)\n\n# Check for function calls in output\nfor item in response.output:\n if item.type == \"function_call\":\n print(f\"Tool: {item.name}, Args: {item.arguments}\")\n # Execute the tool and send results back\n result = get_weather(item.name, item.arguments)\n follow_up = client.responses.create(\n model=\"mavera-1\",\n input=[\n *response.output,\n {\n \"type\": \"function_call_output\",\n \"call_id\": item.call_id,\n \"output\": str(result)\n }\n ],\n tools=tools,\n extra_body={\"persona_id\": \"YOUR_PERSONA_ID\"},\n )\n print(follow_up.output[0].content[0].text)"}],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","input","persona_id"],"properties":{"model":{"type":"string","description":"Model ID to use for the response.","enum":["mavera-1"],"example":"mavera-1","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"input":{"oneOf":[{"type":"string","description":"The input to the model. Can be a simple string for single-turn requests, or an array of input items for multi-turn conversations with tool calls.","maxLength":100000,"example":"Explain quantum computing in simple terms.","isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","description":"A conversation message.","required":["role","content"],"properties":{"role":{"type":"string","enum":["system","user","assistant"],"description":"The role of the message author.","example":"user","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"The content of the message. Can be a string or an array of content parts.","maxLength":100000,"example":"What's in this image?","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["input_text","text"],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"The text content.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","image_url"],"properties":{"type":{"type":"string","enum":["input_image"],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"image_url":{"type":"string","format":"uri","description":"URL of the image. Must be publicly accessible.","example":"https://your-bucket.s3.amazonaws.com/image.png","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].oneOf.1.image_url","typeLabel":"string\u003curi>"},"detail":{"type":"string","enum":["high","low","auto"],"default":"auto","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].oneOf.1.detail","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The content of the message. Can be a string or an array of content parts.","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.content","typeLabel":"string | object[]"},"type":{"type":"string","enum":["message"],"description":"Optional item type (defaults to 'message').","uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"attachments":{"type":"array","description":"Mavera extension: optional array of image or document attachments.","maxItems":10,"items":{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["image","document"],"example":"image","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.attachments.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","example":"https://your-bucket.s3.amazonaws.com/image.png","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.attachments.items.[INDEX].url","typeLabel":"string\u003curi>"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.attachments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0.attachments","typeLabel":"object[]"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A function call item — used when replaying a prior response that contained function calls.","required":["type","call_id","name","arguments"],"properties":{"type":{"type":"string","enum":["function_call"],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"call_id":{"type":"string","description":"The call ID from the prior response's function_call output item.","example":"call_abc123","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.call_id","typeLabel":"string"},"name":{"type":"string","description":"The function name.","example":"get_weather","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.name","typeLabel":"string"},"arguments":{"type":"string","description":"JSON-encoded function arguments.","example":"{\"city\":\"New York\"}","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1.arguments","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A function call output — the result of executing a function call.","required":["type","call_id","output"],"properties":{"type":{"type":"string","enum":["function_call_output"],"isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"call_id":{"type":"string","description":"The call_id from the corresponding function_call item.","example":"call_abc123","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.call_id","typeLabel":"string"},"output":{"type":"string","description":"The result of the function call as a string.","example":"72°F, sunny","isRequired":true,"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2.output","typeLabel":"string"}},"uniqueKey":"input.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"input.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The input to the model. Can be a simple string for single-turn requests, or an array of input items for multi-turn conversations with tool calls.","maxItems":128,"minItems":1,"example":"Explain quantum computing in simple terms.","isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"input","typeLabel":"string | object[]"},"persona_id":{"type":"string","description":"**Required.** A Mavera persona CUID. The persona's curated system prompt is prepended to the conversation. Use `GET /api/v1/personas` to list available personas.","example":"clx1abc2d0001abcdef123456","isRequired":true,"uniqueKey":"persona_id","typeLabel":"string"},"instructions":{"type":"string","description":"Optional system-level instructions to guide the model's behavior. Appended to the persona system prompt.","example":"Always respond in bullet points.","uniqueKey":"instructions","typeLabel":"string"},"stream":{"type":"boolean","default":false,"description":"If `true`, responses are streamed as named Server-Sent Events (SSE). The stream ends with `data: [DONE]`.","example":false,"uniqueKey":"stream","typeLabel":"boolean"},"text":{"type":"object","description":"Output format configuration. Replaces the legacy `response_format` field.","properties":{"format":{"type":"object","required":["type"],"description":"Specify how the model should format its output.","properties":{"type":{"type":"string","enum":["text","json_object","json_schema"],"description":"`text` returns plain text (default). `json_object` returns valid JSON. `json_schema` returns JSON matching your schema.","isRequired":true,"uniqueKey":"text.format.type","typeLabel":"enum\u003cstring>"},"json_schema":{"type":"object","description":"Required when type is `json_schema`.","required":["name","schema"],"properties":{"name":{"type":"string","description":"Schema identifier.","isRequired":true,"uniqueKey":"text.format.json_schema.name","typeLabel":"string"},"schema":{"type":"object","description":"A valid JSON Schema object.","isRequired":true,"uniqueKey":"text.format.json_schema.schema","typeLabel":"object"},"description":{"type":"string","uniqueKey":"text.format.json_schema.description","typeLabel":"string"},"strict":{"type":"boolean","default":true,"uniqueKey":"text.format.json_schema.strict","typeLabel":"boolean"}},"uniqueKey":"text.format.json_schema","typeLabel":"object"}},"example":{"type":"json_schema","json_schema":{"name":"product_review","strict":true,"schema":{"type":"object","properties":{"sentiment":{"type":"string","enum":["positive","neutral","negative"]},"score":{"type":"number"},"summary":{"type":"string"}},"required":["sentiment","score","summary"]}}},"uniqueKey":"text.format","typeLabel":"object"}},"uniqueKey":"text","typeLabel":"object"},"tools":{"type":"array","maxItems":64,"description":"A list of tools (functions) the model may call. Uses the flat Responses API format — `name` and `parameters` are directly on the tool object.","items":{"type":"object","required":["type","name"],"properties":{"type":{"type":"string","enum":["function"],"description":"Always `function`.","isRequired":true,"uniqueKey":"tools.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"The function name. Must match `[a-zA-Z_][a-zA-Z0-9_-]*`.","example":"get_weather","isRequired":true,"uniqueKey":"tools.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","description":"A description of what the function does.","example":"Get the current weather for a city","uniqueKey":"tools.items.[INDEX].description","typeLabel":"string"},"parameters":{"type":"object","description":"A JSON Schema object describing the function parameters.","example":{"type":"object","properties":{"city":{"type":"string","description":"The city name"}},"required":["city"]},"uniqueKey":"tools.items.[INDEX].parameters","typeLabel":"object"},"strict":{"type":"boolean","default":false,"description":"If true, the model strictly adheres to the parameter schema.","uniqueKey":"tools.items.[INDEX].strict","typeLabel":"boolean"}},"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"example":[{"type":"function","name":"get_weather","description":"Get the current weather for a city","parameters":{"type":"object","properties":{"city":{"type":"string","description":"The city name"}},"required":["city"]}}],"uniqueKey":"tools","typeLabel":"object[]"},"tool_choice":{"oneOf":[{"type":"string","description":"Controls which tool is called. `auto` (default) lets the model decide, `none` disables tools, `required` forces tool use, or `{ type: 'function', name: 'fn' }` forces a specific function.","enum":["auto","none","required"],"example":"auto","uniqueKey":"tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"Controls which tool is called. `auto` (default) lets the model decide, `none` disables tools, `required` forces tool use, or `{ type: 'function', name: 'fn' }` forces a specific function.","required":["type","name"],"example":"auto","properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"The function name to force.","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.name","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"object"}],"uniqueKey":"tool_choice","typeLabel":"enum\u003cstring> | object"},"analysis_mode":{"type":"boolean","default":false,"description":"If `true`, returns structured analysis including emotional metrics, biases, confidence scores, and news relevance. Cannot be used with `text.format`.","example":false,"uniqueKey":"analysis_mode","typeLabel":"boolean"},"canvas_mode":{"type":"boolean","default":false,"description":"If `true`, enables artifact generation mode. The AI will generate structured content wrapped in `\u003cartifact>` tags.","example":false,"uniqueKey":"canvas_mode","typeLabel":"boolean"},"reasoning_effort":{"type":"string","enum":["low","medium","high"],"default":"medium","description":"Controls reasoning depth. `high` produces more thorough responses at the cost of latency.","example":"medium","uniqueKey":"reasoning_effort","typeLabel":"enum\u003cstring>"},"verbosity":{"type":"string","enum":["low","medium","high"],"default":"medium","description":"Controls response detail. `low` for concise, `high` for comprehensive.","example":"medium","uniqueKey":"verbosity","typeLabel":"enum\u003cstring>"},"previous_response_id":{"type":"string","description":"The ID of a prior response to continue. Currently accepted but has no effect — pass full conversation history via `input` instead.","example":"resp_abc123def456","uniqueKey":"previous_response_id","typeLabel":"string"},"store":{"type":"boolean","default":false,"description":"Whether to store the response. Currently accepted but has no effect.","uniqueKey":"store","typeLabel":"boolean"}},"example":{"model":"mavera-1","persona_id":"clx1abc2d0001abcdef123456","input":"Explain quantum computing in simple terms."},"uniqueKey":"","typeLabel":"object"},"example":{"model":"mavera-1","persona_id":"clx1abc2d0001abcdef123456","input":"Explain quantum computing in simple terms."},"examples":{"Example":{"title":"Example","value":{"model":"mavera-1","persona_id":"clx1abc2d0001abcdef123456","input":"Explain quantum computing in simple terms."}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"8039a7bc-366c-4b5c-bef3-5a8213afd10e":{"description":"Successful response. Returns a response object with the model-generated output and credit cost.","content":{"application/json":{"schema":{"type":"object","description":"A completed response object.","properties":{"id":{"type":"string","description":"Unique response ID with `resp_` prefix.","example":"resp_abc123def456abc123def456","uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","enum":["response"],"description":"Always `response`.","example":"response","uniqueKey":"object","typeLabel":"enum\u003cstring>"},"created_at":{"type":"integer","description":"Unix timestamp (seconds) when the response was created.","example":1706345678,"uniqueKey":"created_at","typeLabel":"integer"},"status":{"type":"string","enum":["completed","in_progress","failed"],"description":"Response status.","example":"completed","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"The model used.","example":"mavera-1","uniqueKey":"model","typeLabel":"string"},"output":{"type":"array","description":"Ordered list of output items. Typically a single `message` item with text, or one or more `function_call` items when the model wants to call tools.","items":{"oneOf":[{"type":"object","description":"A message output item.","properties":{"id":{"type":"string","example":"msg_abc123def456","uniqueKey":"output.items.[INDEX].oneOf.0.id","typeLabel":"string"},"type":{"type":"string","enum":["message"],"uniqueKey":"output.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"role":{"type":"string","enum":["assistant"],"uniqueKey":"output.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["completed","in_progress"],"uniqueKey":"output.items.[INDEX].oneOf.0.status","typeLabel":"enum\u003cstring>"},"content":{"type":"array","description":"Content parts of the message.","items":{"type":"object","properties":{"type":{"type":"string","enum":["output_text"],"uniqueKey":"output.items.[INDEX].oneOf.0.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"The generated text.","uniqueKey":"output.items.[INDEX].oneOf.0.content.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"output.items.[INDEX].oneOf.0.content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"output.items.[INDEX].oneOf.0.content","typeLabel":"object[]"}},"uniqueKey":"output.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A function call output item — the model wants you to execute this.","properties":{"type":{"type":"string","enum":["function_call"],"uniqueKey":"output.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","example":"fc_abc123def456","uniqueKey":"output.items.[INDEX].oneOf.1.id","typeLabel":"string"},"call_id":{"type":"string","description":"Use this as `call_id` in your `function_call_output` input item.","example":"call_abc123","uniqueKey":"output.items.[INDEX].oneOf.1.call_id","typeLabel":"string"},"name":{"type":"string","example":"get_weather","uniqueKey":"output.items.[INDEX].oneOf.1.name","typeLabel":"string"},"arguments":{"type":"string","description":"JSON-encoded function arguments.","example":"{\"city\":\"New York\"}","uniqueKey":"output.items.[INDEX].oneOf.1.arguments","typeLabel":"string"}},"uniqueKey":"output.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"output.items.[INDEX]","typeLabel":"object"},"uniqueKey":"output","typeLabel":"object[]"},"usage":{"type":"object","description":"Token and credit usage.","properties":{"input_tokens":{"type":"integer","description":"Tokens in the input.","example":42,"uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Tokens in the output.","example":68,"uniqueKey":"usage.output_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"Total tokens.","example":110,"uniqueKey":"usage.total_tokens","typeLabel":"integer"},"credits_used":{"type":"integer","description":"Credits consumed from your subscription.","example":3,"uniqueKey":"usage.credits_used","typeLabel":"integer"}},"uniqueKey":"usage","typeLabel":"object"},"server_tool_calls":{"type":"array","description":"Mavera's built-in server-side tools automatically executed during this request. Only present when server tools were used.","items":{"type":"object","properties":{"name":{"type":"string","example":"tavily_search","uniqueKey":"server_tool_calls.items.[INDEX].name","typeLabel":"string"},"args":{"type":"object","example":{"query":"latest AI news"},"uniqueKey":"server_tool_calls.items.[INDEX].args","typeLabel":"object"},"result":{"type":"object","uniqueKey":"server_tool_calls.items.[INDEX].result","typeLabel":"object"}},"uniqueKey":"server_tool_calls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"server_tool_calls","typeLabel":"object[]"},"analysis":{"type":"object","description":"Structured analysis data. Present when `analysis_mode` is `true`.","properties":{"response":{"type":"string","uniqueKey":"analysis.response","typeLabel":"string"},"emotion":{"type":"object","properties":{"emotional_valence":{"type":"number","uniqueKey":"analysis.emotion.emotional_valence","typeLabel":"number"},"emotional_arousal":{"type":"number","uniqueKey":"analysis.emotion.emotional_arousal","typeLabel":"number"},"explanation":{"type":"string","uniqueKey":"analysis.emotion.explanation","typeLabel":"string"}},"uniqueKey":"analysis.emotion","typeLabel":"object"},"pragmatic":{"type":"object","properties":{"pragmatic_realism":{"type":"number","uniqueKey":"analysis.pragmatic.pragmatic_realism","typeLabel":"number"},"pragmatic_actionability":{"type":"number","uniqueKey":"analysis.pragmatic.pragmatic_actionability","typeLabel":"number"},"explanation":{"type":"string","uniqueKey":"analysis.pragmatic.explanation","typeLabel":"string"}},"uniqueKey":"analysis.pragmatic","typeLabel":"object"},"biases":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","uniqueKey":"analysis.biases.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"analysis.biases.items.[INDEX].description","typeLabel":"string"},"impact":{"type":"number","uniqueKey":"analysis.biases.items.[INDEX].impact","typeLabel":"number"},"examples":{"type":"array","items":{"type":"string","uniqueKey":"analysis.biases.items.[INDEX].examples.items.[INDEX]","typeLabel":"string"},"uniqueKey":"analysis.biases.items.[INDEX].examples","typeLabel":"string[]"},"suggested_mitigation":{"type":"string","uniqueKey":"analysis.biases.items.[INDEX].suggested_mitigation","typeLabel":"string"}},"uniqueKey":"analysis.biases.items.[INDEX]","typeLabel":"object"},"uniqueKey":"analysis.biases","typeLabel":"object[]"},"confidence":{"type":"number","uniqueKey":"analysis.confidence","typeLabel":"number"},"spread_of_opinions":{"type":"number","uniqueKey":"analysis.spread_of_opinions","typeLabel":"number"},"extreme_min_opinion":{"type":"string","uniqueKey":"analysis.extreme_min_opinion","typeLabel":"string"},"extreme_max_opinion":{"type":"string","uniqueKey":"analysis.extreme_max_opinion","typeLabel":"string"},"news_relevant":{"type":"array","items":{"type":"object","properties":{"story":{"type":"string","uniqueKey":"analysis.news_relevant.items.[INDEX].story","typeLabel":"string"},"impact":{"type":"number","uniqueKey":"analysis.news_relevant.items.[INDEX].impact","typeLabel":"number"},"source":{"type":"string","uniqueKey":"analysis.news_relevant.items.[INDEX].source","typeLabel":"string"},"source_url":{"type":"string","uniqueKey":"analysis.news_relevant.items.[INDEX].source_url","typeLabel":"string"}},"uniqueKey":"analysis.news_relevant.items.[INDEX]","typeLabel":"object"},"uniqueKey":"analysis.news_relevant","typeLabel":"object[]"},"follow_up_questions":{"type":"array","items":{"type":"string","uniqueKey":"analysis.follow_up_questions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"analysis.follow_up_questions","typeLabel":"string[]"}},"uniqueKey":"analysis","typeLabel":"object"},"parsed":{"type":"object","description":"Present when `text.format.type` is `json_schema`. Contains the parsed JSON object — a convenience field, same data is also in `output[0].content[0].text`.","example":{"sentiment":"positive","score":8.5,"summary":"Great product"},"uniqueKey":"parsed","typeLabel":"object"}},"example":{"id":"resp_abc123def456abc123def456","object":"response","created_at":1706345678,"status":"completed","model":"mavera-1","output":[{"id":"msg_abc123def456","type":"message","role":"assistant","status":"completed","content":[{"type":"output_text","text":"Quantum computing uses qubits that can exist in multiple states simultaneously, enabling processing of many possibilities at once."}]}],"usage":{"input_tokens":42,"output_tokens":68,"total_tokens":110,"credits_used":3}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"resp_abc123def456abc123def456","object":"response","created_at":1706345678,"status":"completed","model":"mavera-1","output":[{"id":"msg_abc123def456","type":"message","role":"assistant","status":"completed","content":[{"type":"output_text","text":"Quantum computing uses quantum bits (qubits) that can exist in multiple states simultaneously, unlike classical bits that are either 0 or 1. This allows quantum computers to process many possibilities at once."}]}],"usage":{"input_tokens":42,"output_tokens":68,"total_tokens":110,"credits_used":3}},"examples":{"Example":{"title":"Example","value":{"id":"resp_abc123def456abc123def456","object":"response","created_at":1706345678,"status":"completed","model":"mavera-1","output":[{"id":"msg_abc123def456","type":"message","role":"assistant","status":"completed","content":[{"type":"output_text","text":"Quantum computing uses quantum bits (qubits) that can exist in multiple states simultaneously, unlike classical bits that are either 0 or 1. This allows quantum computers to process many possibilities at once."}]}],"usage":{"input_tokens":42,"output_tokens":68,"total_tokens":110,"credits_used":3}}}},"exampleType":"examples"},"text/event-stream":{"schema":{"type":"string","description":"SSE stream of named Responses API events. Each event has an `event:` line followed by `data:` JSON. Key events: `response.created`, `response.output_item.added`, `response.output_text.delta`, `response.output_text.done`, `response.output_item.done`, `response.completed`. Stream ends with `data: [DONE]`.","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"examples"},"19bfc55b-79fc-4dac-ba3b-0062770715bf":{"description":"Invalid request — missing required fields, invalid model, or malformed input.","content":{"application/json":{"schema":{"type":"object","description":"All error responses follow this format. The `type` field indicates the category of error, and `code` provides a machine-readable error code.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable error message.","example":"Invalid API key.","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","insufficient_credits","not_found","rate_limit_error","api_error"],"description":"The category of error.","example":"authentication_error","uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A machine-readable error code.","example":"invalid_api_key","uniqueKey":"error.code","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"uniqueKey":"error","typeLabel":"object"}},"example":{"error":{"message":"Invalid API key.","type":"authentication_error","code":"invalid_api_key","param":null}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Model 'unknown-model' is not supported. Use GET /api/v1/models to see available models.","type":"invalid_request_error","code":"invalid_model","param":"model"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Model 'unknown-model' is not supported. Use GET /api/v1/models to see available models.","type":"invalid_request_error","code":"invalid_model","param":"model"}}}},"exampleType":"examples"}},"exampleType":"examples"},"ecfdb0af-3e01-4330-b509-f6b1ab198f9f":{"description":"Authentication error — missing, invalid, or revoked API key.","content":{"application/json":{"schema":{"type":"object","description":"All error responses follow this format. The `type` field indicates the category of error, and `code` provides a machine-readable error code.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable error message.","example":"Invalid API key.","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","insufficient_credits","not_found","rate_limit_error","api_error"],"description":"The category of error.","example":"authentication_error","uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A machine-readable error code.","example":"invalid_api_key","uniqueKey":"error.code","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"uniqueKey":"error","typeLabel":"object"}},"example":{"error":{"message":"Invalid API key.","type":"authentication_error","code":"invalid_api_key","param":null}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Invalid API key. Ensure your key starts with 'mvra_live_' and has not been revoked.","type":"authentication_error","code":"invalid_api_key","param":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid API key. Ensure your key starts with 'mvra_live_' and has not been revoked.","type":"authentication_error","code":"invalid_api_key","param":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"fb9c42ac-c64f-440f-97fa-d4d232fd0a3b":{"description":"Insufficient credits — your subscription has run out of credits.","content":{"application/json":{"schema":{"type":"object","description":"All error responses follow this format. The `type` field indicates the category of error, and `code` provides a machine-readable error code.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable error message.","example":"Invalid API key.","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","insufficient_credits","not_found","rate_limit_error","api_error"],"description":"The category of error.","example":"authentication_error","uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A machine-readable error code.","example":"invalid_api_key","uniqueKey":"error.code","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"uniqueKey":"error","typeLabel":"object"}},"example":{"error":{"message":"Invalid API key.","type":"authentication_error","code":"invalid_api_key","param":null}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Insufficient credits. Please upgrade your subscription or wait for your next billing cycle.","type":"insufficient_credits","code":"credits_exhausted","param":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Insufficient credits. Please upgrade your subscription or wait for your next billing cycle.","type":"insufficient_credits","code":"credits_exhausted","param":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"edad90ee-962a-4f38-a7c1-1e06ebde8d78":{"description":"Rate limit exceeded. Check the `Retry-After` header.","headers":{"Retry-After":{"schema":{"type":"integer","example":30},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","description":"All error responses follow this format. The `type` field indicates the category of error, and `code` provides a machine-readable error code.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable error message.","example":"Invalid API key.","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","insufficient_credits","not_found","rate_limit_error","api_error"],"description":"The category of error.","example":"authentication_error","uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A machine-readable error code.","example":"invalid_api_key","uniqueKey":"error.code","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"uniqueKey":"error","typeLabel":"object"}},"example":{"error":{"message":"Invalid API key.","type":"authentication_error","code":"invalid_api_key","param":null}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Rate limit exceeded. Please retry after 30 seconds.","type":"rate_limit_error","code":"rate_limit_exceeded","param":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Rate limit exceeded. Please retry after 30 seconds.","type":"rate_limit_error","code":"rate_limit_exceeded","param":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"9fe930cc-80f3-41d3-a3b8-e3e69daa284a":{"description":"Internal server error — an unexpected error occurred on our side.","content":{"application/json":{"schema":{"type":"object","description":"All error responses follow this format. The `type` field indicates the category of error, and `code` provides a machine-readable error code.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable error message.","example":"Invalid API key.","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","insufficient_credits","not_found","rate_limit_error","api_error"],"description":"The category of error.","example":"authentication_error","uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A machine-readable error code.","example":"invalid_api_key","uniqueKey":"error.code","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request parameter that caused the error, if applicable.","example":null,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"uniqueKey":"error","typeLabel":"object"}},"example":{"error":{"message":"Invalid API key.","type":"authentication_error","code":"invalid_api_key","param":null}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"An internal error occurred. Please try again later.","type":"api_error","code":"internal_error","param":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"An internal error occurred. Please try again later.","type":"api_error","code":"internal_error","param":null}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"4a6597a9-08e8-48f1-853f-3946bd55d1cc":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key prefixed with `mvra_live_`. Create keys at **Settings > Developer > API Keys**.","scopes":[]}}},"servers":{"dd3ebc4c-722d-4982-b6aa-259e90a41f29":{"url":"https://app.mavera.io/api/v1","description":"Production"},"f4ba6476-5250-4cf6-92a3-d33951724a06":{"url":"https://dev.mavera.io/api/v1","description":"Development"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key prefixed with `mvra_live_`. Create keys at **Settings > Developer > API Keys**.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key prefixed with `mvra_live_`. Create keys at **Settings > Developer > API Keys**.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"mavera","siteName":"Mavera","title":"Create a response - Mavera","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-30T13:03:38.431Z","originalFileLocation":"api-reference/responses/create-a-response.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via persona_id to prepend a curated system prompt. When stream: true, the response is a series of named text/event-stream Server-Sent Events (e.g. response.created, response.output_text.delta, response.completed). The stream ends with data: [DONE].\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mavera\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a response - Mavera\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via persona_id to prepend a curated system prompt. When stream: true, the response is a series of named text/event-stream Server-Sent Events (e.g. response.created, response.output_text.delta, response.completed). The stream ends with data: [DONE].\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mavera\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mavera.io/api-reference/responses/create-a-response\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mavera.mintlify.site/_mintlify/api/og/v2?division=Responses\u0026amp;title=Create+a+response\u0026amp;description=Generates+a+model+response+for+the+given+input.+Supports+both+non-streaming+and+SSE+streaming+responses+via+the+OpenAI+Responses+API+format.+Inject+a+Mavera+per\u0026amp;theme=1083daba3b3ce2dd8b4b73fa\u0026amp;signature=9c106ff8f116b7104802705a7e0620f26efe9ed0638676d90dc199e19f393e06\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a response - Mavera\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via persona_id to prepend a curated system prompt. When stream: true, the response is a series of named text/event-stream Server-Sent Events (e.g. response.created, response.output_text.delta, response.completed). The stream ends with data: [DONE].\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mavera.mintlify.site/_mintlify/api/og/v2?division=Responses\u0026amp;title=Create+a+response\u0026amp;description=Generates+a+model+response+for+the+given+input.+Supports+both+non-streaming+and+SSE+streaming+responses+via+the+OpenAI+Responses+API+format.+Inject+a+Mavera+per\u0026amp;theme=1083daba3b3ce2dd8b4b73fa\u0026amp;signature=9c106ff8f116b7104802705a7e0620f26efe9ed0638676d90dc199e19f393e06\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mavera/06nvVnpUxWexgGqS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mavera\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e8e8e8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mavera.io/api-reference/responses/create-a-response\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/responses/create-a-response.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mavera.io/#organization\",\"name\":\"Mavera\",\"url\":\"https://docs.mavera.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mavera/T2ypa1MZ9aQiSnM6/logo/light.svg?fit=max\u0026auto=format\u0026n=T2ypa1MZ9aQiSnM6\u0026q=85\u0026s=836c41b392230c41f0a779f9ac0f31ba\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mavera.io#website\",\"name\":\"Mavera\",\"url\":\"https://docs.mavera.io\",\"publisher\":{\"@id\":\"https://docs.mavera.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mavera.io/api-reference/responses/create-a-response#webpage\",\"url\":\"https://docs.mavera.io/api-reference/responses/create-a-response\",\"name\":\"Create a response\",\"description\":\"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via persona_id to prepend a curated system prompt. When stream: true, the response is a series of named text/event-stream Server-Sent Events (e.g. response.created, response.output_text.delta, response.completed). The stream ends with data: [DONE].\",\"dateModified\":\"2026-03-30T13:03:38.431Z\",\"isPartOf\":{\"@id\":\"https://docs.mavera.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mavera.io/api-reference/responses/create-a-response#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mavera.io/api-reference/responses/create-a-response#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mavera\",\"item\":\"https://docs.mavera.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a response\",\"item\":\"https://docs.mavera.io/api-reference/responses/create-a-response\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mavera.io/api-reference/responses/create-a-response#apireference\",\"headline\":\"Create a response\",\"name\":\"Create a response\",\"description\":\"Generates a model response for the given input. Supports both non-streaming and SSE streaming responses via the OpenAI Responses API format. Inject a Mavera persona via persona_id to prepend a curated system prompt. When stream: true, the response is a series of named text/event-stream Server-Sent Events (e.g. response.created, response.output_text.delta, response.completed). The stream ends with data: [DONE].\",\"url\":\"https://docs.mavera.io/api-reference/responses/create-a-response\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mavera.io/api-reference/responses/create-a-response#webpage\"},\"dateModified\":\"2026-03-30T13:03:38.431Z\",\"publisher\":{\"@id\":\"https://docs.mavera.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mavera.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mavera\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mavera\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/responses/create-a-response.md","siteName":"Mavera","nav":{"global":{"anchors":[{"anchor":"API Status","icon":"signal","href":"https://status.mavera.io"},{"anchor":"Support","icon":"envelope","href":"mailto:support@mavera.io"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"Playbooks","icon":"book","pages":[{"title":"Playbooks","href":"/playbooks"}]},{"tab":"API Reference","groups":[{"group":"System","pages":[{"title":"Health check","description":"Returns the current health status of the API, including database connectivity. Use this endpoint to verify the service is operational. This endpoint does not require authentication.","deprecated":null,"version":null,"openapi":"/openapi.json get /health","href":"/api-reference/system/health-check"}]},{"group":"Responses","pages":[{"title":"Create a response","deprecated":null,"version":null,"openapi":"/openapi.json post /responses","href":"/api-reference/responses/create-a-response"}]},{"group":"Models","pages":[{"title":"List available models","description":"Returns the list of models currently available for chat completions. Each model object includes its capabilities and limits. This endpoint does not require authentication.","deprecated":null,"version":null,"openapi":"/openapi.json get /models","href":"/api-reference/models/list-available-models"}]},{"group":"Personas","pages":[{"title":"List available personas","deprecated":null,"version":null,"openapi":"/openapi.json get /personas","href":"/api-reference/personas/list-available-personas"}]},{"group":"Custom Personas","pages":[{"title":"Create a custom persona","deprecated":null,"version":null,"openapi":"/openapi.json post /personas","href":"/api-reference/custom-personas/create-a-custom-persona"},{"title":"Generate persona suggestions","deprecated":null,"version":null,"openapi":"/openapi.json post /personas/suggestions","href":"/api-reference/custom-personas/generate-persona-suggestions"},{"title":"Get persona details","deprecated":null,"version":null,"openapi":"/openapi.json get /personas/{id}","href":"/api-reference/custom-personas/get-persona-details"},{"title":"Delete a custom persona","deprecated":null,"version":null,"openapi":"/openapi.json delete /personas/{id}","href":"/api-reference/custom-personas/delete-a-custom-persona"},{"title":"Update a custom persona","deprecated":null,"version":null,"openapi":"/openapi.json patch /personas/{id}","href":"/api-reference/custom-personas/update-a-custom-persona"}]},{"group":"Brand Voice","pages":[{"title":"List brand voices","deprecated":null,"version":null,"openapi":"/openapi.json get /brand-voices","href":"/api-reference/brand-voice/list-brand-voices"},{"title":"Create brand voice","deprecated":null,"version":null,"openapi":"/openapi.json post /brand-voices","href":"/api-reference/brand-voice/create-brand-voice"},{"title":"Get brand voice","deprecated":null,"version":null,"openapi":"/openapi.json get /brand-voices/{id}","href":"/api-reference/brand-voice/get-brand-voice"},{"title":"Delete brand voice","deprecated":null,"version":null,"openapi":"/openapi.json delete /brand-voices/{id}","href":"/api-reference/brand-voice/delete-brand-voice"},{"title":"Update brand voice","deprecated":null,"version":null,"openapi":"/openapi.json patch /brand-voices/{id}","href":"/api-reference/brand-voice/update-brand-voice"}]},{"group":"Generations","pages":[{"title":"List generation apps","deprecated":null,"version":null,"openapi":"/openapi.json get /generation-apps","href":"/api-reference/generations/list-generation-apps"},{"title":"List generations","deprecated":null,"version":null,"openapi":"/openapi.json get /generations","href":"/api-reference/generations/list-generations"},{"title":"Generate content","deprecated":null,"version":null,"openapi":"/openapi.json post /generations","href":"/api-reference/generations/generate-content"},{"title":"Get generation","deprecated":null,"version":null,"openapi":"/openapi.json get /generations/{id}","href":"/api-reference/generations/get-generation"},{"title":"Delete generation","deprecated":null,"version":null,"openapi":"/openapi.json delete /generations/{id}","href":"/api-reference/generations/delete-generation"},{"title":"Update generation","deprecated":null,"version":null,"openapi":"/openapi.json patch /generations/{id}","href":"/api-reference/generations/update-generation"}]},{"group":"Mave","pages":[{"title":"Send message to Mave","deprecated":null,"version":null,"openapi":"/openapi.json post /mave/chat","href":"/api-reference/mave/send-message-to-mave"},{"title":"List Mave threads","deprecated":null,"version":null,"openapi":"/openapi.json get /mave/threads","href":"/api-reference/mave/list-mave-threads"},{"title":"Get Mave thread","deprecated":null,"version":null,"openapi":"/openapi.json get /mave/threads/{threadId}","href":"/api-reference/mave/get-mave-thread"},{"title":"Delete Mave thread","deprecated":null,"version":null,"openapi":"/openapi.json delete /mave/threads/{threadId}","href":"/api-reference/mave/delete-mave-thread"},{"title":"Update Mave thread","deprecated":null,"version":null,"openapi":"/openapi.json patch /mave/threads/{threadId}","href":"/api-reference/mave/update-mave-thread"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces","href":"/api-reference/workspaces/list-workspaces"},{"title":"Create workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces","href":"/api-reference/workspaces/create-workspace"},{"title":"Get workspace","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{id}","href":"/api-reference/workspaces/get-workspace"},{"title":"Delete workspace","deprecated":null,"version":null,"openapi":"/openapi.json delete /workspaces/{id}","href":"/api-reference/workspaces/delete-workspace"},{"title":"Update workspace","deprecated":null,"version":null,"openapi":"/openapi.json patch /workspaces/{id}","href":"/api-reference/workspaces/update-workspace"},{"title":"List workspace members","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{id}/members","href":"/api-reference/workspaces/list-workspace-members"},{"title":"Invite member","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces/{id}/members","href":"/api-reference/workspaces/invite-member"},{"title":"Remove member","deprecated":null,"version":null,"openapi":"/openapi.json delete /workspaces/{id}/members/{userId}","href":"/api-reference/workspaces/remove-member"},{"title":"Update member role","deprecated":null,"version":null,"openapi":"/openapi.json patch /workspaces/{id}/members/{userId}","href":"/api-reference/workspaces/update-member-role"}]},{"group":"Projects","pages":[{"title":"List projects","deprecated":null,"version":null,"openapi":"/openapi.json get /projects","href":"/api-reference/projects/list-projects"},{"title":"Create project","deprecated":null,"version":null,"openapi":"/openapi.json post /projects","href":"/api-reference/projects/create-project"},{"title":"Get project","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{id}","href":"/api-reference/projects/get-project"},{"title":"Update project","deprecated":null,"version":null,"openapi":"/openapi.json patch /projects/{id}","href":"/api-reference/projects/update-project"}]},{"group":"Meetings","pages":[{"title":"List meetings","deprecated":null,"version":null,"openapi":"/openapi.json get /meetings","href":"/api-reference/meetings/list-meetings"},{"title":"Create meeting bot","deprecated":null,"version":null,"openapi":"/openapi.json post /meetings","href":"/api-reference/meetings/create-meeting-bot"},{"title":"Get meeting","deprecated":null,"version":null,"openapi":"/openapi.json get /meetings/{id}","href":"/api-reference/meetings/get-meeting"},{"title":"Delete meeting","deprecated":null,"version":null,"openapi":"/openapi.json delete /meetings/{id}","href":"/api-reference/meetings/delete-meeting"},{"title":"Cancel meeting recording","deprecated":null,"version":null,"openapi":"/openapi.json post /meetings/{id}/cancel","href":"/api-reference/meetings/cancel-meeting-recording"},{"title":"Get meeting transcript","deprecated":null,"version":null,"openapi":"/openapi.json get /meetings/{id}/transcript","href":"/api-reference/meetings/get-meeting-transcript"},{"title":"Get meeting analysis","deprecated":null,"version":null,"openapi":"/openapi.json get /meetings/{id}/analysis","href":"/api-reference/meetings/get-meeting-analysis"},{"title":"Get meeting schema results","deprecated":null,"version":null,"openapi":"/openapi.json get /meetings/{id}/schema-results","href":"/api-reference/meetings/get-meeting-schema-results"},{"title":"Run schema on meeting","deprecated":null,"version":null,"openapi":"/openapi.json post /meetings/{id}/schemas/{schemaId}/run","href":"/api-reference/meetings/run-schema-on-meeting"},{"title":"List meeting schemas","deprecated":null,"version":null,"openapi":"/openapi.json get /meetings/schemas","href":"/api-reference/meetings/list-meeting-schemas"},{"title":"Create meeting schema","deprecated":null,"version":null,"openapi":"/openapi.json post /meetings/schemas","href":"/api-reference/meetings/create-meeting-schema"},{"title":"Get meeting schema","deprecated":null,"version":null,"openapi":"/openapi.json get /meetings/schemas/{id}","href":"/api-reference/meetings/get-meeting-schema"},{"title":"Delete meeting schema","deprecated":null,"version":null,"openapi":"/openapi.json delete /meetings/schemas/{id}","href":"/api-reference/meetings/delete-meeting-schema"}]},{"group":"Files","pages":[{"title":"List files","deprecated":null,"version":null,"openapi":"/openapi.json get /files","href":"/api-reference/files/list-files"},{"title":"Create file record","deprecated":null,"version":null,"openapi":"/openapi.json post /files","href":"/api-reference/files/create-file-record"},{"title":"Get file","deprecated":null,"version":null,"openapi":"/openapi.json get /files/{id}","href":"/api-reference/files/get-file"},{"title":"Delete file","deprecated":null,"version":null,"openapi":"/openapi.json delete /files/{id}","href":"/api-reference/files/delete-file"},{"title":"Toggle file favorite","deprecated":null,"version":null,"openapi":"/openapi.json post /files/{id}/favorite","href":"/api-reference/files/toggle-file-favorite"},{"title":"Get presigned upload URL","deprecated":null,"version":null,"openapi":"/openapi.json post /files/upload-url","href":"/api-reference/files/get-presigned-upload-url"}]},{"group":"Folders","pages":[{"title":"List folders","deprecated":null,"version":null,"openapi":"/openapi.json get /folders","href":"/api-reference/folders/list-folders"},{"title":"Create folder","deprecated":null,"version":null,"openapi":"/openapi.json post /folders","href":"/api-reference/folders/create-folder"},{"title":"Get folder","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}","href":"/api-reference/folders/get-folder"},{"title":"Delete folder","deprecated":null,"version":null,"openapi":"/openapi.json delete /folders/{id}","href":"/api-reference/folders/delete-folder"},{"title":"Toggle folder favorite","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/favorite","href":"/api-reference/folders/toggle-folder-favorite"}]},{"group":"Video Analysis","pages":[{"title":"List video analyses","deprecated":null,"version":null,"openapi":"/openapi.json get /video-analyses","href":"/api-reference/video-analysis/list-video-analyses"},{"title":"Create a video analysis","deprecated":null,"version":null,"openapi":"/openapi.json post /video-analyses","href":"/api-reference/video-analysis/create-a-video-analysis"},{"title":"Get video analysis","deprecated":null,"version":null,"openapi":"/openapi.json get /video-analyses/{id}","href":"/api-reference/video-analysis/get-video-analysis"},{"title":"Chat about video analysis","deprecated":null,"version":null,"openapi":"/openapi.json post /video-analyses/{id}/chat","href":"/api-reference/video-analysis/chat-about-video-analysis"}]},{"group":"Focus Groups","pages":[{"title":"List focus groups","deprecated":null,"version":null,"openapi":"/openapi.json get /focus-groups","href":"/api-reference/focus-groups/list-focus-groups"},{"title":"Create a focus group","deprecated":null,"version":null,"openapi":"/openapi.json post /focus-groups","href":"/api-reference/focus-groups/create-a-focus-group"},{"title":"Get focus group details","deprecated":null,"version":null,"openapi":"/openapi.json get /focus-groups/{id}","href":"/api-reference/focus-groups/get-focus-group-details"}]},{"group":"News","pages":[{"title":"Get trending news","deprecated":null,"version":null,"openapi":"/openapi.json get /news/stories/trending","href":"/api-reference/news/get-trending-news"},{"title":"Get personalized news","deprecated":null,"version":null,"openapi":"/openapi.json get /news/stories/personalized","href":"/api-reference/news/get-personalized-news"},{"title":"Get story details","deprecated":null,"version":null,"openapi":"/openapi.json get /news/stories/{id}","href":"/api-reference/news/get-story-details"},{"title":"Analyze story for persona","deprecated":null,"version":null,"openapi":"/openapi.json post /news/stories/{id}/analyze","href":"/api-reference/news/analyze-story-for-persona"},{"title":"Chat about a story","deprecated":null,"version":null,"openapi":"/openapi.json post /news/stories/{id}/chat","href":"/api-reference/news/chat-about-a-story"}]},{"group":"Usage","pages":[{"title":"Get usage statistics","deprecated":null,"version":null,"openapi":"/openapi.json get /usage","href":"/api-reference/usage/get-usage-statistics"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/responses-api"}]}]},"basePath":"","title":"Create a response - Mavera","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","SectionHeading-Cg4lfWZw.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js","Markdown-D5IqLG6A.js","AssistantPageLink-_S2h4i6W.js","dist-DzZqOeCq.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}