OpenAI Chat Completions API
Send multi-turn messages; get assistant replies. Use **server-side** only.
Reference
Endpoint docs with examples — chat, embeddings, tools, and local runners.
19 docs
Send multi-turn messages; get assistant replies. Use **server-side** only.
Turn text into vectors for semantic search and RAG.
Production apps need retries, backoff, and clear user errors.
Send conversations to Claude models. Keys stay **server-side**.
Let the model return **structured tool calls**; your server executes functions and sends results back.
Let Claude request **tools** with structured inputs — your code executes and returns results.
Run open-weight models on your machine; hit **localhost** from your app.
Standard **embed → search → pack → generate** loop for question answering over your docs.
Multimodal Google AI endpoint — text in, text out (images optional in newer models).
Return **JSON matching a schema** — reliable parsing for agents and APIs.
Same **chat completions** endpoint with image parts in messages.
Run **large offline jobs** for embeddings or chat completions at lower cost — submit JSONL, poll status, download results within ~24h.
Train a **custom model variant** on your examples — tone, format, domain phrasing — via supervised fine-tuning jobs.
Stream Claude replies **token-by-token** for faster perceived latency in chat UIs.
Send **text, images, audio, or video** in one request; get text (or structured) output from Google Gemini models.
Convert **speech to text** with OpenAI Whisper (or compatible endpoints) — meetings, voice notes, accessibility, and RAG over audio.
Turn **written text into spoken audio** — voice assistants, accessibility, podcasts, and in-app narration.
Call **foundation models inside AWS** — Claude, Llama, Titan, and others — with IAM auth instead of vendor API keys in app code.
Run **OpenAI-compatible chat** on Microsoft Azure — enterprise SSO, private networking, and regional deployment.