Skip to main content

OpenAI Integration

Works with both Python and TypeScript. Your existing code stays the same—just change the base URL.

Setup

Chat Completions

Streaming

Tools / Function Calling

Works exactly like the official SDK:

Embeddings

Check Cache Status

Response Headers

Error Handling

Errors from OpenAI pass through unchanged. Raptor adds firewall blocks:
All OpenAI features work: GPT-4, GPT-4o, o1, embeddings, images, audio, and more. If it works with OpenAI, it works through Raptor.