Quick Start
Welcome to enfer.ai! In this quick start guide, we’ll show you how to call our OpenAI-compatible completion API directly or using the OpenAI SDK. You can easily integrate with your existing OpenAI-compatible code, making it straightforward to replace or augment your current setup with enfer.ai’s models.
Authentication
Sign up for an account on enfer.ai (if you haven't already).
Purchase credits in your enfer.ai account to continue usage.
Create an API key in the account. You’ll need this key when making requests to our API.
Once you have your API key, you’re ready to start calling the enfer.ai endpoints.
Usage with the OpenAI Python SDK
Installation
If you’re not already set up with the OpenAI Python SDK, install it first:
Usage
Because enfer.ai is OpenAI-compatible, you can leverage your existing OpenAI SDK code with minimal changes. Just point to the enfer.ai base endpoint and use your enfer.ai API key.
Sample Code
Supported Features
Chat Completions: Send a conversation-style prompt and receive a context-aware response.
Completions: Provide a text prompt to generate or continue content.
Streaming & Cancellation: Optionally stream results in real-time and cancel ongoing requests if needed.
Model Listing: Request and retrieve a list of supported models.
Currently Supported Models
mistralai/mistral-nemo (FP8)
meta-llama/llama-3.1-8b-instruct (FP8)
Last updated