OpenAI Compatible
Chat Completions (OpenAI-compatible)
Changed onOpenAI-compatible chat completions endpoint. Accepts the standard OpenAI request schema and returns the standard OpenAI response schema. Supports both streaming (SSE) and non-streaming modes. Works as a drop-in replacement with the OpenAI Python and TypeScript SDKs.
post/v1/chat/completions
Request
- Base URLhttps://api.swarms.world
- URLhttps://api.swarms.world/v1/chat/completions
- Authnone declared. Required headers: x-api-key
Headers
x-api-keystring required
Request body
Response
Successful Response
Changes
- info
endpoint added
- info