Fluxix integration guide
Fluxix exposes an OpenAI-compatible /v1/chat/completions endpoint. Point any OpenAI-compatible client at it by changing the base URL and API key.
Quickstart
from openai import OpenAI
client = OpenAI(
base_url="https://fluxix.ai/v1",
api_key="fx_live_your_project_key",
default_headers={"x-provider-key": "sk-your-openai-key"},
)
Request headers
- Authorization: Bearer fx_live_... or x-api-key: your Fluxix API key.
- x-provider-key: your OpenAI, Anthropic, Gemini, Groq or Mistral key.
- x-provider: force a provider (openai, anthropic, gemini, groq, mistral, mock).
- x-provider-base-url: base URL of your own OpenAI-compatible server.
- x-agent-id: apply an agent's policy. x-session-id: group calls in the audit log (optional).
Frameworks
Works with LangChain, LlamaIndex, the Vercel AI SDK, and any client that can set an OpenAI base URL and headers.