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.

Get a key

A schema-bound request

python
1schema = {"name": "label", "strict": True, "schema": {
2 "type": "object",
3 "properties": {"category": {"type": "string", "enum": ["harassment", "threat", "sexual", "none"]},
4 "severity": {"type": "integer", "minimum": 0, "maximum": 3},
5 "quote": {"type": "string"}},
6 "required": ["category", "severity", "quote"], "additionalProperties": False}}
7r = client.chat.completions.create(
8 model="nemotron-3.5-super-vl-uncensored",
9 messages=[{"role": "system", "content": "Label the message for a moderation dataset."},
10 {"role": "user", "content": text}],
11 response_format={"type": "json_schema", "json_schema": schema})
12label = 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 idInput / output per 1MContext
nemotron-3.5-super-vl-uncensored$0.225 / $0.75not published
gemma-4-26b-a4b-it-uncensored$0.56 / $1.60not published
minimax-m2.5-uncensored$0.405 / $1.62not published
kimi-k2-instruct-uncensored$1.00 / $4.50not published
abliterated-model-large-flash$2.50 / $5.001,048,576 tokens

Live from the catalog on 2026-11-23. Counts cover the models available now.

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.

Read next

Join on TelegramHelp