Hugging Face × Modelflare

Stable, lower-cost AI API gateway

One key for LLM, image, and video. OpenAI-compatible chat — point your SDK at https://modelflare.dev/v1, with group failover and per-request cost tracking.

One key

Chat, Responses, Anthropic Messages, Images, and Video on the same auth.

Group failover

Ordered fallbacks so one unavailable route does not fail the request.

Usage & cost

Track tokens, images, and video spend per request — plus Smart keys and cache hit guarantee.

Quick start

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_MODELFLARE_API_KEY",
    base_url="https://modelflare.dev/v1",
)

r = client.chat.completions.create(
    model="gpt-5.6-sol",
    messages=[{"role": "user", "content": "Hello from Hugging Face"}],
)
print(r.choices[0].message.content)
Coming from Hub? Grab a key, then follow the SDK guide, Coding Agents, and API Recipes. Interactive Chat Demo needs HF PRO; use console + API for now. Feedback welcome in discussion #1.

Blog

Modelflare Blog

Setup guides and engineering notes: one key for text, image, and video; the OpenAI SDK switch; coding agents; streaming, fallback, and async video; Smart API Keys; usage and cost records; Media Skill; Castaly.

Org: huggingface.co/Modelflare · Docs: docs.modelflare.dev