RavenRouter × Hugging Face

Hugging Face Integration

Use RavenRouter as a custom OpenAI-compatible endpoint in Spaces, Gradio, or your own apps.

Before you start

  • Create an API key in Console → API Keys.
  • Pick a model from GET /v1/models that your plan allows.

API base URL: https://api.ravenrouter.ai/v1

Setup steps

  1. In a Hugging Face Space or local app, use an OpenAI-compatible client (e.g. the openai Python package).
  2. Set base_url to your RavenRouter /v1 endpoint.
  3. Set api_key to your console token and model to a name from GET /v1/models.

Configuration example

from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_RAVENROUTER_TOKEN>",
    base_url="https://api.ravenrouter.ai/v1",
)

response = client.chat.completions.create(
    model="DeepSeek-V3.2",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Notes

  • Listing as an official HF Inference Provider requires a separate partnership; custom endpoints in apps work out of the box.