OpenAI
Send requests to any OpenAI model by specifying the {model}
placeholder in the path.
POST
Authorizations
Set Authorization
header to Key BYTEZ_KEY
(e.g. 'Authorization': 'Key ABC123')
Set provider-key
header to PROVIDER_KEY
(e.g. 'provider-key': 'OPEN_AI_KEY')
Path Parameters
The specific OpenAI model to interact with (e.g., gpt-4o-mini
).
Body
application/json
Universal schema that supports text, chat, image, audio, video, QA, zero-shot, and more.
Input text for NLP tasks.
Conversation history.
URL to image/audio/video.
Base64-encoded image/audio/video.
Question (for QA tasks).
Context paragraph (for QA tasks).
Candidate labels (for zero-shot).
Enable/disable text streaming.
Stream media instead of JSON.
Model-specific parameters.