API Reference
Generate
Chat
Generate a chat completion from a list of messages.
Responses
Create a stateless response and count the input tokens of a request.
Fim
Complete code between a prefix and a suffix with fill-in-the-middle.
Embeddings
Turn text into vectors for search, clustering, and classification.
Agents
Run a completion with an agent.
Documents and moderation
Ocr
Extract text and structure from documents and images.
Classifiers
Moderate and classify raw text or chat conversations.
Audio
Audio Speech
Generate speech from text.
Audio Transcriptions
Transcribe an audio file, or stream the transcription as server-sent events.
Audio Voices
Create, list, update, and delete voices, and get a voice sample.
Audio Agents
Create, list, update, and delete audio agents and their versions.
Audio Sessions
Create, update, check, and stop live audio agent sessions.
Realtime Sessions
Create a client session for a realtime connection.
Batch, files, and models
Batch
Create, list, get, cancel, and delete batch jobs.
Files
Upload, list, retrieve, download, and delete files, and get a signed URL.
Models
List and retrieve models, and update, archive, or delete fine-tuned models.
Workflows
Workflows
List, get, update, execute, archive, and unarchive workflows and their registrations.
Workflows Executions
Get, signal, query, cancel, terminate, and reset workflow executions.
Workflows Runs
List runs and get a run with its history.
Workflows Schedules
Schedule, update, pause, resume, trigger, and remove workflow schedules.
Workflows Deployments
Create, update, start, stop, restart, and delete workflow deployments.
Workflows Events
Get stream events and workflow events.
Workflows Metrics
Get the metrics of a workflow.
Events
Get stream events and workflow events.