OpenAI SDK Compatibility
Mavera’s Responses API is fully compatible with OpenAI SDKs. This means you can use the official OpenAI libraries in any language — just change the base URL and useclient.responses.create().
Python
Official OpenAI Python SDK
JavaScript/TypeScript
Official OpenAI Node.js SDK
Go
go-openai or REST
Quick Setup
Mavera-Specific Fields
While the base API is OpenAI-compatible, Mavera adds specific fields:| Field | Description | How to Pass |
|---|---|---|
persona_id | ID of persona to use | Python: extra_body in responses.create(), JS: direct field |
analysis_mode | Enable structured analysis | Python: extra_body in responses.create(), JS: direct field |
reasoning_effort | Control reasoning depth | Python: extra_body in responses.create(), JS: direct field |
Example with Mavera Fields
REST API
For non-Chat endpoints (Mave, Focus Groups, etc.), use REST directly:Language Support
| Language | SDK | Notes |
|---|---|---|
| Python | openai | Full support via extra_body |
| JavaScript | openai | Full support |
| TypeScript | openai | Full support with types |
| Go | go-openai | Requires custom fields |
| Ruby | ruby-openai | Requires custom fields |
| PHP | openai-php | Requires custom fields |
| Any | REST | Full control |
For languages without first-class Mavera support, you can always use the REST API directly.