GET

/v1/schemas/azure/chat/completions?kind=output

kind outputactivity chathash 41cb1969…extracted Oct 7, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
9fade08c5d30751828e67fecca63b3800567c802d1d6c4c91bba3d193843f7a8
{
  "fetchedAt": 1791349936,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

8 properties · 5 required · 15 $defs
propertytypedescriptionconstraints
id*stringA unique identifier for the completion.
choices*OpenAI.CreateCompletionResponseChoices[]The list of completion choices the model generated for the input prompt.
created*integerThe Unix timestamp (in seconds) of when the completion was created.format: unixtime
model*stringThe model used for completion.
object*enumThe object type, which is always "text_completion"text_completion
system_fingerprintstringThis fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.
usageOpenAI.CompletionUsageUsage statistics for the completion request.
prompt_filter_resultsAzureContentFilterResultForPrompt[]

Types

15 $defs

AzureContentFilterBlocklistResultobject

A collection of true/false filtering results for configured custom blocklists.

filtered*booleanA value indicating whether any of the detailed blocklists resulted in a filtering action.
detailsobject[]The pairs of individual blocklist IDs and whether they resulted in a filtering action.

AzureContentFilterCompletionTextSpanobject

A representation of a span of completion text as used by Azure OpenAI content filter results.

completion_start_offset*integerOffset of the UTF32 code point which begins the span.format: int32
completion_end_offset*integerOffset of the first UTF32 code point which is excluded from the span. This field is always equal to completion_start_offset for empty spans. This field is always larger than completion_start_offset for non-empty spans.format: int32

AzureContentFilterCompletionTextSpanDetectionResultobject

filtered*booleanWhether the content detection resulted in a content filtering action.
detected*booleanWhether the labeled content category was detected in the content.
details*AzureContentFilterCompletionTextSpan[]Detailed information about the detected completion text spans.

AzureContentFilterCustomTopicResultobject

A collection of true/false filtering results for configured custom topics.

filtered*booleanA value indicating whether any of the detailed topics resulted in a filtering action.
detailsobject[]The pairs of individual topic IDs and whether they are detected.

AzureContentFilterDetectionResultobject

A labeled content filter result item that indicates whether the content was detected and whether the content was filtered.

filtered*booleanWhether the content detection resulted in a content filtering action.
detected*booleanWhether the labeled content category was detected in the content.

AzureContentFilterPersonallyIdentifiableInformationResultAzureContentFilterDetectionResult

A labeled content filter result item that indicates whether the content was detected and whether the content was filtered.

filtered*booleanWhether the content detection resulted in a content filtering action.
detected*booleanWhether the labeled content category was detected in the content.

AzureContentFilterResultForChoiceobject

A content filter result for a single response item produced by a generative AI system.

sexualAzureContentFilterSeverityResultA labeled content filter result item that indicates whether the content was filtered and what the qualitative severity level of the content was, as evaluated against content filter configuration for the category.
hateAzureContentFilterSeverityResultA labeled content filter result item that indicates whether the content was filtered and what the qualitative severity level of the content was, as evaluated against content filter configuration for the category.
violenceAzureContentFilterSeverityResultA labeled content filter result item that indicates whether the content was filtered and what the qualitative severity level of the content was, as evaluated against content filter configuration for the category.
self_harmAzureContentFilterSeverityResultA labeled content filter result item that indicates whether the content was filtered and what the qualitative severity level of the content was, as evaluated against content filter configuration for the category.
profanityAzureContentFilterDetectionResultA labeled content filter result item that indicates whether the content was detected and whether the content was filtered.
custom_blocklistsAzureContentFilterBlocklistResultA collection of true/false filtering results for configured custom blocklists.
custom_topicsAzureContentFilterCustomTopicResultA collection of true/false filtering results for configured custom topics.
errorobjectIf present, details about an error that prevented content filtering from completing its evaluation.
protected_material_textAzureContentFilterDetectionResultA labeled content filter result item that indicates whether the content was detected and whether the content was filtered.
protected_material_codeobjectA detection result that describes a match against licensed code or other protected source material.
ungrounded_materialAzureContentFilterCompletionTextSpanDetectionResult
personally_identifiable_informationAzureContentFilterDetectionResultA labeled content filter result item that indicates whether the content was detected and whether the content was filtered.

AzureContentFilterResultForPromptobject

A content filter result associated with a single input prompt item into a generative AI system.

prompt_indexintegerThe index of the input prompt associated with the accompanying content filter result categories.format: int32
content_filter_resultsobjectThe content filter category details for the result.

AzureContentFilterSeverityResultobject

A labeled content filter result item that indicates whether the content was filtered and what the qualitative severity level of the content was, as evaluated against content filter configuration for the category.

filtered*booleanWhether the content severity resulted in a content filtering action.
severity*enumThe labeled severity of the content.safe | low | medium | high

AzurePiiSubCategoryResultobject

Result details for individual PIIHarmSubCategory(s).

sub_category*stringThe PIIHarmSubCategory that was evaluated.
filtered*booleanWhether the content detection resulted in a content filtering action for this subcategory.
detected*booleanWhether the labeled content subcategory was detected in the content.
redacted*booleanWhether the content was redacted for this subcategory.

OpenAI.CompletionUsageobject

Usage statistics for the completion request.

completion_tokens*integerNumber of tokens in the generated completion.
prompt_tokens*integerNumber of tokens in the prompt.
total_tokens*integerTotal number of tokens used in the request (prompt + completion).
completion_tokens_detailsOpenAI.CompletionUsageCompletionTokensDetailsBreakdown of tokens used in a completion.
prompt_tokens_detailsOpenAI.CompletionUsagePromptTokensDetailsBreakdown of tokens used in the prompt.

OpenAI.CompletionUsageCompletionTokensDetailsobject

accepted_prediction_tokensinteger
audio_tokensinteger
reasoning_tokensinteger
rejected_prediction_tokensinteger

OpenAI.CompletionUsagePromptTokensDetailsobject

audio_tokensinteger
cached_tokensinteger

OpenAI.CreateCompletionResponseChoicesobject

finish_reason*enumstop | length | content_filter
index*integerformat: int32
logprobs*OpenAI.CreateCompletionResponseChoicesLogprobsnullable
text*string
content_filter_resultsAzureContentFilterResultForChoiceA content filter result for a single response item produced by a generative AI system.

OpenAI.CreateCompletionResponseChoicesLogprobsobject

text_offsetinteger[]
token_logprobsnumber[]
tokensstring[]
top_logprobsobject[]

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"azure","endpointId":"completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}