Skip to main content
Our API is compatible with the OpenAI Python SDK for specific endpoints, allowing you to integrate our service with minimal code changes for your tests.

Installation

Install the OpenAI Python SDK:

Configuration

Configure the client to point to our API:

Compatible Endpoints

Chat Completions

Create chat completions using the same interface as OpenAI’s API.

Streaming response

Stream responses for real-time output:

Completions

Generate text completions using the legacy completions endpoint.

Streaming response

Embeddings

Generate embeddings for text:

List Models

Retrieve a list of all available models.

Upload Files

Upload files for use with assistants or other endpoints.
Supported Parameters:
  • file (required) - File object to upload

List Files

Retrieve a list of all uploaded files.

Retrieve File

Get information about a specific file.

Delete File

Delete a file from your account.

Differences from OpenAI

While our API maintains compatibility with the OpenAI SDK, note the following differences:
Important Differences:
  • Model names are specific to our platform
  • Some advanced parameters may not be supported
  • Rate limits differ from OpenAI’s limits

Error Handling

Handle errors using standard try-except blocks:

Migration Guide

To migrate from OpenAI to our API:
  1. Update the base_url parameter in your client configuration
  2. Replace OpenAI model names with our model identifiers
  3. Update your API key to use our platform’s key
  4. Test your implementation with our endpoints