Skip to content
v1.0.0

Multiple response types

Example of an OpenAPI document with multiple response types.

Contact

License

MIT

Servers

https://cdn.openai.com/API

Get audio

GET
/docs/audio/alloy.wav

Example of a response with an audio file.

Responses

Successful response
audio/wav
JSON
"string"

Playground

Samples

cURL
JavaScript
PHP
Python

Get image

GET
/images/guides/simple-cat-image-dall-e-3.webp

Example of a response with an image file.

Responses

Successful response
image/webp
JSON
"string"

Playground

Samples

cURL
JavaScript
PHP
Python

Powered by VitePress OpenAPI