Structured outputs from uncensored models.
21 uncensored builds in the catalog accept structured_outputs, and 54 accept response_format for JSON mode, as of 2026-11-23. Send a JSON Schema as response_format of type json_schema to https://api.uncensoredllm.ai/v1/chat/completions and the reply comes back as JSON that fits it.
A schema-bound request
schema = {"name": "label", "strict": True, "schema": { "type": "object", "properties": {"category": {"type": "string", "enum": ["harassment", "threat", "sexual", "none"]}, "severity": {"type": "integer", "minimum": 0, "maximum": 3}, "quote": {"type": "string"}}, "required": ["category", "severity", "quote"], "additionalProperties": False}}r = client.chat.completions.create( model="nemotron-3.5-super-vl-uncensored", messages=[{"role": "system", "content": "Label the message for a moderation dataset."}, {"role": "user", "content": text}], response_format={"type": "json_schema", "json_schema": schema})label = json.loads(r.choices[0].message.content)Why an uncensored model for this
Trust-and-safety and research teams have to label the very content filtered models refuse to read: threats, slurs, explicit text, extremist posts. A filtered model returns a refusal where your pipeline expects JSON, and the batch breaks. An uncensored model labels the item and moves on.
Models that list structured outputs
| Model id | Input / output per 1M | Context |
|---|---|---|
nemotron-3.5-super-vl-uncensored | $0.225 / $0.75 | not published |
gemma-4-26b-a4b-it-uncensored | $0.56 / $1.60 | not published |
minimax-m2.5-uncensored | $0.405 / $1.62 | not published |
kimi-k2-instruct-uncensored | $1.00 / $4.50 | not published |
abliterated-model-large-flash | $2.50 / $5.00 | 1,048,576 tokens |
JSON mode or a schema
A json_object response format promises valid JSON but not your fields. A json_schema with strict: true constrains the output to your schema on models that list structured_outputs. On models with only response_format, use JSON mode and validate.
Validate anyway
Parse every reply, check it against the schema, and retry once with the validation error in the prompt before sending the item to a human. Even with schemas, a long batch hits the odd malformed answer.
Structured outputs: questions
What if the model I want doesn't list structured outputs?
Use JSON mode if it lists response_format, or put the schema in the system prompt and validate. Retry on a failed parse.
Do structured outputs work with streaming?
The JSON arrives in pieces and is only valid once the stream ends. Parse after the final chunk.
Is labeling harmful content with an AI allowed?
Yes. Classifying, quoting and analysing such content for moderation or research is within the acceptable-use policy. Producing sexual content involving minors isn't allowed under any purpose. See the acceptable-use policy.