GET
/v1/schemas/openai/audio/audio%2Ftranslations?kind=output
Accept:
Response body
0 properties · 0 required · 0 $defsThis schema isn’t a plain object with properties — showing the raw JSON instead.
application/json
{
"provider": "openai",
"activity": "audio",
"endpointId": "audio/translations",
"kind": "output",
"contentHash": "a8c1862a9805bdbb954a7c109a96cf55b2fe05dcdf40957ad18408fbc37b3fcc",
"specRevision": null,
"provenance": {
"sourceUrl": "https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml",
"sourceHash": "74cbcf73838f4cd7e209b2d3f2e9ddc9fa155f21a44360b6fac7646a6d4f5f8b",
"fetchedAt": 1783328622,
"extractorVersion": "1"
},
"createdAt": 1783328622,
"supersededAt": null,
"schema": {
"oneOf": [
{
"$ref": "#/$defs/CreateTranslationResponseJson"
},
{
"$ref": "#/$defs/CreateTranslationResponseVerboseJson"
}
],
"$defs": {
"CreateTranslationResponseJson": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
]
},
"CreateTranslationResponseVerboseJson": {
"type": "object",
"properties": {
"language": {
"type": "string",
"description": "The language of the output translation (always `english`)."
},
"duration": {
"type": "number",
"format": "double",
"description": "The duration of the input audio."
},
"text": {
"type": "string",
"description": "The translated text."
},
"segments": {
"type": "array",
"description": "Segments of the translated text and their corresponding details.",
"items": {
"$ref": "#/$defs/TranscriptionSegment"
}
}
},
"required": [
"language",
"duration",
"text"
]
},
"TranscriptionSegment": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the segment."
},
"seek": {
"type": "integer",
"description": "Seek offset of the segment."
},
"start": {
"type": "number",
"format": "double",
"description": "Start time of the segment in seconds."
},
"end": {
"type": "number",
"format": "double",
"description": "End time of the segment in seconds."
},
"text": {
"type": "string",
"description": "Text content of the segment."
},
"tokens": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Array of token IDs for the text content."
},
"temperature": {
"type": "number",
"format": "float",
"description": "Temperature parameter used for generating the segment."
},
"avg_logprob": {
"type": "number",
"format": "float",
"description": "Average logprob of the segment. If the value is lower than -1, consider the logprobs failed."
},
"compression_ratio": {
"type": "number",
"format": "float",
"description": "Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed."
},
"no_speech_prob": {
"type": "number",
"format": "float",
"description": "Probability of no speech in the segment. If the value is higher than 1.0 and the `avg_logprob` is below -1, consider this segment silent."
}
},
"required": [
"id",
"seek",
"start",
"end",
"text",
"tokens",
"temperature",
"avg_logprob",
"compression_ratio",
"no_speech_prob"
]
}
}
}
}Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"audio/translations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}